Тёмный

Intro to Typed Arrays in JavaScript 

Steve Griffith - Prof3ssorSt3v3
Подписаться 103 тыс.
Просмотров 24 тыс.
50% 1

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

 

31 окт 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 45   
@СергейМ-о8к
@СергейМ-о8к 4 года назад
thanks. first 2 minutes helped me understand the thing I can't realize 2 days
@ilovelctr
@ilovelctr 3 месяца назад
Today a colleague of mine randomly asked me if I watch JSConf, to which I responded 'no', and then he told me he found ArrayBuffer powerful. That opened up a gate to a new world for me and as a result led me to your videos about these concepts. This is simply amazing, as are other works done by you. I still remember learning prototypal inheritance from you back in the day.
@user-sw1wq8lh2w
@user-sw1wq8lh2w 4 года назад
This was suuuuuper useful for understanding ArrayBuffers, this has been very confusing and it now makes sense to do this rather than to create new Unsigned Integer Arrays from this
@flaviomoreira01
@flaviomoreira01 26 дней назад
Small note: If the number is more than 255 for Uint8Array it will module it. For example, if you pass 257 to Uint8Array it will become 1. Because the values are modulated 257%256 = 1.
@jakub3412
@jakub3412 6 лет назад
Quality video and crystal clear explanation. Thank you very much.
@Ma1ne2
@Ma1ne2 3 года назад
Thank you so much, this was so helpful! Today I was looking into the Crypto Web API and got confused since I`ve never really worked with typed arrays. This was incredibly helpful!
@rotrose7531
@rotrose7531 4 года назад
Thank you as always, will find a thing where these great ideas can be applied.
@SavingShredz
@SavingShredz 5 лет назад
Just what I was looking for, thank you!
@SubtleD.
@SubtleD. 9 месяцев назад
Much thanks for this video. The explanation was easy to understand
@ozzyfromspace
@ozzyfromspace 3 года назад
PERFECT Explanation, Steve! 🙌🏽🎊
@nobir98
@nobir98 3 года назад
well explanation and maintained seriality for understanding properly thank you so much
@chesterxp508
@chesterxp508 3 года назад
Another very cool tutorial!
@COBHC5458
@COBHC5458 5 лет назад
great explanation much better than typical books
@damo190
@damo190 3 года назад
Thank you so much for this video.
@janduna9187
@janduna9187 3 года назад
Difficult topics conveyed in simple flowing terms that make sense. #CodingJesus
@ninjaduck3534
@ninjaduck3534 4 года назад
Great explaining, thank you!
@vishalgupta5211
@vishalgupta5211 3 года назад
very clear explanation , great work thanks !!
@vipzip8863
@vipzip8863 5 лет назад
Cool video, was playing around a bit and it all made sense :) Was curious what would happen if I tried to assign 1 byte to an array buffer but set the value to int16 which didn't work because it's 2 bytes I guess? Good video!
@Jonathan-od5xc
@Jonathan-od5xc 5 лет назад
DATAVIEW! I needed that, thank you!
@lavdixit2267
@lavdixit2267 3 года назад
u explained very nice ,thanks
@calebprenger3928
@calebprenger3928 3 года назад
an actual video of how to actually use them would be fantastic.
@SteveGriffith-Prof3ssorSt3v3
@SteveGriffith-Prof3ssorSt3v3 3 года назад
Please put any tutorial requests here - ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-LCezax2uN3c.html - in the comments and vote for ones that you want.
@volodymyrrohozhynskyi1366
@volodymyrrohozhynskyi1366 6 лет назад
great explanation! thanks
@bigfanjs
@bigfanjs 4 года назад
amazing explanation thank you
@TheCodeCreative
@TheCodeCreative 5 лет назад
Very helpful, thank you
@ПетърТодоров-о7ф
Thank you!
@SahilKashyap64
@SahilKashyap64 4 года назад
Thanks for the video I understood everything😀
@phreequencymuhammad_mustap210
@phreequencymuhammad_mustap210 5 лет назад
Great tutorial, Please i'd like to know more about ArrayBuffer, I got this video searching for "ArrayBuffer" and I really like the video
@SteveGriffith-Prof3ssorSt3v3
@SteveGriffith-Prof3ssorSt3v3 5 лет назад
Please add that to the comments on my tutorial request video on the channel home page
@Acumen928
@Acumen928 3 года назад
Just Love.
@avgsteve
@avgsteve 3 года назад
this is so good and I'd give it 100 likes if I could. 👍👍👍👍👍👍👍👍 Thanks!
@theman7050
@theman7050 3 месяца назад
nice content, but I really wish the IDE theme was dark
@SteveGriffith-Prof3ssorSt3v3
@SteveGriffith-Prof3ssorSt3v3 3 месяца назад
I switched that 4 years ago.
@codeisawesome369
@codeisawesome369 5 лет назад
So to be super clear, Int8Array[x] = y is equivalent to manipulating the DataView corresponding to the TypedArray that the syntax gave me, as in myDataView.set(x) = y (which manipulates myHiddenTypedArray) - is this right?
@SteveGriffith-Prof3ssorSt3v3
@SteveGriffith-Prof3ssorSt3v3 5 лет назад
Using this sample: let dv = new Int8Array([1, 2, 3]); console.log(dv); // Int8Array [1, 2, 3] dv[0] = 127; console.log(dv); // Int8Array [127, 2, 3] We can see that yes it can work like a regular array. new Int8Array( ) is returning a DataView which contains the entire ArrayBuffer created to hold [1, 2, 3]. Try this: dv[0] = 255; console.log( dv ); And see what the value of dv[0] becomes. See if you can work out why.
@codeisawesome369
@codeisawesome369 5 лет назад
Steve Griffith haha yay for integer overflow 😃 (the sign bit takes away possible values) - in fact we can’t store anything over 127 in these slots because of that. Using Uint8Array we can store until 255.
@SteveGriffith-Prof3ssorSt3v3
@SteveGriffith-Prof3ssorSt3v3 5 лет назад
@@codeisawesome369 That's correct about the UInt8Array. For the values over 127 in the Int8Array, they actually loop around and start at -128. Trying inserting 128, 129, 256, 257.
@Ericsicons
@Ericsicons 5 лет назад
awesome thanks +1 subscriber
@shawnswanson7721
@shawnswanson7721 5 лет назад
A+ video
@Inoom.
@Inoom. 3 года назад
I was scared of ArrayBuffers, now i'm not :)
@rudrakshmishra2761
@rudrakshmishra2761 4 месяца назад
i swear i can almost hear the clicks of the magic mouse (it's driving me mad)
@SteveGriffith-Prof3ssorSt3v3
@SteveGriffith-Prof3ssorSt3v3 4 месяца назад
No magic mouse. Only a MacBook trackpad
@rudrakshmishra2761
@rudrakshmishra2761 4 месяца назад
@@SteveGriffith-Prof3ssorSt3v3 eyy prof, didn't expect a reply on a 5y old video, me but that's interesting, i didn't expect MacBook clicks to be this loud
@SteveGriffith-Prof3ssorSt3v3
@SteveGriffith-Prof3ssorSt3v3 4 месяца назад
@@rudrakshmishra2761 depends on whatever mic I was using
Далее
The Importance of THIS in Javascript
22:59
Просмотров 22 тыс.
ES6 Iterator & Generator Fundamentals
18:18
Просмотров 31 тыс.
JavaScript Array Mastery: Tips, Tricks & Best Practices
1:02:49
Deep Dive into Blobs, Files, and ArrayBuffers
17:42
Просмотров 37 тыс.
The Power of JS Generators by Anjana Vakil
36:10
Просмотров 168 тыс.
TypedArray and UTF-8 | JavaScript Fundamentals
10:01
Intro to JavaScript Symbols
9:46
Просмотров 15 тыс.
Blazingly Fast JavaScript with ThePrimeagen | Preview
18:22