It’s certainly different than C, but IMO Rust’s type system is also a dramatic improvement.
- 0 posts
- 30 comments
No no you misunderstand. The literal servers are oxidising
I mean, I find the tech fascinating and probably would like it, except that I hate the way it was created, the way it is peddled, the things it is used for, the companies who use it, the way it “talks”, the impact it has had on society, the impact it has on the environment, the way it is monetised, and the companies who own it.
And all that makes it difficult to “just appreciate the tech”
Wow zig has
u0andi0
Tbf, unsigned void makes more sense than signed void
- 5 months
I highly agree with the sentiment. Learning languages of different paradigms is sort of like travelling to visit other cultures to make you a more rounded, better person. Learn a functional language (lisp/Haskell). Learn a concatenative language (forth/Factor). Learn a logical language (Prolog/?). Heck even learn an assembly! (I suggest RISC-V).
- 5 months
A few good reasons, the first being that brand new operating systems don’t get written all that often. But even if they were, functional languages focus a lot on abstractions, making them generally higher level languages and so not fast enough to compete with C.
Having said that, Rust’s design is quite inspired by functional languages in many ways, and it is indeed being used in operating systems.
- Kacarott@aussie.zoneto
Programmer Humor@programming.dev•You can pry pattern matching from my cold dead hands
6 monthsAh yes I also found macro syntax like
vec![andprintln!(to be a bit jarring at first. However I don’t know if I would say that C’s approach to macros is any nicer, with it’smagic
- Kacarott@aussie.zoneto
Programmer Humor@programming.dev•You can pry pattern matching from my cold dead hands
6 monthsThe majority of its syntax is very similar to many other languages. Can you give an example of a language with pretty syntax?
- Kacarott@aussie.zoneto
Programmer Humor@programming.dev•Esoteric Programming Languages: Rockstar, Tabloid, Baby Language, Ook!, Chef
7 monthsRockstar is, in fact it is even supported on code.golf so you can try it and compete!
- 8 months
Of course, but this assumes I know roughly what the text will look like that I’m searching for. If I already know what it will look like, I’ll use global search of course, but if all I know is that “at some point this element is put into the document” then I have no idea how that might actually happen. AI is just pretty good (ie succeeds sometimes) at generalising my words into a rough idea and searching for that.
- 8 months
I mostly use it as a code search tool, when dealing with large projects that I’m not very familiar with. Like I can ask “where is this component actually inserted into the web page” and it can sometimes point to a file and function. It doesn’t always work of course, but when it does it can save a lot of time.
I don’t ever let AI write code for me though
- Kacarott@aussie.zonetoProgramming@programming.dev•I am sorry, but everyone is getting syntax highlighting wrong8 months
Exactly!! Having each different part be different colours essentially breaks the code into larger “tokens” which is much easier to read than letting your eyes get lost in a sea of uniformity.
It’s not about knowing which colour is variables and which colour is functions. It’s about there being some contrast between them.
Python has the Fraction type, and there are many more
Even Haskell is higher on the list than Go, which surprises me a lot
That is just the tip of the iceberg:
This is exactly why it should throw an error, to make it incredibly obvious something isn’t working correctly so it can be fixed. Otherwise you have wrong logic leading to hard to notice and hard to debug problems in your code
- 1 year
The hate and down votes are not for having an opinion on the language, they are for self-righteously proclaiming that opinion in inappropriate places. Someone sharing a cool project they made is not the place to start gatekeeping their choice of tech. That’s just being an asshole.
- Kacarott@aussie.zonetoProgramming@programming.dev•[Noob here] Can someone explain to me the advantage of mutable objects?1 year
This is close, but as someone already said, an index into a list just means you are mutating the list.
Your stable “identifier” needs to be a function, ie. a reused design pattern. Compared to the list, this would be an index function which gets an element from an arbitrary list, meaning you don’t have to mutate your list anymore, you just build a new one which still works with your function.
This is why languages which avoid mutation and side effects are always (to my knowledge) functional languages.

I agree, though you’d need to make sure it isn’t something that a human could notice and mistake as a PR convention for your repo, and then mimic