Vlang: The language of 2023?? | Prime React

  Рет қаралды 128,529

ThePrimeTime

ThePrimeTime

Жыл бұрын

Recorded live on twitch, GET IN
Original: • V - Best Programming L...
Author: / @codetothemoon
/ theprimeagen
MY MAIN YT CHANNEL: Has well edited engineering videos
/ theprimeagen
Discord
/ discord

Пікірлер: 378
@codetothemoon
@codetothemoon Жыл бұрын
It was a lot of fun watching this reaction, thanks for doing it!
@BvngeeCord
@BvngeeCord Жыл бұрын
Don't stop doing what you do :)
@Viralvlogvideos
@Viralvlogvideos Жыл бұрын
Yout doing great code to the moon. You got that skill to explain things clear, simple and concise. Please make a video on java vs c# vs go vs v languages
@webrevolution.
@webrevolution. Жыл бұрын
@@BvngeeCord That's what she said.
@oraqlle
@oraqlle 11 ай бұрын
Wait till prime learns that lambdas in C++20 can use all four types of brackets eg. `auto fn = []() -> void {};` is a valid lambda in C++20.
@andrewrobinson2985
@andrewrobinson2985 Жыл бұрын
The V community acts like they bet their life savings that it's going to be the next employable language.
@lagseeing8341
@lagseeing8341 Жыл бұрын
"V coin to the moon" ahh behavior
@EzequielRegaldo
@EzequielRegaldo Жыл бұрын
It is by far better than 90% of langs to be be honest
@joranmulderij
@joranmulderij Жыл бұрын
@@EzequielRegaldo It's sure better than a lot of languages but that is not going to make a language successful. It needs to be significantly better than the current languages to choose from, and enough people need to thing that.
@EzequielRegaldo
@EzequielRegaldo Жыл бұрын
@@joranmulderij 1 lang, everything. Its the way
@joranmulderij
@joranmulderij Жыл бұрын
@@EzequielRegaldo Would be an amazing reality right? I think with current language development it would be possible to create a language so versatile it would fit most projects. It's just that the current state of software is an absolute mess with old frameworks, old code, and trying to fit backwards compatibility into any framework is going to push it away from that perfect language.
@danvilela
@danvilela Жыл бұрын
I like rust’s arrow syntax. So easy to see what is what . Ts have colons everywhere, such a pain to know if its a type, a return type or another thing
@sk-sm9sh
@sk-sm9sh Жыл бұрын
Return type IS a type. What the heck you're talking about? But I hear you it's confusing because on object notation column is value assignment operator yet in ingerface/type its type declaration.
@stevenhe3462
@stevenhe3462 Жыл бұрын
Agreed. In Kotlin and Python, I hunt down where the return types are. A big arrow helps a lot in that sense.
@sk-sm9sh
@sk-sm9sh Жыл бұрын
@@stevenhe3462 imho c/java style is cleanest when it comes to return types.
@deistormmods
@deistormmods Жыл бұрын
​@@sk-sm9sh Nah. Rust does it best. It makes sense that the return is after the method signature. Much more intuitive.
@carstenrasmussen1159
@carstenrasmussen1159 Жыл бұрын
D can also run GC and Nogc and borrow check you tag it per function or structure. Except that D has been around for years and is not new
@ikatsu5803
@ikatsu5803 Жыл бұрын
@live is a broken feature, very raw and as a borrow checker it probably wouldn't scale. D also has memory safe and pure tags out of the box, these are pretty cool. Not this but meta programming in D is probably the best out there in terms of easiness to read and write.
@voidwalker7774
@voidwalker7774 Жыл бұрын
Yeah, But D is not cool. It has no cool mascot and it has no cool logo. So it is not hip and nobody will ever use it despite how good the language is.
@ivymuncher
@ivymuncher Жыл бұрын
@@voidwalker7774 give it a cute dog and I'll hop on the D train
@GeorgijTovarsen
@GeorgijTovarsen Жыл бұрын
D is a really, really cool language (now that there is a template for sumtypes)
@explqicot3293
@explqicot3293 Жыл бұрын
​@@ivymuncherDlang the big red dog 🐕
@silverhairs
@silverhairs 11 ай бұрын
"If they'd done capital letter I would have lost it, [...] that was the greatest mistake of Go" this is probably the best thing Prime has ever said.
@Hazanko83
@Hazanko83 Жыл бұрын
Copy as default makes more sense if you're not constantly passing objects around, and only passing basic types like integers/floats/etc. In my game I'm working on in C++, i'd guess over half of all my functions operate on basic types, and the remainder is passing around pointers(which technically exists ITSELF as a variable and gets copied). The cpu has no real problem just creating basic types like integers and shifting them around, while copying the address of a pointer then possibly needing to do a memory lookup is much more expensive - especially if the cpu was already working on the values being passed. In something like javascript where ''everything is an object'', I'd guess basic types being copied might be more expensive(I'm not sure)?
@jamesnewman9547
@jamesnewman9547 Жыл бұрын
Vala, Genie, and others (original c++) have compiled to C for decades. It's low level enough to be similar to compiling to asm. It's really not _that_ different than LLVM, atleast not fundamentally.
@harrytsang1501
@harrytsang1501 11 ай бұрын
Compiling to C also has the added benefit of the half-century worth of optimization out of the box. Also just like LLVM but at the same time C has a much more well known interface than LLVM.
@guywithknife
@guywithknife 3 ай бұрын
Chicken scheme, ATS and many others also do this
@porky1118
@porky1118 11 ай бұрын
21:16 Primagen is happy that naming doesn't have meaning like in go (upper case is public) A few seconds later it's mentioned how naming has meaning (functions containing test are tests)
@felixfourcolor
@felixfourcolor 6 ай бұрын
it's at 20:50
@nabilabdel-hafeez3916
@nabilabdel-hafeez3916 3 ай бұрын
Fyi: the name: Type annotation comes from Scala. Inventor Martin Odersky chose it, because the colon is a mathematical notation for element of a set (usually you learn in school the symbol that look like similar to €). So you could read a: Int as a is an element of the set of integers.
@RuslanKovtun
@RuslanKovtun Жыл бұрын
8:00 - as a vim use you should know how awesome it is to have some separator before type to navigate quickly.
@toup0
@toup0 Жыл бұрын
There is no definition for arrays that says something has to be immutable and on the stack to be a technical array. Well in rust we call it array and vector, there this distinction is clearly made. But it can be a dynamic, heap allocated list and still called array. Like it is commonly done in many langs. For fixed sized arrays in v that are put on the stack, the syntax is e.g., `mut fnums := [3]int{}`.
@brotheradamfromups
@brotheradamfromups 8 ай бұрын
Or the short syntax is to use ! at the end of your expression. This also allocates to the stack arr := [1, 2, 3]!
@Thisone95
@Thisone95 Жыл бұрын
V running doom is a lot less impressive after learning that it transpiles to C.
@asad-ullahkhan2368
@asad-ullahkhan2368 Жыл бұрын
how? its a v program that translated doom C to V. thats pretty impressive
@icoudntfindaname
@icoudntfindaname Жыл бұрын
​​@@asad-ullahkhan2368 and then THAT V code is again compiled to a similar(less efficient even) C code C is so "simple" that it could possibly be transpiled to many langs... You just lose efficiency... But V is compiled back down so that doesn't matter.... All you need are pointers, functions, integer types etc... Mostly just basic stuff
@asad-ullahkhan2368
@asad-ullahkhan2368 Жыл бұрын
@@icoudntfindaname the impressive part is translating the C code to V, not the transpiler. It shows you can incrementally convert a codebase to V (or all at once even). Besides, the V compiler also has an LLVM emitter, which will eventually be able to run doom as well (if not already capable of that)
@asandax6
@asandax6 Жыл бұрын
V is still pretty much in alpha stage. They transpile to C because they haven't implemented a direct compiler and for some reason the V developer hates LLVM and doesn't want to use it for compiling.
@Pece0
@Pece0 Жыл бұрын
@@icoudntfindaname You missed the point of the past 30 years (at least) of language design then. Most languages abstract away from the simplicity to ensure security. Yes C is a simple low-level language, this is what makes it *difficult* to translate it into a high-level language. Precisely because that's the point of high-level languages! If we could do the same prone-to-errors manipulations in Haskell as in C, nobody would program in Haskell, everybody would program in C directly and not compromise on efficiency. (I took Haskell as an example, this would work for basically any language which is not a dictionary for C). So the fact that you can translate a fairly large project like Doom automatically from C and then compile it by any means (including transpiling back to C on the way) and still have something decently runnable is pretty impressive. That being said, I don't really see the big innovation that this V thing is supposed to be.
@maninalift
@maninalift Жыл бұрын
A new language with UI built-in. Is it the 90s?
@inexistente
@inexistente Жыл бұрын
ikr just use electron
@ok-tr1nw
@ok-tr1nw Жыл бұрын
@@inexistente nah gtk the queen
@VLang
@VLang Жыл бұрын
It's not built-in. It's a separate module installable via `v install ui`.
@mgord9518
@mgord9518 10 ай бұрын
What's wrong with an official UI?
@BiGreDNoSecoMpAny
@BiGreDNoSecoMpAny 10 күн бұрын
@@mgord9518 people on this channel are only looking to build web apps
@9SMTM6
@9SMTM6 Жыл бұрын
Somebody mentioned Vale in your chat. That seems like a far more interesting language to me if I were to adopt a newish language. (do note, Vale, not Vala)
@jsonisbored
@jsonisbored Жыл бұрын
I've been trying to find Vale for awhile because I forgot the name. Thank you!
@9SMTM6
@9SMTM6 Жыл бұрын
@@jsonisbored that's actually exactly what happened to me, this video triggered me to search a bit deeper :). I remembered a language beginning with V which had some interesting memory management ideas, went from there.
@_slier
@_slier Жыл бұрын
Vale last commit is 25 jan.. not looking very promising.. looks ded to me
@9SMTM6
@9SMTM6 Жыл бұрын
@@_slier hmm, you're not wrong. There is more up to date activity on Verdagons branch, but thar suggests a bus factor of 1, and Vale is behind the Roadmap now that I check it.
@RasmusSchultz
@RasmusSchultz 11 ай бұрын
looks interesting 🙂👍 though I'm already nitpick-level annoyed that they truncated "function" as "func" while simultaneously lengthening "export" as "exported". just. WHY 😂
@omerpriel5588
@omerpriel5588 2 ай бұрын
It seems that if the languages are arranged from low-level language to high-level language. it will be: C < Zig < V < Go < Python
@andrewgjkgjk
@andrewgjkgjk 6 ай бұрын
I think the whole thing about references was maybe a nod to performance considerations. I think perhaps he was conveying that if you have some big struct and you're passing it into a function that doesn't mutate it, the compiler passes a reference instead. This way, the function operates as if a tedious time consuming copy had been made to pass it by value, but without that overhead. I mean, the style of the video leaves open the possibility that he was describing some cool "optimization" vs something the user would ever really perceive semantically from the feature.
@roccociccone597
@roccociccone597 8 ай бұрын
I'm primarily a Go dev. I also use some other languages at work but Go is my main one. V is definitely heavily inspired by Go. It has some nice improvements over Go, like having string interpolation and some other quality of life improvements. I'll keep an eye on it. It won't be a language I'd use for actual projects any time soon though. But it's promising .
@empresagabriel
@empresagabriel Жыл бұрын
Thanks for the video, Prime!
@techlifejournal
@techlifejournal Жыл бұрын
3:46 lol made my day. God bless you man you got great sense of humor.
@paulholsters7932
@paulholsters7932 Жыл бұрын
I never understood the following: what do developers mean when they say to “implement behavior”. What is behavior? What parts die behavior consists of? Or do they simply mean methods attached to some class or object?
@ThePrimeTimeagen
@ThePrimeTimeagen Жыл бұрын
There are people who hate classes, and so therefore they all have effectively see cell functions where you pass objects in to do things
@paulholsters7932
@paulholsters7932 Жыл бұрын
@@ThePrimeTimeagen ok thx
@paulholsters7932
@paulholsters7932 Жыл бұрын
@@ThePrimeTimeagen is there a particular reason why they hate classes?
@trenwar
@trenwar 23 күн бұрын
​@@paulholsters7932because it's kinda messy (at least for me), OOP is nice but sometimes it's too much especially with all that inheritance and abstraction
@danielmilyutin9914
@danielmilyutin9914 Жыл бұрын
Why you don't like C++ capture list in lambda and what is best design in your opinion?
@blenderpanzi
@blenderpanzi Жыл бұрын
Hm, does Vala still exists? Just got reminded because programming language starting in V. Vala looked a little bit like a Java/C# kind of language last time I looked at it, but it compiles to C (or did back then, not sure if it was before LLVM was a thing).
@jasonfahnestock9494
@jasonfahnestock9494 Жыл бұрын
absolutely, vala is used in several open source gui projects.
@jhonyortiz5
@jhonyortiz5 Жыл бұрын
Sounds like the language was made public waaaaaaaaaaaaaaay to soon when there is still so much to do and maybe not enough resources to do it. Edit: so many people are just like "try it" instead of answering questions about languages. Sure, I'll just put a few hours if my day to every little new shiny thing that comes out in tech.
@Evan490BC
@Evan490BC Жыл бұрын
Too many "a"s, too few "o"s...
@VLang
@VLang Жыл бұрын
I disagree. With 600+ contributors and now more than half of the codebase written by the open source community, it's good it was released when it was. What particular issues are you referring to?
@stephanpio
@stephanpio Жыл бұрын
I like your content, but it seems like your community is sounding more like haters day by day. In my view, they are just looking for validation by the streamer. I bet less than 10% have their own true opinions nowadays, and instead just look to have an opinion Prime would agree with. Most tech youtubers who stream seem to have echo chambers behind them, which I guess is good for their community, but perhaps not the best for meaningful discussion. I'd like to see content with people who have contrarian viewpoints but in Prime's content I just see echoes 99% of the time. I am just one guy on the internet, and probably sound like a hater as well, but just as Prime criticizes or has contrarian viewpoints to the things he reacts to, it would be great to hear the counters of his points as well.
@Funcijej
@Funcijej Жыл бұрын
Idk, if you watched the OOP good video, a lot of his chat disagree with him.
@rutabega306
@rutabega306 Жыл бұрын
Lol haters
@pookiepats
@pookiepats Жыл бұрын
shut up fool we are friendly and open minded u scrub
@m1kr0kosmos
@m1kr0kosmos Жыл бұрын
we could make a React of this React at how much rust sux.
@eboubaker3722
@eboubaker3722 Жыл бұрын
They just want entertainment you can see in the chat they are mostly laughing at each other's puns and jokes. They don't care about starting an argument
@jonforhan9196
@jonforhan9196 Жыл бұрын
I love code to the moon please considering reacting to more of his stuff he does great rust vids
@skaruts
@skaruts 8 ай бұрын
The problem with colons and arrows is they make the code harder to type. It doesn't flow as nicely through your fingers. You need to press shift a lot more, at least in some non american keyboards.
@CuriousSpy
@CuriousSpy Жыл бұрын
I created library kirka for typescript . Could you give me your review? I think this library will be very usefull for js/typescript community
@evaporei
@evaporei 7 ай бұрын
the arrow is good for searching return types tho (but yeah you could use a lsp)
@Ring0--
@Ring0-- Жыл бұрын
Oh ALL HELL! If you bring Carmack into the conversation - I'M GOING INTO IT!
@lucasa8710
@lucasa8710 Жыл бұрын
I'm very curious to know why people don't understand the difference between time estimation and time prediction
@Puzomor
@Puzomor Жыл бұрын
I've been following the language for years now. I can assure you, all the things that are marked as WIP on their web site but advertised as practically working were in the same state years ago when I first encountered the project. The hard problems (main selling points) are not being solved. Pity, since the syntax and ergonomics are above probably any other statically typed language.
@VLang
@VLang Жыл бұрын
Can you list any examples? None of the features are WIP anymore, everything listed on the website works.
@Puzomor
@Puzomor Жыл бұрын
@@VLang Alex, please - you don't have to aggressively defend your language on literally every comment on the Internet
@VLang
@VLang Жыл бұрын
@@Puzomor how is it agressive? I was just wondering which issues you referred to.
@Puzomor
@Puzomor Жыл бұрын
@@VLang because the comment is more than a month old.....
@VLang
@VLang Жыл бұрын
@@Puzomor don't see the logic. So can you list the examples? You've been following for years, must be easy to list some examples so that I can update the website.
@KamillaMirabelle
@KamillaMirabelle Жыл бұрын
Technically you can put it on the stack even though you only the length at compile time.. but it is a bit more complex to make it work
@tyunpeters3170
@tyunpeters3170 Жыл бұрын
I’m having a bit of deja vu right now, but V is already dead and Nim killed it. Nim has 3 options for GC, including a no GC option. It can also transpile to JavaScript
@petrmakhnev4037
@petrmakhnev4037 Жыл бұрын
I think it's a matter of taste. I don't like for example '&' for string concatenation and having 100500 ways to call functions which makes the code unclear in Nim. Btw, V also has a JS backend.
@TheoParis
@TheoParis Жыл бұрын
@@petrmakhnev4037 wasm >
@petrmakhnev4037
@petrmakhnev4037 Жыл бұрын
@@TheoParis you can compile C code into WASM and V has examples where this works great. Also, a native WASM backend is currently being developed, but it is still quite young.
@tyunpeters3170
@tyunpeters3170 Жыл бұрын
@@petrmakhnev4037 You don't have to use & for concatenation. You can also use a comma.
@Jaqu3Mate
@Jaqu3Mate 6 ай бұрын
It's go with snake case, string interpolation, range, autofree... It's like the perfect mix between rust and go
@AloisMahdal
@AloisMahdal 10 ай бұрын
gotta love the `4h 53m 2s old` dunst notification
@oakley6889
@oakley6889 Жыл бұрын
With everyday tasks, take your time estimate and double it.... With programming, cube it
@nekoill
@nekoill 10 ай бұрын
If nobody has said it (which I doubt, but still), I will: Code to the Moon, if memory serves me, is also a huge Rust fan; in fact, every other video of his I've seen so far was about Rust, which begs the question: collab w/ Code to the Moon when? I mean, your collabs w/ TJ are great, obviously, but this dude deserves to be featured on your channel as well
@JohnDean-my1dx
@JohnDean-my1dx Жыл бұрын
By the way, variables in V are immutable by default. The example at 6:59 won't run for this reason. The author of the video forgot to add `mut` i.e. `mut a := 5` instead of `a := 5`.
@jacopo8100
@jacopo8100 Жыл бұрын
that was GoLang, it wasn't V
@dertbom
@dertbom 10 ай бұрын
@@jacopo8100 That is not how you write Go, the code is in V. They were just comparing it to Go.
@bigtymer4862
@bigtymer4862 Жыл бұрын
The arrow in the rust return statement helps us dyslexics
@purpledaddy6077
@purpledaddy6077 Жыл бұрын
Hey is this the channel of the guy who built the auto-play feature on Netflix ™?
@ThePrimeTimeagen
@ThePrimeTimeagen Жыл бұрын
why yes it is
@nothke
@nothke Жыл бұрын
34:34 "my corneas are burning" "..felt that was short sighted.." Perfect timing 😂😂😂
@etopowertwon
@etopowertwon Жыл бұрын
Oh, I remember V. The language which promises no null, but delivered nulls. The language which promised no UB, but has documentation when UB occurs(closures). Uses tcc to sustain high compilation speed, which means destroying runtime speed. I would rather learn seed7
@petrmakhnev4037
@petrmakhnev4037 Жыл бұрын
You're right about nulls, the language only gets first class Optional types, which will allow us to start saying that there are no nulls in the language (in safe code). As for UB, I also agree, now the language does not promise the absence of UB. As for TCC, it's used for fast development, for production you can use GCC or Clang and get a super fast binary.
@socvirnylestela5878
@socvirnylestela5878 Жыл бұрын
V as in vaporware. i miss those times. how is V nowadays?
@petrmakhnev4037
@petrmakhnev4037 Жыл бұрын
@@socvirnylestela5878 evolving :)
@seanknowles9985
@seanknowles9985 Жыл бұрын
It's still in development and isn't advertised as stable 1.0
@isse6790
@isse6790 Жыл бұрын
@@petrmakhnev4037 It's dishonest to use TCC when benchmarking compilation times. Nim also has a TCC backend but you don't see people advertising Nim using benchmarks with it.
@egorandreevich7830
@egorandreevich7830 Жыл бұрын
I hope you don't forget the nim language on your tier list
@iWillAvert
@iWillAvert 2 ай бұрын
12:30 You can't technically define "methods" on structs in C (you can in C++ though), but having a struct with a field that is another struct is definitely a thing in C too. That is nothing new lol.
@pillmuncher67
@pillmuncher67 10 ай бұрын
C++ style capture list? I dunno. There's this new concept they should read up on, it's called Lexical Scope.
@ea_naseer
@ea_naseer Жыл бұрын
1:40 yes Carmack works out these days. He's admitted it several times.
@ElderSnake90
@ElderSnake90 Жыл бұрын
Becoming IRL Doomguy
@betapacket
@betapacket Жыл бұрын
was the title supposed to end w/ "Prime React"? or "Prime Reacts"
@maninalift
@maninalift Жыл бұрын
💯 Interfaces should not have properties 💯 The first thing i check with a new language is how it handles sum types aka enums. I want simple building blocks for building data on the right shape. Sum types and product types. That xkcd about the proliferation of standards applies... I see a new language and think "i could design a better language than that, maybe i should" (no i shouldn't)
@delian66
@delian66 Жыл бұрын
V does have sumtypes: `type Animal = Cat | Dog`, and exhaustive matching.
@stoomkracht
@stoomkracht 3 ай бұрын
If only these features actually were implemented and worked as advertised for years.😂😢
@gaborkrisko
@gaborkrisko 11 ай бұрын
You can have a shared buffer in js with workers
@dirkbester9050
@dirkbester9050 Жыл бұрын
I have consumed "you should learn rust" videos and articles and the decision is made to do so, just awaiting the opportunity. Same with Swift, and opportunity already knocked. I just watched the same for V and I now have zero reasons to learn V. However I gained several reasons not to. Well maybe if they can weave in a connection to the TV series V?
@lyoneel
@lyoneel Жыл бұрын
I think V is easy and maybe ok to read at this level, I think on complex code the lack of colons and other syntax of this lang will NOT help
@ea_naseer
@ea_naseer Жыл бұрын
maybe syntax highlighting would help.
@toddmartin7030
@toddmartin7030 Жыл бұрын
I agree with you on the properties and interfaces. Taking a language like C# or Java, if you can put properties in the interface, to me it really blurs the lines between what a class is and what an interface is. Interface should only describe behavior and be decoupled from internal data. Once an interface has internal data, it pretty much is a class.
@asandax6
@asandax6 Жыл бұрын
V doesn't have classes so that's why you have properties on interfaces.
@toddmartin7030
@toddmartin7030 Жыл бұрын
@@asandax6 Structs with methods are essentially roughly around the same thing without inheritance. A class at a high level is essentially data coupled with behavior. Taking this sample from Vlang struct User { age int } fn (u User) can_register() bool { return u.age > 16 } This is essentially a class, just without polymorphism and a different syntax. Why Do I need a property on an interface when I can just implement getters and setters or make a public property on the struct itself? Under the hood the above example and the following are not really that different. class User { int age; public bool can_register() { return this.age > 16; } } In most cases, these are not that functionally different from one another.
@sacredgeometry
@sacredgeometry Жыл бұрын
How does it blur the line? For most of its existence it was a specification. These days though they really have gone full retard with interfaces in C#. Properties are syntactic sugar around getters/ setters so methods backed by a field. Why wouldnt they belong on an interface?
@toddmartin7030
@toddmartin7030 Жыл бұрын
@@sacredgeometry Interfaces are more about guaranteeing same behavior without concrete implementators having to have the same data. If you want to guarantee two classes have the same data and behavior, well, that is what super and subclasses are for. Properties in an interface seems like it is trying to not only guarantee behavior, but also guarantee shared data. Getters and setters are not really behavior in my opinion since your directly working internal data to a struct or class. Or it opens the door to it.
@sacredgeometry
@sacredgeometry Жыл бұрын
​@@toddmartin7030 I am not sure I agree with that at all. It's not about guaranteeing they have the same data or behaviour. Why use an interface if you wanted they had the same of either of those things. It's about making sure they have the same interface. "Getters and setters are not really behavior" Of course they are they are essentially no different to having two methods GetSomeState() and SetSomeState() That is behaviour. Some examples from C# IEnumerator has a Current, IList without a Count, IDictionary has a property to retrieve the Keys and another for Values. Its not exactly hard to imagine why you would want the interface to specify properties.
@Tobarja
@Tobarja Жыл бұрын
Thanks for reminding me that Go uses case for things.
@user-xx5pv6wv5w
@user-xx5pv6wv5w 6 ай бұрын
so that's basically go but that can be compiled to C, nice actually for embedded systems
@kylestubblefield3404
@kylestubblefield3404 Жыл бұрын
I don't have a colon, and I can tell you, you are definitely winning with a colon vs without
@lev2590
@lev2590 Жыл бұрын
I'm excited for the lang tierlist 🤡
@cabeloDoPardal2
@cabeloDoPardal2 Жыл бұрын
6:20 Borland did that with Kylix many years ago
@nonamenolastname8501
@nonamenolastname8501 4 ай бұрын
I've minted an nft with the exact same logo lmao. Ofc it was a slow rug
@jkjoker777
@jkjoker777 Жыл бұрын
19:13 JS isn’t pass by reference. it’s pass by value. it’s just that sometimes that value is a reference
@Requiem100500
@Requiem100500 Жыл бұрын
It compiles into C, so basically Nim, only with go-like syntax instead of python-like
@nictibbetts
@nictibbetts Жыл бұрын
Yes.
@delian66
@delian66 Жыл бұрын
No. Many languages do compile into C, and Nim was not the first. Besides, there are many other significant differences with Nim - V for example has no macros, and no intention to have them at all. Nim is also more permissive for naming identifiers and variables, sometimes allowing you to call `xyz` as `xYz` or even `XYZ`, where all of them will refer to the same thing, while V does not.
@OneWingedShark
@OneWingedShark 11 ай бұрын
You might want to check out Ada. "If" w/o parens, no dangling else. Covering choices in a "case", works BEAUTIFULLY with enumerations. Context-capture done via generic-parameter, actually really robust generics. The "Task" construct for threading. Parameter-passing denoted by usage.
@philipphanslovsky5101
@philipphanslovsky5101 Жыл бұрын
If 2+ letters is long enough to it can always create an alias
@ernesto8738
@ernesto8738 Жыл бұрын
the GC middle ground is the erlang per-actor GC that never stops the world
@Jam-ht2ky
@Jam-ht2ky 7 ай бұрын
3:15 prime went snoop mode
@alphabasic1759
@alphabasic1759 11 ай бұрын
Well, now (after 30 years of doing IT) I've finally met someone that pronounces SQL as squeal. Yippee.
@nahfamimgood
@nahfamimgood Жыл бұрын
Typescript for C sounds sick
@youseflourdx6531
@youseflourdx6531 Жыл бұрын
it's a shame at 18:42 that prime won't create a language 😢
@Arthur-cx3ow
@Arthur-cx3ow Жыл бұрын
13:35 It masked another name to inheritance
@heyyrudyy404
@heyyrudyy404 Жыл бұрын
Not related to the video here, but just some foodie for rustacean : - Rust : ✅Strictly enforcing safe borrowing of data ✅Functions, methods, and closures to operate on data ✅Tuples, structs, and enums to aggregate data ✅Pattern matching to select and destructure data ✅Traits to define behaviour on data
@babayaga4329
@babayaga4329 Жыл бұрын
I think this was "just a teeny tiny bit" harsh on V. Too much comparison with Rust where it should've been overall and also ease of learning aspect being kept in mind to compare to rust. Plus when lang is pre-alpha and things don't work and devs fix the issues you had, that shouldn't even be judged
@brotheradamfromups
@brotheradamfromups 8 ай бұрын
I love V and would like to see it come to fruition. I've been using it since 2019. It's been in beta for a while now and I'm still reporting bugs that prevent the code from compiling several times a week. They're usually pretty quick about addressing the bug like you said. But I feel like the stability of the language has not improved enough to go from alpha to beta.
@mojt_ba
@mojt_ba 6 ай бұрын
what is the font of the code
@jfftck
@jfftck Жыл бұрын
I hate interfaces that defines parameter names because the type is the only thing that matters.
@rotteegher39
@rotteegher39 Жыл бұрын
I read the thumbnail as "Vim in 2023?"
@jasonfahnestock9494
@jasonfahnestock9494 Жыл бұрын
@rotteegher39 😮 So did I.
@JorgetePanete
@JorgetePanete Жыл бұрын
I remember the comment I made on that video: miss me with that := syntax
@sanathkumaru6358
@sanathkumaru6358 Жыл бұрын
@ThePrimeTime Can you please try dart lang sometime?
@user-xf6ef8ec4z
@user-xf6ef8ec4z 4 ай бұрын
To me space says "new word" not "example of this type". That's why I prefer a colon or some delimiter over a blank space.
@yamadakun844
@yamadakun844 Жыл бұрын
imho, V lang has a beautiful and easy to read syntax
@avalagum7957
@avalagum7957 Жыл бұрын
Has ThePrimeTime talked about Scala 3 yet? If not, I'd like to hear what he thinks of Scala 3.
@9SMTM6
@9SMTM6 Жыл бұрын
Feels like go+ (doesn't change enough for go++)
@Lucs-ku5cb
@Lucs-ku5cb Жыл бұрын
Go#
@quachhengtony7651
@quachhengtony7651 Жыл бұрын
Did I hear C#?
@zachb1706
@zachb1706 10 ай бұрын
Nothing says coupling like multiple returns through a tuple.
@user-qr4jf4tv2x
@user-qr4jf4tv2x 10 ай бұрын
prisma allows you to sql while being an orm.. i think prisma is the best orm.. but i still like my sql. i even have zero problem with unstructured in sql
@Shocker99
@Shocker99 2 ай бұрын
:= is assignment, which is different to =
@DevlogBill
@DevlogBill 10 ай бұрын
Does Rust have null safety like Kotlin? Wow, love the idea that V has interface, exciting stuff!
@xplinux22
@xplinux22 10 ай бұрын
Yep, Rust is entirely null-safe by default (see Option). Note that within the scope of an *unsafe {}* block, you may work with raw nullable pointers, should you need to do so for advanced purposes. For instance: implementing self-referential or cyclical data structures that the borrow checker currently rejects, calling C functions via FFI, etc.
@wissens4644
@wissens4644 Жыл бұрын
etur leo pharetra fringilla. In hendrerit tincidunt diam, in aliquet nisi viverra sed. Sed mollis vestibulum justo sed rutrum. In consectetur ultrices convallis. Integer semper volutpat porta. Sed maximus volutpat libero ut venenatis. Phasellus ullamcorper nisi vitae magna tempus hendrerit. Integer pretium a velit ut varius. Dev Test
@Algorhythm027
@Algorhythm027 Жыл бұрын
I don't buy that UI should be in the stdlib. It's tech debt waiting to happen. Just look at python with tkinter. I have never seen someone use tkinter for UI in python. Provide a first-party library sure, with it's own version management etc. but as the old adage goes: the stdlib is where code goes to die.
@VLang
@VLang Жыл бұрын
It's not part of stdlib. It's a separate module installable via `v install ui`.
@emjizone
@emjizone Жыл бұрын
3:46 Ok, so _V_ is to _C_ what _TS_ is to _JS_ . Why not using _Zig_ instead ?
@sortof3337
@sortof3337 Жыл бұрын
I love :, colons. i don't like turbofish, also lifetimes suck in rust. I am trying to build a bad http framework on my own and man its hard to make those macros that serde does beautifully. also its kind sus that you can't do impl type as return types in parameters but in fuctions. Like I want to do a: fn(T)->impl U, because rust does allow us to do fn() -> iml U when its required. its tough learning rust but fun. Like its crazy how when code compiles it works for so many cases the first time.
@SimonBuchanNz
@SimonBuchanNz Жыл бұрын
1. If you're finding lifetimes hard for some code, try throwing an Rc or using indexes instead. It's generally a hint that what you're doing isn't something "transient" which is really what lifetimes are for 2. Complex macros like serde use procedural macros, not macro_rules!. They're a bit more to set up, but then they are just Rust code running on compile on your source. Much simpler for fiddler cases. 3. impl Trait in return type just looks at the type returned from the function body and uses that (without exposing the type in the signature). impl Trait in parameter creates a hidden generic type parameter. They're both pretty simple transformations. Impl Trait in types is much harder, as it essentially means it has to look at the usages of that type and guess which specific type to use, which could need to look at the whole program, or mutually depend on other types stuff impl Trait, etc. And it won't even do what you want in that case, which is being able to return different types in different functions. Use a Box to use a trait polymorphically. The real problem with Rust is it makes things other languages don't let you do so easy, that you can get quite far without needing the slightly worse but more general thing. As an example, the equivalent of a C# List is basically Arc, and that's what you need if you want to use it like you do in C#, sharing it between threads and modifying it wherever. But if you just need it in one place, Vec is fine and way cheaper.
@jsonkody
@jsonkody Жыл бұрын
Colon as function return type operator? Yep at first TS way looked like it's more consistent .. function xyz( n: number ): number ... but actually maybe it is not. First colon mean value type and second is return type. Function has no type, it is a function - it returns a value of some type so it's basically a different thing, just slightly but different. At first I too didn't like the -> thing in Rust but it make sense .. a little more than colon in TS. Also I liked no semicolon and no colon syntax in Go for some time. But nowadays the Go/V syntax seems to me like too much void, too much magic syntax, too much 'not obvious - convention based' syntax.
@ivanjermakov
@ivanjermakov Жыл бұрын
I look at this from consistency perspective. I prefer the TS design, where syntax for type annotation is always DEFINITION + COLON + TYPE
@georgehelyar
@georgehelyar Жыл бұрын
I don't really know what was so bad about return type first before function name. int foo() Vs fn foo() -> i32. I like a lot of the things that rust does but this just feels like extra boilerplate for no reason.
@jsonkody
@jsonkody Жыл бұрын
int foo .. is somewhat elegant in a way, but also its kinda backwards. We are wired that we think of name first, then we want to know what it returns. This way you see from left to right what returns, than what is the name of something, maybe youll think about the name, then return back to start what it will return :) It's all wrong way .. but it's short.
@zwjna
@zwjna 8 ай бұрын
@@georgehelyar Read Rob Pike's article on Go's syntax. I can't share a link since YT would delete my comment. But basically there's nothing wrong with your example, until you start making it more complicated - such as signatures of functions that return pointers and take pointers to functions that take and return pointers. The Go/Rust way would be easier to read and write.
@danieloberhoff1
@danieloberhoff1 5 ай бұрын
hmm, last time i checked v had not actually worked out the autofree rules in a non conflicting manner, and the implementation was also far from being complete, but who knows
@0x3333
@0x3333 Жыл бұрын
Dude, u just sick! OMG! 🤣🤣🤣🤣
@orterves
@orterves 14 күн бұрын
Narrator: it was not
@arturfil
@arturfil Жыл бұрын
35:39 👍
@midlFidl
@midlFidl Жыл бұрын
code to the moon is awesome
@redundantpancake
@redundantpancake 10 ай бұрын
yeah I hate {} around 1 liner if statements, I always tried at my previous work but not many PRs got through bc of PARENTHESIS ANDIES....
@zekodun
@zekodun 11 ай бұрын
barf... typescript of c?! really we got that already it's called Bison+Flex and M4.
@KeyError
@KeyError Жыл бұрын
The most American thing you could say: “what is this animal? … it looks like something you’d shoot”
@NodeNomad
@NodeNomad Жыл бұрын
😂😂 thought the same
@jasonfahnestock9494
@jasonfahnestock9494 Жыл бұрын
It also looks like something that eats the rodentlike GO icon.
@lmao01
@lmao01 Жыл бұрын
I'm surprised this was even considered a language that can be popular in 2023. GC(auto-free lmao) which cleans "most of the time". Passing params which "passes either by value or reference but compiler knows" ... sure... The fact that such ambiguity is still a thing in "newer languages" is funny to even consider using it. Weasel was cute, but this one I also would hit with a car.
@VLang
@VLang Жыл бұрын
GC cleans 100% of the time. The value/reference optimization is being removed, there's an open PR.
@VLang
@VLang Жыл бұрын
By 100% of the time I mean it frees all variables, not "most".
The Vlang Drama
43:35
ThePrimeTime
Рет қаралды 94 М.
My Zig Experience | Prime Reacts
38:13
ThePrimeTime
Рет қаралды 142 М.
La final estuvo difícil
00:34
Juan De Dios Pantoja
Рет қаралды 26 МЛН
格斗裁判暴力执法!#fighting #shorts
00:15
武林之巅
Рет қаралды 74 МЛН
СҰЛТАН СҮЛЕЙМАНДАР | bayGUYS
24:46
bayGUYS
Рет қаралды 657 М.
Gleam for Impatient Devs
8:46
Isaac Harris-Holt
Рет қаралды 46 М.
Have We Forgotten How To Program?? | Prime Reacts
22:53
ThePrimeTime
Рет қаралды 412 М.
I am a Bad Software Engineer | Prime Reacts
26:06
ThePrimeTime
Рет қаралды 152 М.
Complete Rewrite In Go!
14:44
ThePrimeTime
Рет қаралды 198 М.
Why You Should AVOID Linked Lists
14:12
ThePrimeTime
Рет қаралды 267 М.
The Stockholm Syndrome of SQL | Prime Reacts
31:21
ThePrimeTime
Рет қаралды 119 М.
Zig is FASTER and SAFER than Rust | Prime Reacts
31:19
ThePrimeTime
Рет қаралды 183 М.
How GO Was Created - Less Is More | Prime Reacts
28:15
ThePrimeTime
Рет қаралды 126 М.
Creator Of Zig Leaves Twitter and Reddit | Prime Reacts
23:27
ThePrimeTime
Рет қаралды 76 М.
Nim 2.0 Release! | Prime News
20:03
ThePrimeTime
Рет қаралды 59 М.
3D printed Nintendo Switch Game Carousel
0:14
Bambu Lab
Рет қаралды 4,6 МЛН
Samsung or iPhone
0:19
rishton vines😇
Рет қаралды 8 МЛН
Обманет ли МЕНЯ компьютерный мастер?
20:48
Харчевников
Рет қаралды 187 М.
Выложил СВОЙ АЙФОН НА АВИТО #shorts
0:42
Дмитрий Левандовский
Рет қаралды 689 М.
Apple iPhone 15 Pro Max With Smallrig Professional Photography kit #shorts
0:14
Kalem ile Apple Pen Nasıl Yapılır?😱
0:20
Safak Novruz
Рет қаралды 884 М.