Firefox has been updated to not have high-resolution timers, so for private use, Spectre shouldn't be much of an issue.
Since AMD's post on lkml, someone must have done that already, so 'seven days ago' is probably a reasonable answer.
Presumably, this is a poke towards systemD.
It has suffered from feature-creep, which directly opposes the unix-philosophy of doing only one thing, but doing it well.
Recently, there was a problem with, I believe the DNS server which is part of systemD.
Adding hardware protections to software ones in order to block the ever increasing onslaught of computer malware seems like a solid idea
No it doesn't. Fix the real problem
I'm quite sure it's an assert that triggers, which is something quite else than an exception.
At least Torvalds is acutely aware of the distinction between the two.
I once practiced for 2 weeks on the pronouncation of a specific Shanghai subway station and failed.
Chinese is for sure a very hard language for someone who's native language is western.
WHERE did you get the idea that C++ is more immune to memory leaks or buffer overflows than C? C++ adds to the basic C memory management services and memory organization, but it still retains the original C ones. And adds an additional way to leak memory - undisposed objects.
Probably from experience: Consistent use of stl memory classes (shared_ptr and unique_ptr) and containers (mostly std::vector) make it very hard to shoot yourself in the foot. Adhere to "Raw pointers don't transfer livetime from function to function" if you use raw pointers.
These things are really easily spotted by code-review.
and then provide native code layer to provide an interface for computational demanding stuff.
Well, they are moving in that direction with QML. For many apps, a native UI makes perfect sense.
Not only if the UI is very demanding, but also when the UI is very simple: staying in one programming language keeps things simple.
One could consider buying a smaller car, and only renting when you need to haul something.
For most pick-up truck owners, that gives a cheaper, more comfortable ride.
Indeed he didn't. The whole thread was about native vs. non-native code, where C is just an example of native code.
C++ is another example, closely related to C, with all the relevant properties. for example, you don't pay (performance) for abstractions/features you don't use. (exceptions, garbage collection, virtual function calls/inheritance)
Re:"So who needs native code now?"
on
Asm.js Gets Faster
·
· Score: 2, Insightful
In C++ it'd come down to a lambda function and std::swap, I don't see how that's less 'elegant'.
Does it really segfault that often, that that's part of the 'experience'.
That's quite bad. Last time I tried enlightenment (486dx, with 24MB ram), at least it was fairly stable.
The way most pocket books are printed is at least as wastefull as an E-book.
Those pocketbooks will only last a few decades at best, given the cheap paper they're made of.
The best bet might be if China decides they need to be fully independant from the 'Capitalist West' and design their own architecture
I'm not so sure if you have ever seen the Chinese way of designing; fiddle with it until it seems to work.
Search for Huawei's security problems and you'll get the drift. Hardware design is really not done better.
Use RAII consistently, and use containers (from stl or otherwise) which have asserts() on bounds-checking.
Bonus points for a tiny unit-test (which can therefore run at the end of every compilation).
You'll be amazed at how stable, maintainable, easy to debug and performant your code will be.
Do the hardcore pointer handling only where the profiler tells you that it matters and there's no way java even gets close in performance
Mmm, makes sense, but I'm just wondering whether the gun-powder was really needed for the revenge-scene.
Wouldn't the pressure cooker by itself have been enough ?
For the current generation/standards at most some power efficiency.
More processing power might allow better coding schemes, better beamforming (=less interference), smaller circuits (since less
has to be done in parallel). So in the end it'll mostly come down to power efficiency.
http://slashdot.org/comments.pl?sid=4025309&cid=44410675#
They are improving, but most likely not at 8000, rather around 4000 cars per week: https://www.bloomberg.com/grap...
Firefox has been updated to not have high-resolution timers, so for private use, Spectre shouldn't be much of an issue. Since AMD's post on lkml, someone must have done that already, so 'seven days ago' is probably a reasonable answer.
for which you pay the price in reduced signal-to-noise in those frequency bands, making it roughly as simple as described.
Presumably, this is a poke towards systemD. It has suffered from feature-creep, which directly opposes the unix-philosophy of doing only one thing, but doing it well. Recently, there was a problem with, I believe the DNS server which is part of systemD.
Doesn't python secretly use semicolons to allow multiple statements in lamdba's ? If so, it'd only prove your point..
Adding hardware protections to software ones in order to block the ever increasing onslaught of computer malware seems like a solid idea
No it doesn't. Fix the real problem
I'm quite sure it's an assert that triggers, which is something quite else than an exception. At least Torvalds is acutely aware of the distinction between the two.
A systematic, empirical study of a subject is a science by definition.
Nope, falsifiable experiments are. That's what allows use to make predictions.
There's NaN (not-a-number) for that. works beatifully
I once practiced for 2 weeks on the pronouncation of a specific Shanghai subway station and failed. Chinese is for sure a very hard language for someone who's native language is western.
WHERE did you get the idea that C++ is more immune to memory leaks or buffer overflows than C? C++ adds to the basic C memory management services and memory organization, but it still retains the original C ones. And adds an additional way to leak memory - undisposed objects.
Probably from experience: Consistent use of stl memory classes (shared_ptr and unique_ptr) and containers (mostly std::vector) make it very hard to shoot yourself in the foot. Adhere to "Raw pointers don't transfer livetime from function to function" if you use raw pointers. These things are really easily spotted by code-review.
and then provide native code layer to provide an interface for computational demanding stuff.
Well, they are moving in that direction with QML. For many apps, a native UI makes perfect sense. Not only if the UI is very demanding, but also when the UI is very simple: staying in one programming language keeps things simple.
One could consider buying a smaller car, and only renting when you need to haul something. For most pick-up truck owners, that gives a cheaper, more comfortable ride.
Indeed he didn't. The whole thread was about native vs. non-native code, where C is just an example of native code.
C++ is another example, closely related to C, with all the relevant properties. for example, you don't pay (performance) for abstractions/features you don't use. (exceptions, garbage collection, virtual function calls/inheritance)
In C++ it'd come down to a lambda function and std::swap, I don't see how that's less 'elegant'.
Does it really segfault that often, that that's part of the 'experience'. That's quite bad. Last time I tried enlightenment (486dx, with 24MB ram), at least it was fairly stable.
Just saying...
The way most pocket books are printed is at least as wastefull as an E-book. Those pocketbooks will only last a few decades at best, given the cheap paper they're made of.
Wouldn't that be cheating?
The best bet might be if China decides they need to be fully independant from the 'Capitalist West' and design their own architecture
I'm not so sure if you have ever seen the Chinese way of designing; fiddle with it until it seems to work. Search for Huawei's security problems and you'll get the drift. Hardware design is really not done better.
Don't assume conspiracy if incompetence can explain it. The latter is far more likely.
Use RAII consistently, and use containers (from stl or otherwise) which have asserts() on bounds-checking. Bonus points for a tiny unit-test (which can therefore run at the end of every compilation). You'll be amazed at how stable, maintainable, easy to debug and performant your code will be.
Do the hardcore pointer handling only where the profiler tells you that it matters and there's no way java even gets close in performance
Mmm, makes sense, but I'm just wondering whether the gun-powder was really needed for the revenge-scene. Wouldn't the pressure cooker by itself have been enough ?
Just wondering thought, why would you make your own soap ?
For the current generation/standards at most some power efficiency. More processing power might allow better coding schemes, better beamforming (=less interference), smaller circuits (since less has to be done in parallel). So in the end it'll mostly come down to power efficiency. http://slashdot.org/comments.pl?sid=4025309&cid=44410675#