The most underrated programming language in existence.
@hamidbluri3135
2 жыл бұрын
what
@mooseyard
4 жыл бұрын
Great talk, thank you! It cleared up some confusion I’ve had about sink & lent.
@driziiD
4 жыл бұрын
19:53 those are some great benchmarks
@Deeharok
3 жыл бұрын
At 3:24 - why doesn't other just point to the container itself, i.e. an indirect reference to the underlying buffer pointer? Then if you do an .add you don't have to worry about the underlying buffer being moved to another location in memory?
@andreasrumpf9012
3 жыл бұрын
Assuming I understand your question correctly: This implies another indirection and a mechanism to clean up "other" when it's not used anymore. C# uses this solution. So yes, it's possible but then you miss the "move optimizations".
@hamidbluri3135
2 жыл бұрын
wow, Amazing! I didn't know about `cursor` pragma! 33:25
@uncannydeduction
4 жыл бұрын
Is it possible to pass a reference as a procedure argument? I like doing that but can't see it being done anywhere.
@uncannydeduction
4 жыл бұрын
Maybe I should just use "sink" and then return it? But that can only be done for one argument which is not cool.
@andreasrumpf9012
4 жыл бұрын
I am not sure what you mean. 'const T&' is simply 'T' in Nim, 'T&' is 'var T'.
@CraigBlack123
3 жыл бұрын
Nim is innovating in a way I haven't seen in any other language. This is incredible. One suggestion. Could you please add an annotation for whether the reference count for a particular class is atomic or not? I would imagine it needs to be atomic for some classes but others could avoid the overhead.
@uncannydeduction
4 жыл бұрын
I passionately hate garbage collectors. Good though that gc::arc exists. And it has so good benchmarks.
@01MeuCanal
Жыл бұрын
To promote Nim the community should develop and release a good open source soft or a game. Maybe a video editor or something most people use. When people know that software is made with Nim, it would help to boost Nim reputation.
Пікірлер: 13