Val - The Rust Killer | Prime Reacts

  Рет қаралды 91,245

ThePrimeTime

ThePrimeTime

9 ай бұрын

Recorded live on twitch, GET IN
/ theprimeagen
Article: thenewstack.io/meet-val-a-new...
Written by: Loraine Lawson | / lorainelawson
MY MAIN YT CHANNEL: Has well edited engineering videos
/ theprimeagen
Discord
/ discord
Have something for me to read or react to?: / theprimeagenreact

Пікірлер: 471
@FrederikSchumacher
@FrederikSchumacher 9 ай бұрын
I'm going to start another new language, and I'm going to call it "Work" because it'll just work. Also because it'll truly mess with HR trying to express "5 years of $LANG experience"
@theohallenius8882
@theohallenius8882 9 ай бұрын
"We expect you to be proficient in Work, with at least 5+ years experience with Work environment and tools, and you must love Work not for the salary but just to have the opportunity to do more Work."
@ivanjermakov
@ivanjermakov 9 ай бұрын
That's how Rockstar programming language was born
@dein-ding
@dein-ding 9 ай бұрын
@@ivanjermakov Oh you mean PHP?
@sufyanfaris
@sufyanfaris 9 ай бұрын
inb4 "5 years of WORKLANG experience"
@jrnas8046
@jrnas8046 9 ай бұрын
This is the kind of shit my old boss would say unironically
@Maxxxxxxxxxxxxxxxxxxxxxxxxxxxx
@Maxxxxxxxxxxxxxxxxxxxxxxxxxxxx 9 ай бұрын
We'll soon need 5 years of Val experience in order to get a job
@dotmavriq
@dotmavriq 9 ай бұрын
Soon? Bet you that some AI has already printed it
@SimGunther
@SimGunther 9 ай бұрын
Classic
@advertslaxxor
@advertslaxxor 9 ай бұрын
By then we'll need 8 years of experience
@Rakkoonn
@Rakkoonn 9 ай бұрын
Already put it on my resume, right after my 10 YoE as senior prompt engineer.
@re1konn
@re1konn 9 ай бұрын
​@@Rakkoonn😂😂
@Jiftoo
@Jiftoo 9 ай бұрын
We've moved from JS frameworks coming out every month to llvm languages coming out every month.
@heruhday
@heruhday 3 ай бұрын
Thanks llvm😂..
@bashiry4218
@bashiry4218 3 ай бұрын
hhhhhhh
@rafaelbordoni516
@rafaelbordoni516 9 ай бұрын
We went from "C++ is dead" to "this new language will replace C++" really fast, huh
@ThePrimeTimeagen
@ThePrimeTimeagen 9 ай бұрын
things happen
@FaZekiller-qe3uf
@FaZekiller-qe3uf 9 ай бұрын
⁠​⁠@@bbourbakiEvery single language makes this exact same argument. C++ doesn't provide some magical level of control. You sound like the guy who writes game engines in ASM because C or C++ "doesn't provide nearly enough control". It's not a control == better thing. It's an I like this language thing. You're making up BS objective reasoning to replace the subjective reality. Some may choose C++ because a game engine they want needs it, so they are somewhat forced (or some other reason), this is fine, but don't make up other BS to justify it.
@godowskygodowsky1155
@godowskygodowsky1155 9 ай бұрын
​@@bbourbakiI once worked on a project that used ANSI C for networking. The language gave us direct control over the incoming bytes, pointer casting, endianness, etc. I think it would have been more of a headache in a higher level language that obscures these details. I have also worked on porting ML projects between Python, Java, and C++ for proofs of concept, enterprise backend, and embedded systems, respectively. There's a reason each use case calls for a different language.
@monad_tcp
@monad_tcp 9 ай бұрын
@@bbourbaki "require level of control" NO, you don't require that level of control (maybe your ego does, but the problem you are solving doesn't). Programming languages are abstractions. Why don't you create your own hardware, instruction set and program it in hex code if you need that much control... What are we now ? manually moving electrons using our minds because we're control freaks ? grow up ! C++ is full of bullshit, that bullshit is expensive as hell, and the language is so complex with the only purpose of making everything hard to master. Its not for control, it actually causes lack of control, its for job security or ego or reputation or some bullshit that has no technical merit and doesn't really matter as an engineering feature, but programmers are still human, aren't they ?... so that's basically narcissism.
@monad_tcp
@monad_tcp 9 ай бұрын
TLDR; C++ control is about ego.
@roshantiwaree
@roshantiwaree 9 ай бұрын
Language are going to be like Linux distros. The tree branches
@nomoredarts8918
@nomoredarts8918 9 ай бұрын
I use NixOS btw
@sck3570
@sck3570 9 ай бұрын
@@nomoredarts8918 Come back when you use Arch
@RenderingUser
@RenderingUser 9 ай бұрын
brb gonna go create a language called branch
@aruZeta
@aruZeta 9 ай бұрын
​@@nomoredarts8918that's the way
@Deschutron
@Deschutron 9 ай бұрын
They already come with package managers now.
@CamembertDave
@CamembertDave 9 ай бұрын
Val: "I'm compiled ahead of time to machine code" Prime: "we just call that compiled" *Java has left the chat*
@ThePrimeTimeagen
@ThePrimeTimeagen 9 ай бұрын
poor java
@M4Dbrat
@M4Dbrat 7 ай бұрын
A virtual machine is still a machine, right, eh?
@colin_actually
@colin_actually 9 ай бұрын
Finally someone is putting Rust out of its misery.
@ThePrimeTimeagen
@ThePrimeTimeagen 9 ай бұрын
just put it down already
@switchblade6226
@switchblade6226 9 ай бұрын
​@@ThePrimeTimeagenwasn't rust supposed to be the 1000 year language to rule them all?
@oredaze
@oredaze 9 ай бұрын
@@switchblade6226 Non-programmers have infected it.
@nathanbustamante1479
@nathanbustamante1479 9 ай бұрын
all the best engineers i know love rust lmao
@nathanbustamante1479
@nathanbustamante1479 9 ай бұрын
@@kidmosey show me an objectively better language for building a web browser as a baseline
@axotellix
@axotellix 9 ай бұрын
OMG, due to how many language killers we now have - programming might be dead 😵
@eksortso
@eksortso 9 ай бұрын
That's the opposite of "dead." That's a lot of engineers thinking of different and potentially better ways to do things with code. Nothing could be more alive.
@axotellix
@axotellix 9 ай бұрын
@@eksortso that`s a joke, bro 😉
@eksortso
@eksortso 9 ай бұрын
@@axotellix Even with the emoji, it seemed too sincere.
@CTimmerman
@CTimmerman 9 ай бұрын
True, nocode is all the rage and went from English to INI to CSV to XML to JSON to JSONP to YAML to TOML to English it seems.
@brencancer
@brencancer 9 ай бұрын
Okay , i guess back to chicken farm.
@RealMazharHussain
@RealMazharHussain 9 ай бұрын
Imagine someone asks what programming languages do you know and the guy says "Val, Vale, and Vala".
@nomoredarts8918
@nomoredarts8918 9 ай бұрын
Valhalla
@RealMazharHussain
@RealMazharHussain 9 ай бұрын
wow
@emptydata-xf7ps
@emptydata-xf7ps 9 ай бұрын
** ”V, Val, Vale, and Vala”
@brtnai
@brtnai 9 ай бұрын
С C ++ C# D
@JayJay-ki4mi
@JayJay-ki4mi 9 ай бұрын
Lets add verse to that list for good measure.
@SaemGhani
@SaemGhani 9 ай бұрын
protip: skip secondary articles unless the primary source is lacking; Val's site answers most questions.
@isodoubIet
@isodoubIet 9 ай бұрын
The idea of value semantics is to do away with pointers (and pointer-like things). Like in Java for instance if you declare a class you'll secretly be passing around a pointer to every object, which means (as the article says) you're never quite sure if you're the only one mutating a value. Rust is very much _not_ this; the whole idea of the borrow checker is to be able to pass references around in a way that's provably safe at compile time. You need another language to do this because if you just do away with references and don't do anything else you have potentially killed performance in other ways and/or made your life harder by removing the ability to use reference semantics where it is useful. Val is a very interesting project precisely because value semantics are the better default than references everywhere and it makes the code much easier to reason about. When you first write a Rust program and just slapping .clone() everywhere, you're acknowledging that. But in Rust that will incur a performance penalty. The whole idea is to be able to write the easy code full of clones but do away with the performance overhead.
@ThePrimeTimeagen
@ThePrimeTimeagen 9 ай бұрын
yeah, agreed
@isodoubIet
@isodoubIet 9 ай бұрын
ps: haskell ain't it either; with haskell you get the benefits of values but in haskell everything is immutable (at least notionally), and that introduces a ton of overhead.
@AllanSavolainen
@AllanSavolainen 9 ай бұрын
How can clones ever be performant? Either you'll spend cycles copying megabytes of data on every function call, or have cache misses if you use tree structures to keep the data static and only store changes. Or am I missing something?
@amrojjeh
@amrojjeh 9 ай бұрын
What I'm confused about is how do you keep value semantics without copying?
@DrewryPope
@DrewryPope 9 ай бұрын
Shadow data
@tacticaltaco7481
@tacticaltaco7481 9 ай бұрын
It is very bold to say the language replaces C++/Rust. Not because of how complete and robust C++/Rust are to begin with, but because of how different Val is. I suspect that she didn't really mean it replaces C++/Rust, but rather it replaces a lot of the pitfalls of higher level languages that have people running to Rust/C++ for the performance gains.
@thijsyo
@thijsyo 9 ай бұрын
Glad we finally got some clarity on the difference between MVS and MVS
@quelchx
@quelchx 9 ай бұрын
With each passing day as an engineer -- rather than finding more answers to my questions I tend to find more questions to my questions.
@SpaceShot
@SpaceShot 9 ай бұрын
I appreciate the honesty more than anything. What i mean by this is you've helped make it safe for all programmers, including experienced ones to say out loud, "i just don't get it." Often in this industry, this is used to shame or mock. You do so from a place of curiosity and learning. This approach is healthy and i hope all of our next generation programmers are watching.
@dominikskeries
@dominikskeries 9 ай бұрын
can’t wait for the first val foundation drama
@rubiskelter
@rubiskelter 9 ай бұрын
You're awsome man, going through some heavy stuff on my life, your videos sheer me up a lot. Thanks Prime.
@JayJay-ki4mi
@JayJay-ki4mi 9 ай бұрын
This is why I'm still invested in C++, because it's a language that isn't going anywhere. There's too many languages coming out that claim to kill Rust, or C or [insert language]. I'm almost 40, and I've witnessed language hype for over 20 years, yet it's still the same players running the game. Jumping on the cool-kid bandwagon will likely leave you stranded with a flat tyer in the middle of the nowhere.
@romangeneral23
@romangeneral23 9 ай бұрын
Val is two years away from replacing C++
@DooMWhite
@DooMWhite 9 ай бұрын
lmao
@ZenoDovahkiin
@ZenoDovahkiin 9 ай бұрын
Surely at this point the actual tool to learn is LLVM.
@natescode
@natescode 5 ай бұрын
😂fair point
@bassjio
@bassjio 9 ай бұрын
Thank you for linking the article
@victorpinasarnault9135
@victorpinasarnault9135 8 ай бұрын
Now, it was renamed tô Hylo programming language.
@ISKLEMMI
@ISKLEMMI 9 ай бұрын
I literally typed out this comment, "i crave new programming languages as fast as we get new javascript frameworks." but then you made the joke in the video. 😂
@ThePrimeTimeagen
@ThePrimeTimeagen 9 ай бұрын
you get it
@lancemarchetti8673
@lancemarchetti8673 9 ай бұрын
The higher the level, the further I feel away from my cpu where I usually experience safety and warmth.
@Euphorya
@Euphorya 9 ай бұрын
All these new languages are also "Systems" programming languages. Why doesn't someone make the new High level "Javascript" killer? That's something I'd be excited for.
@ThePrimeTimeagen
@ThePrimeTimeagen 9 ай бұрын
lua?
@soldierbirb
@soldierbirb 9 ай бұрын
​@@ThePrimeTimeagen wait, can I use Lua on frontend that is not compiling to JavaScript?
@Alex-kb2ws
@Alex-kb2ws 9 ай бұрын
What single advantage does lua have over Js?
@ShadoFXPerino
@ShadoFXPerino 9 ай бұрын
Microsoft tried with Typescript. JS lives on because Google and Apple don't care, and at the end of the day of the browser doesn't run it, your JS killer won't go anywhere. Lua website has no dark mode so obviously nobody on their team cares about basic web usability.
@rocstar3000
@rocstar3000 9 ай бұрын
​@@Alex-kb2wsarrays start with 1
@Gorgutzdaboss
@Gorgutzdaboss 9 ай бұрын
"Close to the metal", but is it "Pedal to the metal"?
@kenneth_romero
@kenneth_romero 9 ай бұрын
11:30 actually NASA codes like this to ensure they get fewer bugs. I forget which video I watched, might've been LowLevelLearning but was pretty cool how careful they are in their code.
@raffimolero64
@raffimolero64 9 ай бұрын
they also put hard limits on all loops no recursion btw, recursion is hard etc etc
@AI-xi4jk
@AI-xi4jk 9 ай бұрын
I read some article that they had very disciplined C coding.
@minciNashu
@minciNashu 9 ай бұрын
aircraft code, and I assume other safety related code, doesn't allocate
@CrazyMineCuber
@CrazyMineCuber 9 ай бұрын
I just came to think of a related question I have been thinking about. What is Lua's reasoning for variables being global by default? Seems like similar errors could occur from this, like could occur not having to explicitly specify mut.
@telnobynoyator_6183
@telnobynoyator_6183 9 ай бұрын
I hear "new alternative to C++, Rust" and am immediately very happy. We don't have enough of those. What I wouldn't give for a language that easily allows to do the same things as C but has a syntax closer to Rust / OCaml, generics, matches and type sums. Let's watch the video to see which boxes this one ticks haha
@unpopulareconomics
@unpopulareconomics 9 ай бұрын
I have been writing C++ for 20 years. Every year there has been a language poised to dethrone C++, it has rarely been the same languages two years in a row, but there has always been one. I suspect there will be a language poised to dethrone C++ for the next 20 year as well.
@danidotexe_
@danidotexe_ 8 ай бұрын
"engineers are the worst estimators ever" it's been scientifically proven that humans are bad at time estimation and yet we still keep trying it
@porky1118
@porky1118 9 ай бұрын
8:15 Yup, that's how things should be done. Always be more restrictive by default, and in order to allow more, you have to add more code. That has been my philosophy since I'm using Rust. Or when I think about it, even before I started using Rust. I defned some language for stories, where you can define something like this: a -> b | c -> d Which means "Scene a first, then either scene b or c, then scene d" And if you defined "a -> b & c -> d", it means the same, but "both, scene b AND c" But when you define both of these at once, always the less restrictive variant is used, which means, after a comes b AND c, but d only needs b OR c to be finished. Not exactly the same, but probably similar.
@MrAlanCristhian
@MrAlanCristhian 9 ай бұрын
New programing languages are javascript frameworks of the present.
@SimGunther
@SimGunther 9 ай бұрын
Why not show people how to be better at using existing languages instead of making your own? >Proceeds to make language like Rust, but does one thing trivially better
@0.Maiden
@0.Maiden 9 ай бұрын
perhaps for them, learning an existing language is more difficult than creating a new one 😂
@rogergalindo7318
@rogergalindo7318 9 ай бұрын
prime si afraid of haskell that whenever he sees immutability, he projects his fear and calls it haskell
@RazineBensari
@RazineBensari 9 ай бұрын
ahh man, I just started learning Rust. Now I need to start again with Val...
@marksmith2540
@marksmith2540 9 ай бұрын
Didn't we used to call this referential transparency???
@RuRu-vm6yw
@RuRu-vm6yw 9 ай бұрын
Brilliant end! I totally resonate, I only understood that it’s something to do with mutable value semantics 😅
@unmeinks5907
@unmeinks5907 9 ай бұрын
thanks for converting me to neovim! i actually enjoy editing code now!
@dotmavriq
@dotmavriq 9 ай бұрын
If the cargo equivalent for Val isn't named Kilmer I'm going to ignore this lang forever. My JSON handler is named Statham. Fight me
@yash1152
@yash1152 8 ай бұрын
7:47 perfectly readable font size for even at 240p - u got my like
@melanovapedia7924
@melanovapedia7924 9 ай бұрын
Val really have good logos 🤩
@thomas-hall
@thomas-hall 9 ай бұрын
Can I just say that anyone who says "0 cost abstraction" is not an engineer and has never seen a poorly named variable
@tom_stephen
@tom_stephen 9 ай бұрын
I love that we have Vala, Vale, and now Val.
@scheimong
@scheimong 9 ай бұрын
Sounds like snakeoil to me
@ThePrimeTimeagen
@ThePrimeTimeagen 9 ай бұрын
i would love to see something real
@AnitaSV
@AnitaSV 9 ай бұрын
I think what they mean is - behaves like “pass by copy” but actually is “pass by reference” unless they modify.
@fabiohvp
@fabiohvp 9 ай бұрын
FYI it is possible to create an array type that makes all inner properties readonly, one of the good things of typescript it is that it is very customizable
@chris-pee
@chris-pee 9 ай бұрын
Doesn't "as const" do just that?
@HelloThere-xs8ss
@HelloThere-xs8ss 9 ай бұрын
I want hard_pointers to represent what I am feeling
@ThePrimeTimeagen
@ThePrimeTimeagen 9 ай бұрын
such hard pointers
@jordixboy
@jordixboy 9 ай бұрын
academics: throw around big words until no one understands you.
@andrewdunbar828
@andrewdunbar828 9 ай бұрын
We are living in an exciting time of the Cambrian Explosion of programming languages.
@MosiurRahman-dl5ts
@MosiurRahman-dl5ts 9 ай бұрын
Prime is a genius.
@ThePrimeTimeagen
@ThePrimeTimeagen 9 ай бұрын
am i?
@thingsiplay
@thingsiplay 9 ай бұрын
@@ThePrimeTimeagen are u?
@vaisakhkm783
@vaisakhkm783 9 ай бұрын
@@ThePrimeTimeagen waiting for PDSL
@tylersperry9164
@tylersperry9164 9 ай бұрын
@@ThePrimeTimeagen Sorry, Prime, but you're no Tom.
@eqprog
@eqprog 9 ай бұрын
@@ThePrimeTimeagen the columns on that chart on that site explaining mvs said “multiple” value semantics and “mutable” value semantics. They didn’t say the same thing.
@GaryChike
@GaryChike 9 ай бұрын
V, Val, Vala and Vale
@laughingvampire7555
@laughingvampire7555 9 ай бұрын
Since you are in your "new language exploration" search about Roc programming language and the talks of its creator, Richard Feldman, he uses similar semantics, but is not haskell, Haskell is lazy evaluated and this language Val sounds like strict evaluated, the same way as Roc. Another language to check is F-star, is a language focus heavily on verification for security and other requirements
@NibbleMeTwice
@NibbleMeTwice 9 ай бұрын
Nothing says "I got all of my writing skills from college" quite like writing an essay that takes time to read but doesn't actually say anything important or real.
@mukeshwarvarma1733
@mukeshwarvarma1733 9 ай бұрын
Val - The Rust Killer, she said
@rterminatu
@rterminatu 9 ай бұрын
4:10 thank you Primeagen!
@NiketMalik
@NiketMalik 9 ай бұрын
Can you search for how many times the word "val" appear in the article?
@tal500
@tal500 8 ай бұрын
Local reasoning basically says: I know that if the precondition(I.e. rules for the input parameters) are met, I promise the postconditions(I.e. the output satisfy this this and this). Now that you know what this function is doing(and after you check it really does what it say it does well, say by unit testing or by an automatic formal proof), then you can compose this knowledge with another function calling this previous function. If you do it right, the story compose and you know that your whole program just works. When we say "non-local reasoning" we basically means that one part of your program uses the specific behavior of an non-tightly coupled other.
@pushyoch.8252
@pushyoch.8252 9 ай бұрын
i gotta ask, how much is rust foundation drama affecting the usability & ecosystem of the language? I'm looking for another language to learn it's between rust & go, leaning towards go rn
@xplinux22
@xplinux22 9 ай бұрын
Honestly, not much at all. I'm using it professionally 40 hours a week (not a crypto or blockchain firm, doing embedded software dev), happily chugging along, blissfully ignorant of all the drama except for when I tune into Prime's streams and vids.
@TheMrKeksLp
@TheMrKeksLp 9 ай бұрын
I've looked at val before when it was announced and I was kinda disappointed Unless I majorly misunderstood something they essentially just don't have references in favor or owned value semantics only. So when you pass a "reference" to a function you are actually declaring an in/out parameter where you pass the object in and then the function passes it back to the caller on return What this also means is that you can't reference something outside of a function call. Storing a "reference" in an struct like in Rust is impossible, or everything needs to be implemented as atomically reference counted, copy on write, immutable data structures (Not sure anymore if they do that but I vaguely remember it) To me this is honestly pretty boring and a lot less powerful than C++ or Rust, the latter with the obvious benefit of being able to prevent common logical race conditions like iterator invalidation too, which Val can't
@danidotexe_
@danidotexe_ 8 ай бұрын
i asked AI about mutable value semantics and it basically recommended clean code. i immediately felt like i was being watched by some sort of shadowy code cabal
@marksmod
@marksmod 8 ай бұрын
Writing your own language remains pretty badass.
@rign_
@rign_ 9 ай бұрын
Hey, What do you think about LK99?
@angrybatarian
@angrybatarian 9 ай бұрын
Maybe we need a language that designs other languages where you check boxes to include things like "mutable value semantics" in your language
@Nessaes
@Nessaes 9 ай бұрын
Funny that Dimitri (Raccordon in this talk), was initially a colleague of mine at UNIGE. His talk about Val at CPPCON was not the best i've seen and pushing for a new language today is questionnable.
@ujjawalsinha8968
@ujjawalsinha8968 9 ай бұрын
Have you tried Mercury?
@danielvaughn4551
@danielvaughn4551 9 ай бұрын
Honest question - what IS a good language for designing a programming language?
@Rand0081
@Rand0081 9 ай бұрын
In theory, it's C. Then, when you are up and running (you have first compiler and tooling), your language itself.
@danielvaughn4551
@danielvaughn4551 9 ай бұрын
@@Rand0081 in my case I’m writing a DSL that is transpiled instead of compiled. I figured there must be some newer language in the C family that would be commonly used, but C would indeed work.
@TremereTT
@TremereTT 4 ай бұрын
I move the basepointer to allocate memory...no need for calls to the os or memory manager to allocate memory for the heap. It's also faster.
@chriswaldeck1119
@chriswaldeck1119 9 ай бұрын
“And it’s been two years.” - Yeah, I’m in this picture and I don’t like it.
@andrew-burgess
@andrew-burgess 9 ай бұрын
Read the title as: Val "The Rust" Kilmer
@sparrownauts
@sparrownauts 9 ай бұрын
I cant stop laughing at typescript
@victorarnault
@victorarnault 9 ай бұрын
The C++ substitution race began!😊
@richbaird9407
@richbaird9407 9 ай бұрын
I think it could be interesting in embedded programming where using the heap is a huge no no. Value semantics is the concept of passing by value instead of by reference. Mutable value semantics is value semantics with in place mutability such as You would see with references. It seems that this language prevents users from allocating heap memory while still allowing in place mutations. This is actually pretty neat something rust, to my knowledge, doesn’t provide. Basically suppose you have a struct A and you call mutate_struct_b(A). In C++ you’d have to pass a reference to A, in rust you’d have to pass a mutable reference, but if I understand correctly, this language would allow you to mutate A without any references.
@kpopalitfonzelitaclide2147
@kpopalitfonzelitaclide2147 7 ай бұрын
I think mutable value sementivs means that variables cant hold a reference
@ac130kz
@ac130kz 9 ай бұрын
no metaprogramming (only a small subset of sad generics is planned), no proper concurrency sync primitives (everything is put under an async rug), hidden async flow, Java/Python style exceptions - dead on arrival. Totally not a Rust, not even an inch a C++ competitor, and if one wants to use a simple language, they'll use Lua
@TheBadFred
@TheBadFred 8 ай бұрын
I wonder when the Unreal Engine is available for one of the new languages.
@slowjocrow6451
@slowjocrow6451 9 ай бұрын
What happened at 14.21 for like... a millisecond lol
@sub-harmonik
@sub-harmonik 9 ай бұрын
'I would choose ts instead of js' and I would choose dirt over dog shit
@EbonySeraphim
@EbonySeraphim 9 ай бұрын
I’m glad you’re open to “this sounds like bullshit buzzwords to me.” Every now and then I noticed when something new is released and a bunch of other engineers jump the train (or want to appear to be) people start acting like they knew the importance of some random ass buzzword that was just made up. How can you know when the word itself is pretty new! The obvious cases are when people use an existing concept or word, but don’t even use it correctly. Usually this happens with “functional programming” which people conflate to having/preferring immutable variables.
@js-ny2ru
@js-ny2ru 9 ай бұрын
Two years... JS was written in 10 days! Boom! Roasted.
@cmelgarejo
@cmelgarejo 9 ай бұрын
The name.. is TheInOutagean
@tacticaltaco7481
@tacticaltaco7481 9 ай бұрын
I yielded what you did there.
@boenrobot
@boenrobot 9 ай бұрын
This sounds like a long winded description of COW - Copy On Write
@yuverris
@yuverris 9 ай бұрын
damn we went from having 10 js frameworks per day to 10 new programming languages per day
@schaerweb
@schaerweb 9 ай бұрын
Now The Prime and Bill Burr are the same person in my mind
@fulconandroadcone9488
@fulconandroadcone9488 9 ай бұрын
At this point I would really appreciate someone porting borrow checker to C.
@tacticaltaco7481
@tacticaltaco7481 9 ай бұрын
I wish he kept reading. It makes a lot more sense further down in the document. I don't think Val will replace Rust, but it will likely "replace" Rust in a lot of circumstances.
@yash1152
@yash1152 8 ай бұрын
5:25 ohkay got it. thats what lattner said. "value semantics" is broken in java as some types (primitives) by default are passed as values, whereas object types are passed as references.
@slebetman
@slebetman 9 ай бұрын
You’re getting it a bit wrong. She’s not saying immutable. She’s just saying mutations are local and does not modify the object outside the function. Basically pass by deep copy. Tcl has this because tcl has only one type of value: strings. A list in tcl is just a space separated string of words and a dict is just a list of word pairs. She’s doing it with real structured types
@ThePrimeTimeagen
@ThePrimeTimeagen 9 ай бұрын
Okay, the definition was pretty hard to find, as you can see I did look
@kallekula84
@kallekula84 9 ай бұрын
I checked the language tour of Val and I must say I really liked it!
@tacticaltaco7481
@tacticaltaco7481 9 ай бұрын
Same. I've never read language docs before and thought "this is exactly what I want" but that happened multiple times when I read the tour.
@kallekula84
@kallekula84 9 ай бұрын
@@tacticaltaco7481 yeah the only thing holding me back at the moment is that they haven't finished the language but I still feel like giving it a go
@tacticaltaco7481
@tacticaltaco7481 9 ай бұрын
@@kallekula84 It seems like a lot of people dislike it in the comments 🤣 I guess it will become a niche language.
@pokefreak2112
@pokefreak2112 9 ай бұрын
8:42 so this is the "interior mutability" rust people talk about right? :p
@tauraamui
@tauraamui 9 ай бұрын
She says at the end that Rust went in the complete wrong direction to try and solve memory safety problems from out of control out of scope referencing
@NuncNuncNuncNunc
@NuncNuncNuncNunc 9 ай бұрын
Let's face it, the future is Lisp.
@familyshare3724
@familyshare3724 3 ай бұрын
I think it's "pass by value" vs "pass by reference". Or "copy to stack" vs "pointer to stack"
@NathanHedglin
@NathanHedglin 9 ай бұрын
Not to be confused with Vale 😂
@Bolpat
@Bolpat 9 ай бұрын
6:08 In C++, a std::vector has reference inside it etc., but it behaves as if it were a simple value. Two std::vector variables never share the same underlying array or something. I guess that’s what “mutable value semantics” means. It’s just confusing because of the “mutable”. Everyone with a little experience in Java or C# or whatnot knows the difference between these two. It’s actually simple: No aliasing. C# has _ref_ and you can have _ref_ things only on the stack. This is the restriction, I guess.
@nexovec
@nexovec 9 ай бұрын
I know basically nothing about compilers, but all things considered I find it hard to believe that immutables would provide any substantial perf benefit. Couldn't the compiler just scan the function to see if it mutates if it wanted to(I know that would be kinda hard if lambdas and other things are involved)? Wouldn't even that be pointless? I think I'm gonna ask Ginger Bill about this.
@reisaki18
@reisaki18 9 ай бұрын
then it would compile for ages
@k98killer
@k98killer 9 ай бұрын
Good thing that new languages are needed, because I'm cooking up a Lisp killer. (It is both true and a joke.)
@pastenml
@pastenml 9 ай бұрын
Opting for fewer of more parentheses?
@k98killer
@k98killer 9 ай бұрын
@@pastenml other brackets exist besides parentheses, and other data structures exist besides singly-linked lists. The syntax I'm going for will retain the prefix notation and whitespace separation of arguments, but punctuation marks will have uses, e.g. commas to denote a tuple and semicolons to denote parts of a Lua-style table (slice or map). Edit: the name will be pls, so you'd type "pls run my_script.pls" to run a script. I'm thinking of compiling to bytecode like the kool kids do and then running the bytecode in a VM/runtime kinda like Wasm, but I'm still in the phase where I write pseudocode and think about it for a while.
@Valthonia
@Valthonia 9 ай бұрын
Rust but with Java/C#/Swift semantics?
@Nan0MK_Old
@Nan0MK_Old 9 ай бұрын
At least it's not a javascript framework
@airman122469
@airman122469 9 ай бұрын
I looked at Val. It is in fact the most memory-safe language in existence that I’ve seen. Is it a Rust killer? Eeeeeehhhhhh. No. I say that for two reasons: 1. Where is the package repo for Val? And 2. There’s a whole lot of momentum behind Rust.
Vlang: The language of 2023?? | Prime React
35:53
ThePrimeTime
Рет қаралды 127 М.
0 Days Since Rust Drama
26:03
ThePrimeTime
Рет қаралды 75 М.
INO IS A KIND ALIEN😂
00:45
INO
Рет қаралды 23 МЛН
Buy Feastables, Win Unlimited Money
00:51
MrBeast 2
Рет қаралды 88 МЛН
КИРПИЧ ОБ ГОЛОВУ #shorts
00:24
Паша Осадчий
Рет қаралды 6 МЛН
I Am Impressed By Chat GPT4o
27:51
ThePrimeTime
Рет қаралды 125 М.
OCaml in 90 Seconds
2:07
Carrio Code
Рет қаралды 5 М.
Have Strong Opinions
29:45
ThePrimeTime
Рет қаралды 20 М.
Why do developers hate Rust?
8:20
Let's Get Rusty
Рет қаралды 88 М.
How Zig Helped Us | Prime Reacts
18:41
ThePrimeTime
Рет қаралды 60 М.
The Vlang Drama
43:35
ThePrimeTime
Рет қаралды 93 М.
Odinlang Creator Ginger Bill Talks Odin!
51:05
ThePrimeTime
Рет қаралды 71 М.
The Demise of 10x Dev | Prime Reacts
32:02
ThePrimeTime
Рет қаралды 94 М.
Apple Event - May 7
38:22
Apple
Рет қаралды 6 МЛН
Any Sound & Call Recording Option Amazing Keypad Mobile 📱
0:48
Tech Official
Рет қаралды 326 М.