General statistics
List of Youtube channels
Youtube commenter search
Distinguished comments
About
Michael Lenczewski
Low Level
comments
Comments by "Michael Lenczewski" (@kayakMike1000) on "Low Level" channel.
Previous
1
Next
...
All
Running in kernel is worse than running as root.
161
Aren't these are intended for data center where customers lease VMs or some other slice ? AMD has encrypted RAM....
129
@cassandrasibley228 well, some of those xeon server processors end up in high-end workstations. I suspect higher end workstations might have take a mid road between core count and individual core performance.
61
@LowLevelTV you are scholar and a gentleman, sir. Though we disagree, I am impressed at you reaction to a mistake.
46
Torvalds doesn't complain about C and it gets used a lot.
34
@AnarexicSumo no. you cannot, apparently. the extreme limit of all technology is an attempt to fill a need for the customers that use it. The customers that use chips with 100s of cores are data centers and compute utilities. Learn about 'em if you want to, but also learn why they were developed, it's part of the story. Then again... Maybe saying this is like saying rocketship a are designed for astronauts, which isn't quite right... It's more like astronauts are trained to fly rocketships for the purpose of space exploration and experimentation. We all benefit from that but it's immediately apparent that you're probably not getting a rocketship anytime soon. If you do get a rocketship sooner rather than later, well then I'll be your copilot.
30
I recommend that people start with C BECAUSE you need to be aware of how memory works. Avoiding it because beginner developers might write unsafe code just delays the inevitablity of using a linter to identify where there's a security issue.
29
Oooh. I know this one. Its the function epilogue. Functions get compiled into some bits and the function calling conventions have a prologue that stuffs the current program counter pushed to the stack. Return just pops that value back when the function returns. This is why recursive function calls can overrun the stack
17
I think the C language will riegn supreme. Rust will be a side note in history like Eiffel and Algol.
11
Yeah, took me a few weeks to figure this out. You can make a career outta the stuff you're trying to learn, keep it up! These cortex-m cores have dozens of hardware interrupts.
6
@dahahaka well, depends. Running inside the kernel could cause a kernel panic and crash the whole system, running as root just causes a segfault
5
Good explanation on BJT transistors, but we use CMOS transistors. CMOS is fundamentally different mechanism that use similar materials but BJTs are current controlled devices while CMOS are voltage controlled devices. CMOS is a refactor optimized for on/off state. BJTs are good for analog operation amplifiers, radios, etc...
5
C is an ancient language many attempt, but few master. Remember well that your data structures are key to successfully implementing the algorithms.
4
Lemme guess, you ran a linter over the code to find all these seven bugs. Why does a whole new language need to enforce something that static code analysis can solve.
4
C plus a decent linter and fixing such warnings results in memory safe. You don't really NEED a whole new language to do this. Just use better static analysis.
4
yes it's hard, but running io stuff on a thread is great no matter c or assembly. It feels so good when you get it to work!
4
Those poor hardware guys... Are people I know. Be nice, please. They mean well.
4
Void pointer... its a pointer to... something.
3
Well, should I suggest getting enough random number for 256 bits, then run SHA-256 on it? That might obscure it a little more...
3
You can define such symbols in your linker script, memory management in constrained systems usually requires lots of predefined locations in a real memory map. I worked with a team to copy several critical functions to SRAM section of a constrained system, most of the program flash was on a NOR chip on a QSPI bus. We defined a specific bank of SRAM to be an instruction cache and used half of it to store functions for interrupts, and the other half was a LRU cache for several more functions. I guess it was kind of a dynamic linker with a shared object with no one to really share it with, though I heard later on that they implemented a tasking system that also ran out of the same space as the IRQ handlers. Many of those functions had to be fixed for reentrant requirements, lots of bugs, but the linter we had made this easy.
3
Awe ... Of course you think its over hyped. You're a rust apologist.
3
@bakedbeings I didn't even understand his comment. Still confused... I usually disagree with Capt Rusty on this channel so I thought I would throw him a bone.
3
Ooooo this is so cool. Stack smashing was a thing that might be related.
3
Drink the Kool-Aid!
3
The functional wizard has spoken. (Pay no attention to the man behind the curtain)
3
@insertoyouroemail I feel a strange desire to obey you...
2
We kinda take what we know for granted. Or granite, I really don't remember how that idiom goes.
2
Learn without an IDE. you gotta know how your compiler and linker works.
2
Well, there's always random cosmic particles.
2
And C is for men.
2
I've been there once or twice!
2
Magic numbers BAD. use a macro, damn it!
2
I think if you used the SHA-256 of the random number, it would be a lot less trivial to predict. I dunno, good random numbers have certain characteristics. An RNG could generate "1234" ( which is the same code for my luggage) but it's unlikely...
2
Why do you dehumanize people for being financially successful? Billionaires are people too? There was a group of German National Socialists that would say similiar things about the Jewish people back in the 1930s. Its not cool to discriminate against anyone. There WAS a group of people called the Kulaks which were associated with wealth, they were successful farmers who grew the food in Russia. as they were successful, they had stuff that other people envied and ultimately, they were reviled the same way you complain about billionaires. Some kulak gets a new tractor, it was just that dirty kulak trying to increase his profits. During a revolutionary time in Russia, the Kulaks were all executed and the farms were transfered to the proletariates from the revolutionaries. well, there was a famine so bad, somehting like 40 million people died. So... examine your conscious, son. You're on a slippery slope.
2
You can totally do OOP in plain C. Its just ugly.
2
Good idea.
2
@Stopinvadingmyhardware I second that.
2
We refined those rocks and jammed dope into them, then hit it with lightning....
1
I think the "finFET" stuff that intell figured out was pretty important, I think they all do it that way now.
1
I am going to see your security researcher and raise you some practical skills issue researcher.
1
C++ needs a system for exceptions and the "new" keyword. malloc doesn't count because its not a keyword, its a function call to something in stdlib.
1
Yes but can Rust self host itself? Can the Rust compiler and env be written in Rust?
1
Elegant solutions or syntax sugar?
1
_sbrk...
1
Learn c. You can read more code.
1
People should use a linter.
1
@dynfoxx you have never used any static analysis tools. There's really no magical code that's in a compiler that can't be implemented in a a static analysis tool. It's braindead easy to implement lifetimes on memory locations by scanning through the abstract symbol tree
1
@dynfoxx also C++ does have object lifetimes and a garbage collector, but this is generally craptacular and pales in comparison to just managing it yourself.
1
My recommendation: avoid inheritence. Embrace composition. Abstract classes for interface inheritence isnt really inheritance. Its implementing an interface, though i think java has explicit syntax for this.
1
I wouldn't trust the compiler to do that, and even if it were guaranteed by your current compiler, that code may not be portable to other compilers.
1
Previous
1
Next
...
All