Vlang: The language of 2023?? | Prime React

Sdílet
Vložit
  • čas přidán 9. 03. 2023
  • 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
  • Věda a technologie

Komentáře • 377

  • @codetothemoon
    @codetothemoon Před rokem +409

    It was a lot of fun watching this reaction, thanks for doing it!

    • @BvngeeCord
      @BvngeeCord Před rokem +18

      Don't stop doing what you do :)

    • @Viralvlogvideos
      @Viralvlogvideos Před rokem +3

      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. Před rokem +3

      @@BvngeeCord That's what she said.

  • @oraqlle
    @oraqlle Před rokem +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.

  • @silverhairs
    @silverhairs Před rokem +20

    "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.

  • @porky1118
    @porky1118 Před rokem +16

    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)

  • @andrewrobinson2985
    @andrewrobinson2985 Před rokem +88

    The V community acts like they bet their life savings that it's going to be the next employable language.

    • @lagseeing8341
      @lagseeing8341 Před rokem +42

      "V coin to the moon" ahh behavior

    • @EzequielRegaldo
      @EzequielRegaldo Před rokem +9

      It is by far better than 90% of langs to be be honest

    • @joranmulderij
      @joranmulderij Před rokem +19

      @@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 Před rokem

      @@joranmulderij 1 lang, everything. Its the way

    • @joranmulderij
      @joranmulderij Před rokem +1

      @@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 Před rokem +64

    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 Před rokem +6

      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 Před rokem +5

      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 Před rokem +2

      @@stevenhe3462 imho c/java style is cleanest when it comes to return types.

    • @deistormmods
      @deistormmods Před rokem +5

      ​@@sk-sm9sh Nah. Rust does it best. It makes sense that the return is after the method signature. Much more intuitive.

  • @jamesnewman9547
    @jamesnewman9547 Před rokem +58

    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 Před rokem +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 Před 5 měsíci

      Chicken scheme, ATS and many others also do this

  • @carstenrasmussen1159
    @carstenrasmussen1159 Před rokem +82

    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 Před rokem +4

      @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 Před rokem +22

      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 Před rokem +24

      @@voidwalker7774 give it a cute dog and I'll hop on the D train

    • @GeorgijTovarsen
      @GeorgijTovarsen Před rokem +3

      D is a really, really cool language (now that there is a template for sumtypes)

    • @explqicot3293
      @explqicot3293 Před rokem

      ​@@ivymuncherDlang the big red dog 🐕

  • @Hazanko83
    @Hazanko83 Před rokem +14

    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)?

  • @9SMTM6
    @9SMTM6 Před rokem +27

    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 Před rokem +1

      I've been trying to find Vale for awhile because I forgot the name. Thank you!

    • @9SMTM6
      @9SMTM6 Před rokem

      @@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 Před rokem

      Vale last commit is 25 jan.. not looking very promising.. looks ded to me

    • @9SMTM6
      @9SMTM6 Před rokem +1

      @@_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 Před rokem +2

      looks interesting 🙂👍
      though I'm already nitpick-level annoyed that they truncated "function" as "func" while simultaneously lengthening "export" as "exported". just. WHY 😂

  • @RuslanKovtun
    @RuslanKovtun Před rokem +4

    8:00 - as a vim use you should know how awesome it is to have some separator before type to navigate quickly.

  • @toup0
    @toup0 Před rokem +8

    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 Před 9 měsíci +1

      Or the short syntax is to use ! at the end of your expression. This also allocates to the stack
      arr := [1, 2, 3]!

  • @nabilabdel-hafeez3916
    @nabilabdel-hafeez3916 Před 5 měsíci +1

    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.

  • @maninalift
    @maninalift Před rokem +14

    A new language with UI built-in. Is it the 90s?

    • @inexistente
      @inexistente Před rokem

      ikr just use electron

    • @ok-tr1nw
      @ok-tr1nw Před rokem +2

      @@inexistente nah gtk the queen

    • @VLang
      @VLang Před rokem +8

      It's not built-in. It's a separate module installable via `v install ui`.

    • @mgord9518
      @mgord9518 Před 11 měsíci +1

      What's wrong with an official UI?

    • @BiGreDNoSecoMpAny
      @BiGreDNoSecoMpAny Před měsícem

      @@mgord9518 people on this channel are only looking to build web apps

  • @techlifejournal
    @techlifejournal Před rokem +2

    3:46 lol made my day. God bless you man you got great sense of humor.

  • @danielmilyutin9914
    @danielmilyutin9914 Před rokem +1

    Why you don't like C++ capture list in lambda and what is best design in your opinion?

  • @Thisone95
    @Thisone95 Před rokem +41

    V running doom is a lot less impressive after learning that it transpiles to C.

    • @asad-ullahkhan2368
      @asad-ullahkhan2368 Před rokem +7

      how? its a v program that translated doom C to V. thats pretty impressive

    • @icoudntfindaname
      @icoudntfindaname Před rokem +11

      ​​@@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 Před rokem +3

      @@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 Před rokem +1

      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 Před rokem

      @@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.

  • @jonforhan9196
    @jonforhan9196 Před rokem +8

    I love code to the moon please considering reacting to more of his stuff he does great rust vids

  • @empresagabriel
    @empresagabriel Před rokem +1

    Thanks for the video, Prime!

  • @andrewgjkgjk
    @andrewgjkgjk Před 7 měsíci

    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.

  • @CuriousSpy
    @CuriousSpy Před rokem

    I created library kirka for typescript . Could you give me your review? I think this library will be very usefull for js/typescript community

  • @blenderpanzi
    @blenderpanzi Před rokem

    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).

  • @omerpriel5588
    @omerpriel5588 Před 4 měsíci

    It seems that if the languages are arranged from low-level language to high-level language. it will be:
    C < Zig < V < Go < Python

  • @paulholsters7932
    @paulholsters7932 Před rokem +9

    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  Před rokem +10

      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 Před rokem

      @@ThePrimeTimeagen ok thx

    • @paulholsters7932
      @paulholsters7932 Před rokem +1

      @@ThePrimeTimeagen is there a particular reason why they hate classes?

    • @trenwar
      @trenwar Před 2 měsíci

      ​@@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

  • @Ring0--
    @Ring0-- Před rokem +1

    Oh ALL HELL! If you bring Carmack into the conversation - I'M GOING INTO IT!

  • @skaruts
    @skaruts Před 10 měsíci +1

    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.

  • @evaporei
    @evaporei Před 9 měsíci

    the arrow is good for searching return types tho (but yeah you could use a lsp)

  • @lucasa8710
    @lucasa8710 Před rokem +1

    I'm very curious to know why people don't understand the difference between time estimation and time prediction

  • @jhonyortiz5
    @jhonyortiz5 Před rokem +17

    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 Před rokem

      Too many "a"s, too few "o"s...

    • @VLang
      @VLang Před rokem +2

      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?

  • @nekoill
    @nekoill Před rokem +1

    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

  • @stephanpio
    @stephanpio Před rokem +211

    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 Před rokem +26

      Idk, if you watched the OOP good video, a lot of his chat disagree with him.

    • @rutabega306
      @rutabega306 Před rokem +1

      Lol haters

    • @pookiepats
      @pookiepats Před rokem

      shut up fool we are friendly and open minded u scrub

    • @m1kr0kosmos
      @m1kr0kosmos Před rokem

      we could make a React of this React at how much rust sux.

    • @eboubaker3722
      @eboubaker3722 Před rokem +12

      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

  • @maninalift
    @maninalift Před rokem +3

    💯 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 Před rokem +2

      V does have sumtypes: `type Animal = Cat | Dog`, and exhaustive matching.

  • @roccociccone597
    @roccociccone597 Před 10 měsíci +6

    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 .

  • @nothke
    @nothke Před rokem

    34:34 "my corneas are burning"
    "..felt that was short sighted.."
    Perfect timing 😂😂😂

  • @KamillaMirabelle
    @KamillaMirabelle Před rokem

    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

  • @AloisMahdal
    @AloisMahdal Před rokem

    gotta love the `4h 53m 2s old` dunst notification

  • @JXQU3
    @JXQU3 Před 8 měsíci

    It's go with snake case, string interpolation, range, autofree... It's like the perfect mix between rust and go

  • @oakley6889
    @oakley6889 Před rokem +2

    With everyday tasks, take your time estimate and double it.... With programming, cube it

  • @bigtymer4862
    @bigtymer4862 Před rokem

    The arrow in the rust return statement helps us dyslexics

  • @cabeloDoPardal2
    @cabeloDoPardal2 Před rokem

    6:20 Borland did that with Kylix many years ago

  • @JohnDean-my1dx
    @JohnDean-my1dx Před rokem +2

    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 Před rokem

      that was GoLang, it wasn't V

    • @dertbom
      @dertbom Před rokem

      @@jacopo8100 That is not how you write Go, the code is in V. They were just comparing it to Go.

  • @Puzomor
    @Puzomor Před rokem +16

    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 Před rokem +3

      Can you list any examples? None of the features are WIP anymore, everything listed on the website works.

    • @Puzomor
      @Puzomor Před rokem +5

      @@VLang Alex, please - you don't have to aggressively defend your language on literally every comment on the Internet

    • @VLang
      @VLang Před rokem +6

      @@Puzomor how is it agressive? I was just wondering which issues you referred to.

    • @Puzomor
      @Puzomor Před rokem

      @@VLang because the comment is more than a month old.....

    • @VLang
      @VLang Před rokem +9

      @@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.

  • @ea_naseer
    @ea_naseer Před rokem +3

    1:40 yes Carmack works out these days. He's admitted it several times.

  • @iWillAvert
    @iWillAvert Před 4 měsíci

    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.

  • @betapacket
    @betapacket Před rokem

    was the title supposed to end w/ "Prime React"? or "Prime Reacts"

  • @ogpurpledaddy
    @ogpurpledaddy Před rokem +9

    Hey is this the channel of the guy who built the auto-play feature on Netflix ™?

  • @gaborkrisko
    @gaborkrisko Před rokem

    You can have a shared buffer in js with workers

  • @jkjoker777
    @jkjoker777 Před rokem

    19:13 JS isn’t pass by reference.
    it’s pass by value. it’s just that sometimes that value is a reference

  • @etopowertwon
    @etopowertwon Před rokem +36

    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 Před rokem +3

      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 Před rokem +3

      V as in vaporware. i miss those times. how is V nowadays?

    • @petrmakhnev4037
      @petrmakhnev4037 Před rokem +1

      @@socvirnylestela5878 evolving :)

    • @seanknowles9985
      @seanknowles9985 Před rokem +1

      It's still in development and isn't advertised as stable 1.0

    • @isse6790
      @isse6790 Před rokem +1

      @@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.

  • @pillmuncher67
    @pillmuncher67 Před rokem

    C++ style capture list? I dunno. There's this new concept they should read up on, it's called Lexical Scope.

  • @egorandreevich7830
    @egorandreevich7830 Před rokem +2

    I hope you don't forget the nim language on your tier list

  • @tyunpeters3170
    @tyunpeters3170 Před rokem +37

    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 Před rokem +5

      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 Před rokem

      @@petrmakhnev4037 wasm >

    • @petrmakhnev4037
      @petrmakhnev4037 Před rokem +1

      @@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 Před rokem

      @@petrmakhnev4037 You don't have to use & for concatenation. You can also use a comma.

  • @mojt_ba
    @mojt_ba Před 8 měsíci

    what is the font of the code

  • @stoomkracht
    @stoomkracht Před 4 měsíci +1

    If only these features actually were implemented and worked as advertised for years.😂😢

  • @Tobarja
    @Tobarja Před rokem

    Thanks for reminding me that Go uses case for things.

  • @Arthur-cx3ow
    @Arthur-cx3ow Před rokem

    13:35 It masked another name to inheritance

  • @lyoneel
    @lyoneel Před rokem +9

    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 Před rokem +1

      maybe syntax highlighting would help.

  • @Jam-ht2ky
    @Jam-ht2ky Před 9 měsíci

    3:15 prime went snoop mode

  • @user-xx5pv6wv5w
    @user-xx5pv6wv5w Před 8 měsíci

    so that's basically go but that can be compiled to C, nice actually for embedded systems

  • @philipphanslovsky5101

    If 2+ letters is long enough to it can always create an alias

  • @sortof3337
    @sortof3337 Před rokem

    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 Před rokem

      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.

  • @nahfamimgood
    @nahfamimgood Před rokem

    Typescript for C sounds sick

  • @sanathkumaru6358
    @sanathkumaru6358 Před rokem

    @ThePrimeTime Can you please try dart lang sometime?

  • @OneWingedShark
    @OneWingedShark Před rokem +2

    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.

  • @babayaga4329
    @babayaga4329 Před rokem +4

    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 Před 9 měsíci

      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.

  • @rotteegher39
    @rotteegher39 Před rokem +1

    I read the thumbnail as "Vim in 2023?"

  • @Requiem100500
    @Requiem100500 Před rokem +1

    It compiles into C, so basically Nim, only with go-like syntax instead of python-like

    • @nictibbetts
      @nictibbetts Před rokem +1

      Yes.

    • @delian66
      @delian66 Před rokem

      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.

  • @heyyrudyy404
    @heyyrudyy404 Před rokem

    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

  • @lev2590
    @lev2590 Před rokem +6

    I'm excited for the lang tierlist 🤡

  • @kylestubblefield3404
    @kylestubblefield3404 Před rokem +1

    I don't have a colon, and I can tell you, you are definitely winning with a colon vs without

  • @avalagum7957
    @avalagum7957 Před rokem

    Has ThePrimeTime talked about Scala 3 yet? If not, I'd like to hear what he thinks of Scala 3.

  • @Algorhythm027
    @Algorhythm027 Před rokem +3

    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 Před rokem +1

      It's not part of stdlib. It's a separate module installable via `v install ui`.

  • @ernesto8738
    @ernesto8738 Před rokem

    the GC middle ground is the erlang per-actor GC that never stops the world

  • @alphabasic1759
    @alphabasic1759 Před rokem

    Well, now (after 30 years of doing IT) I've finally met someone that pronounces SQL as squeal. Yippee.

  • @user-xf6ef8ec4z
    @user-xf6ef8ec4z Před 6 měsíci

    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.

  • @Shocker99
    @Shocker99 Před 3 měsíci

    := is assignment, which is different to =

  • @JorgetePanete
    @JorgetePanete Před rokem

    I remember the comment I made on that video: miss me with that := syntax

  • @9SMTM6
    @9SMTM6 Před rokem +1

    Feels like go+ (doesn't change enough for go++)

  • @youseflourdx6531
    @youseflourdx6531 Před rokem +2

    it's a shame at 18:42 that prime won't create a language 😢

  • @redundantpancake
    @redundantpancake Před rokem

    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....

  • @jfftck
    @jfftck Před rokem

    I hate interfaces that defines parameter names because the type is the only thing that matters.

  • @MaxHaydenChiz
    @MaxHaydenChiz Před rokem +1

    I don't really understand why anyone would want this auto free thing. If you are writing something that ought to be in C++ or Rust, then resource management *is* a large part of the problem space. If it could be automated, then you wouldn't need to do custom resource management and a good garbage collector is going to be better than doing malloc and free -- those are inherently more expensive. Plus, by having the compiler do it like this, you lose out on the main benefit of not having a gc -- that how you handle memory is deterministic and visible to the programmer from the source code.
    So I'm unclear on what you'd want to use V for.

  • @DevlogBill
    @DevlogBill Před rokem

    Does Rust have null safety like Kotlin?
    Wow, love the idea that V has interface, exciting stuff!

    • @xplinux22
      @xplinux22 Před 11 měsíci

      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.

  • @yamadakun844
    @yamadakun844 Před rokem +1

    imho, V lang has a beautiful and easy to read syntax

  • @emjizone
    @emjizone Před rokem

    3:46 Ok, so _V_ is to _C_ what _TS_ is to _JS_ .
    Why not using _Zig_ instead ?

  • @wissens4644
    @wissens4644 Před rokem

    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

  • @lmao01
    @lmao01 Před rokem +4

    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 Před rokem +1

      GC cleans 100% of the time. The value/reference optimization is being removed, there's an open PR.

    • @VLang
      @VLang Před rokem +1

      By 100% of the time I mean it frees all variables, not "most".

  • @quachhengtony7651
    @quachhengtony7651 Před rokem +1

    Did I hear C#?

  • @jsonkody
    @jsonkody Před rokem +1

    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 Před rokem

      I look at this from consistency perspective. I prefer the TS design, where syntax for type annotation is always DEFINITION + COLON + TYPE

    • @georgehelyar
      @georgehelyar Před rokem

      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 Před rokem

      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 Před 10 měsíci

      @@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.

  • @user-qr4jf4tv2x
    @user-qr4jf4tv2x Před rokem

    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

  • @arturfil
    @arturfil Před rokem

    35:39 👍

  • @lydianlights
    @lydianlights Před rokem

    I like like 3 of their ideas and hate the syntax, lmao. Go is awesome but I would never use its syntax as a base lmao.

  • @danieloberhoff1
    @danieloberhoff1 Před 7 měsíci

    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

  • @henson2k
    @henson2k Před 7 měsíci

    V as a Vendetta or V as an alien lizards?

  • @emjizone
    @emjizone Před rokem

    17:02 Yeah, sure, the compiler know better what you want to achieve than yourself. 😭😡

  • @JakobJenkov
    @JakobJenkov Před rokem

    It's a Veasel !

  • @orterves
    @orterves Před 2 měsíci

    Narrator: it was not

  • @toddmartin7030
    @toddmartin7030 Před rokem +3

    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 Před rokem

      V doesn't have classes so that's why you have properties on interfaces.

    • @toddmartin7030
      @toddmartin7030 Před rokem

      @@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 Před rokem

      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 Před rokem

      @@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 Před rokem

      ​@@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.

  • @Arthur-cx3ow
    @Arthur-cx3ow Před rokem

    V is the Microsoft GO? lol

  • @romangeneral23
    @romangeneral23 Před 9 měsíci

    V is two years away from replacing C++