4,235 karma · joined Sep 10, 2015 (11y ago) · 1,525 submissions
comment 6y ago · link · parent
To get undefined behavior, you need to do something like use the unreachable instruction, or call a noreturn function that does in fact return. You may also have "poison values", which trigger undefined behavior on certain uses.
comment 6y ago · link · parent
For instance, one could go to programming meetups, or conscious dance events, or gay sex clubs, etc.
comment 6y ago · link · parent
E.g. if you go to a random public place, you are very likely to go to a uninteresting bar or restaurant or shop and very unlikely to find yourself in a very unique place.
And I'm not sure how you could automatically randomize in a a way that doesn't have this issue.
comment 6y ago · link · parent
How is an OS supposed to support that? Seamlessly transition processes to run in qemu-x86 on the ARM core? Compile some processes as ARM binaries and pin them to the core? Require some sort of data-layout-preserving dual-architecture compilation for all binaries?
Seems much more reasonable to add a low-power in-order x86-64 core instead.
comment 6y ago · link · parent
Its predecessors were in order Emacs + single-language IDEs + proprietary IDEs, then Eclipse and finally IntelliJ IDEA CE.
Emacs lost because it failed to update to reasonable modern conventions and because it used a niche programming language.
Eclipse lost because they released a bunch of different bundles instead of a single install (apparently because the contributing companies saw Eclipse as a common base for their proprietary IDEs), it was slow for the time, and had a bunch of unnecessary UI complexity (e.g. it had an unnecessary perspective system that would change the IDE layout depending on language, meaning that you couldn't just customize the IDE and have it apply for all languages, but had to customize each perspective).
IntelliJ IDEA lost because only the core was open source and major parts were proprietary, resulting in reduced 3rd party confidence.
VS Code is winning because they have a major company backing it that mostly doesn't seek to make proprietary IDEs with it except for minor proprietary aspects, uses the most popular language for extensions, avoids unnecessary UI complexity and is also fast and technically good.
comment 6y ago · link · parent
That would make the whole system fully robust and safe, and also support running XMS/EMS managers, DOS extenders, Windows and other bootloaders from the DOS VM.
I'm not sure however whether you would need to modify qemu to make it work and how hard that would be (also I guess that would have less hacky fun factor).
comment 6y ago · link · parent
Lexicographic order is the most common choice for vector; the other reasonable choice is length-then-lexicographic.
comment 6y ago · link · parent
Obviously "anyone should be able to pick up the torch" has the issue that the "anyone" may well be a malicious person who is seeking to defraud the users for monetary gain.
comment 6y ago · link · parent
If the exception is not a RuntimeException and not declared in the throws clause, then the compiler will error out, but in other cases the code will compile.
In Rust, you need to use the "?" operator when you call an exception-throwing function to propagate the exception, and if you don't you will get a Result, and a warning if you don't use it (i.e. not using "?" in Rust is like using Try in Scala).
If Rust code has no "?" or "return", then no exceptions will be thrown and the code will fully execute, except for aborts and panics which are guaranteed to make all visible memory inaccessible, so you will never see a partial modification of an object due to an unexpected exception being thrown.
comment 6y ago · link · parent
As for implementation using unwinding vs a sum type, they are semantically equivalent, but using a sum type like Rust does allows you to use exceptions even when the error case is common without the steep performance degradation that happens with unwinding, at the expense of a very slight slowdown in the no-errors case.
Rust also supports unwinding/aborting exceptions as "panics". These are implicit because all accessible mutable memory is destroyed by a panic, since you must not keep references across catch_panics, so there is no need to rollback (except for unsafe code, in which case you need to assume that all function calls can panic).
comment 6y ago · link · parent
Also Instagram isn't really essential to communicate and learn about events in the way the main Facebook service is, so stopping to use it is highly feasible.
comment 6y ago · link · parent
WebRTC-based software? (e.g. Jitsi Meet, https://meet.jit.si)
comment 6y ago · link · parent
Rust doesn't really have fundamental drawbacks other than the fact that there are more ways to store and refer to data (e.g. owned, borrowed, boxed, reference-counted, etc.) and thus you need additional code where you want to support more than one of them.
Of course there are ecosystem differences and learning curves.
comment 6y ago · link · parent
They chose an unfamiliar syntax for no reason (and one that makes it hard to learn abstractions, e.g. the practice to not distinguish between a -> (b -> c) and (a x b) -> c), and non-strictness/space-leaks makes it unusable for anything serious; plus, it doesn't support dependent types, so it's not even good as a "theoretically perfect" language.
The only thing that can kill Rust is a better Rust, which means either a Rust with dependent types, or a Rust that is somehow much easier to learn while not sacrificing power and zero-cost abstraction (I believe the latter is likely impossible, but maybe I'm wrong).
There is also the possibility of limited success for Rust, i.e. the fact that it will kill C/C++ (which is inevitable), but fail to kill JavaScript and Java/Go/C#.
comment 6y ago · link · parent
Also, if there are more stores it's less likely that entire categories of games will be unavailable to you (or available but worse due to reduced budgets) due to all game stores having rules banning them, and in general game stores are less likely to be able to enact policies that serve them at your expense.
comment 6y ago · link · parent
You can just install all game stores on Windows and there is no downside to doing so, and no real difference between installing the Epic store and purchasing a game there and buying the game on the game publisher's website.
Also currently Steam has a dominant position and 30% cut, and if the Epic store succeeds it will result in a more competitive situation with at least two game stores probably taking a 5-15% cut, which is a drastic improvement for everyone except for Valve, which makes Steam.
Same thing on mobile if Epic succeeds in the antitrust lawsuit with Google/Apple stores instead of Steam.