As a Go programmer I think I already know V
Interesting video, although it reminds me a lot of Go, thank you anyways! Could you review Crystal lang next?
As a go programmer I already feel entitled to try it, thanks for such a detailed video. Also, what colorscheme are you using in your editor? Monokai? Looks so calm and classy.
Very interesting! I'm also wondering how the autofree works. I'm a little concerned that it conceals potential leaks by circular references without the user knowing from just looking at the code. Or just very late freeing of objects.
the idea seems cool, will wait to see how it evolves. a bit strange to incorporate gui right into when it is on version 0.4
What is the font used? The parentheses are gorgeous!
really loving the videos, btw what editor do you use
C++ smart pointers (unique_ptr and shared_prt) exist and have existed in the standard for over a decade now (2011) and have existed in the boost library for almost 2 decades (2004). They handle the freeing for when the variable goes out of scope. Yes you can also use manual new/delete and manual malloc/free but you only rarely actually have to do that and usually shouldn't do that.
Nim also has ARC memory management that's becoming default in 2.0 (current devel).
OMG, language so advanced, i love it , how is this possible?
Apple platforms with Objective C and Swift have had ARC (automatic reference counting) for a decade. before that, Objective C had manual reference counting with semi-automatic reference counting using autorelease pools. the LLVM front-end, Clang, inserts allocs and deallocs into the code on your behalf with each trip through the compiler, not as part of your source code. No performance hit above what manual memory management would cost you otherwise, and autorelease pools would in many circumstances improve performance by allowing you to use/reuse local memory pools (say, within tighter loops) that you could free up upon exiting scope or keep around but clear out if you know you're going to reuse it. But like I said, a decade or more.
Cool video. What font are you using ?
3:40 that looks a lot like captures in c++ lambdas. Looking at the doc's they are similar just that they don't support wildcards and are always capture by copy. The docs for function captures also showcase that references in V are in themselves also basically just pointers that if you copy you get another reference instead of a copy of the underlying object which I don't really like.
Thanks for trying V, and for the unbiased review about it.
Funny you posted this video I bought the book last weekend, very promising but there are some bits I'm still not sold on.
Been following it for a few years now, and it doesn't ever seems to be moving along as quickly as its claims do. Pretty uninteresting when the field is filled with so many great languages currently.
Now that you mention Nim, I really feel it deserves a lot more attention, hopefully you can dive into it with some practical examples.
1:48, ouch! I don't want to specify the returning type! 3:03, ouch! I want this to be automatic! 6:31, std::unique_ptr frees that memory automatically. 6:42, C++'s std::shared_prt is meant for this RC. 6:55, are you saying 'deallocate' meaning 'free from stack' too? Because in C++ things are build on stack by default. For instance: auto a = Thing. It's recommended freeing the stack as soon as possible, because it's precious memory, as small as faster.
Great video learned a lot, bro can you please tell me what extension your using to add that sound effect when your typing the code. It sounds too good
@codetothemoon