Тёмный

Structs in JS might change everything 

Theo - t3․gg
Подписаться 341 тыс.
Просмотров 7 тыс.
50% 1

I am so hyped about structs. This proposal is way cooler than I expected, and I hope this gets y'all hyped too.
Thank you clerk.com for sponsoring today's video!
SOURCE
github.com/tc3...
Check out my Twitch, Twitter, Discord more at t3.gg
S/O Ph4se0n3 for the awesome edit 🙏

Опубликовано:

 

10 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 54   
@JinKee
@JinKee 22 часа назад
eventually JS becomes Rust because on a long enough timeframe everything evolves into a crab.
@md6886
@md6886 22 часа назад
RustJS
@Midnightfalk
@Midnightfalk 22 часа назад
some things evolve into a crab, most evolve into crap
@AdamFiregate
@AdamFiregate 21 час назад
It becomes a mutated monster like C++ 🙂
@_y7ya
@_y7ya 21 час назад
RustScript, no longer any need for Oracle's JavaScript trademark :D I'd rather recruiters hitting me up for Rust jobs as a RustScript dev than Java jobs as a JavaScript dev.
@joshuachan6317
@joshuachan6317 21 час назад
​@@Midnightfalk 😂😂😂
@albbus-stack
@albbus-stack 21 час назад
never thought I'd live long enough to see the unsafe keyword in js 🎉
@dezly-macauley
@dezly-macauley 21 час назад
As someone who switched from TypeScript to Rust and Go I find this hilarious but also super cool. This is why JavaScript is the GOAT of programming languages. It is like an endlessly evolving Pokemon. 🤣
@AdamFiregate
@AdamFiregate 21 час назад
Mutating Pokemon enough times becomes JS, C++ potion
@chrislanejones
@chrislanejones 20 часов назад
This is going to help WebGPU and React Three Fiber immensely.
@spicynoodle7419
@spicynoodle7419 22 часа назад
Finally something good in JS-land. I hope we don't have to wait 10 years for this proposal to be implemented. Temporal, where you at?
@rallisf1
@rallisf1 21 час назад
As of now I'd say it's at least 2 years away if ever implemented.
@ouiVEVO
@ouiVEVO 21 час назад
Well, temporal is obviously lost to time
@themanimal07
@themanimal07 20 часов назад
I have no idea what any of this is coming into it but damn is it interesting and helpful in understanding what code is capable of.
@rallisf1
@rallisf1 21 час назад
This will give a pretty nice boost to most JS projects and unlock the potential of using JS for more compute heavy workloads for which other languages are preffered atm (e.g. Python).
@dtory
@dtory 21 час назад
I know it a short sponsorship but can you do another video explaining what that service is actually is. Have seen a lot of ads and i still don't know what it is ?
@DP-ym4dg
@DP-ym4dg 20 часов назад
So actual classes are coming. Cool, cool.
@michaelgaziotis2538
@michaelgaziotis2538 20 часов назад
Good initiative overall, will help certain libs to become faster. I don't see the Rust analogies some are talking about though, unless it's just for jokes. Because a) there's nothing analogous to Rust's compile-time memory safety features like the borrow checker. And b) this still feels quite primitive compared to what you can do inside unsafe blocks in most application-level languages, never mind Rust, which is usually near-full access to process memory via pointers... if you're feeling risky.
@MommysGoodPuppy
@MommysGoodPuppy 21 час назад
as a webworker aficionado and someone who does a lot of ffi in deno, this is super exciting
@SXsoft99
@SXsoft99 20 часов назад
as a person that has been using JS for the past 10 years in different projects(mainly frontend no serverside) I'm starting to not know JS any more but the struct thing, making a un-chagable class could have been fixed with a one time use parameter in it that if it's true then you can't change it from outside (basiacally what other languages did with allow dynamic attributes default off). The struct now makes me want to use typescript even less since it was the main thing that people advocate for
@measureman168
@measureman168 20 часов назад
Tearing: As you're writing your name on a piece of paper, your annoying classmate is add af and rips it from your hands
@akritworanithiphong
@akritworanithiphong 22 часа назад
This is actually really cool.
@kocokan
@kocokan 21 час назад
Everything will be written in javascript
@AdamFiregate
@AdamFiregate 21 час назад
You mean RustScript 😂
@akrishnadevotee
@akrishnadevotee 22 часа назад
React to the latest Deno 2.0 ad!
@RandomGeometryDashStuff
@RandomGeometryDashStuff 20 часов назад
16:58 it they didn't implement that (tear free property read write) web pages could cause native access violations or access memory that should not be accessible
@BboyKeny
@BboyKeny 20 часов назад
I want this to be an easy way to share objects with wasm instances
@yunica
@yunica 21 час назад
When are you uploading the thing you did with Dan
@samtoohey93
@samtoohey93 21 час назад
The audio not working comment makes me feel seen, and hurt at the same time 🤣
@richardbray
@richardbray 21 час назад
What is assertThrows()? Is that some library, or new JS syntax?
@onlycasual1
@onlycasual1 20 часов назад
Everything is having a rough time of it lately, it's getting changed all the time apparently lol
@marcialabrahantes3369
@marcialabrahantes3369 21 час назад
Just make Go compile to JS. That should be the web assembly LOL
@harou22
@harou22 21 час назад
Meh, to me javascript is about fast development not having to think too much about performance or memory 99% time, and that is a good thing. This trend of having javascript do everything, absorbing foreign syntax from other languages is kind of sad. Limitations are good.
@lucaslinhares4071
@lucaslinhares4071 21 час назад
You don't need to use these new features, you can just write JS the same way. You don't think much about performance maybe because the library devs do the thinking for you, and with features like these they can further improve performance so that app devs don't have to think about it.
@harou22
@harou22 21 час назад
@@lucaslinhares4071 True, but the more options and features a tool has the more its overall complexity becomes, the more things people need to keep in their mind even if they don't actively use it. I think it is okay to say that sometimes javascript is not the right tool for the job, instead of trying to have it as this universal language that will eventually support syntax of all the other languages just so everyone can write it they way they prefer.
@朝秦-f2h
@朝秦-f2h 21 час назад
@@lucaslinhares4071 These new features will eventually become interview questions.
@pengowray
@pengowray 20 часов назад
​@@lucaslinhares4071 No matter how much it's promised that you won't need to learn the syntax for typical js, every "Learn JavaScript" book will need an extra two chapters for structs and shared memory, and you won't know JavaScript until you get through them because the chance of no one using "struct" outside of a framework's internal library is the same as no one ever using "const" for anything other than defining pi. I see the benefit of adding this, but it's a huge amount of added complexity to a language which optimizes for simplicity.
@MommysGoodPuppy
@MommysGoodPuppy 20 часов назад
its inevitable as long as browsers only support js and wasm
@maximilianlosch7479
@maximilianlosch7479 21 час назад
This will just make a lot of bad code possible, whilst still requiring a ton of runtime checks. It will not believe, that the performance will be drastically better, without hard data. Doing anything this high performance should be a wasm only optimisation imho. These optimisations would be need to be done in the JIT in the Runtime, since there is no build step for JS. We then will see tradeoffs between Running stuff in a single thread vs. incuring startup cost with the optimisation steps. If you want optimal assembly, then ship optimal to the browser, dont just hope the browser will build that for you. Think of it as SSR for high-performance code.
@EngineerNick
@EngineerNick 20 часов назад
struct.... but fields are undefined at the start... oh no. methods wut? inheritance?! hold on... unsafe? They should leave off methods, and add traits instead.
@skuwamy
@skuwamy 20 часов назад
Waiting for them to touch Lifetimes since they want to be Rust hahahahahahhaah
@gedw99
@gedw99 20 часов назад
its golang
@mj-lc9db
@mj-lc9db 22 часа назад
Just change the syntax to Go
@AdamFiregate
@AdamFiregate 21 час назад
Ok, let's Go! 😊
@cherubin7th
@cherubin7th 20 часов назад
That is a no go
@mateusvmv
@mateusvmv 20 часов назад
yoo js will become a real language we'll do FFI without hassle! want a database? sure champ, just memcpy this into that file lmao and if this gets into the browser we'll have zero copy WASM
@DanielVox.
@DanielVox. 22 часа назад
always love your videos sir! I always watch them to myself up to date on the latest tech news. Cheers man!
@chang112x
@chang112x 21 час назад
So i will be forced to learn rust by coding in JS... well interesting :/
@RustIsWinning
@RustIsWinning 20 часов назад
Hahaha yes! 🦀
@LlamaPony
@LlamaPony 20 часов назад
well now js is unsafe++
@B4tree
@B4tree 20 часов назад
Unsafe? Every js code is already unsafe 😂
@franciscosevilanoasensi3413
@franciscosevilanoasensi3413 21 час назад
'That's comming from somebody whose audio doen't work right now' 🤣🤣🤣. Just move from Linux to Windows again becouse all this annoying problems.
Далее
Why Everyone Hates Web Components
1:22:39
Просмотров 51 тыс.
Android just changed forever
18:47
Просмотров 6 тыс.
Все по факту
00:48
Просмотров 18 тыс.
Microservices are Technical Debt
31:59
Просмотров 480 тыс.
NextJS Is Hard To Self Host
39:32
Просмотров 52 тыс.
BREAKING: *.io domains might disappear soon
16:36
Просмотров 66 тыс.
Developer Trends in 2025
20:58
Просмотров 4,3 тыс.
I didn't expect Meta to push React this hard...
22:16
ChatGPT-o1 Created A Programming Language...
19:45
Просмотров 92 тыс.
You Need Kubernetes?
27:59
Просмотров 223 тыс.
Все по факту
00:48
Просмотров 18 тыс.