@user202729 What do you mean with writing it just as I would when actually posting it? I did continuously update my sandbox answer based on the feedback I got
Maybe in Haskell makes sense, since sometimes you do need a kind of Null value. What I don't get is Optional types in e.g. Java, where all it does is convert your NullPointerExceptions to NoSuchElementExceptions.
@Pavel True. Optional is good when you don't absolutely need speed tho. Rust does it right, and has actually fast exception handling :P
It has a similar usecase to http://en.cppreference.com/w/cpp/utility/variant Being there for when you want cleaner code in exchange for a bit less speed
@moonheart08 Wait, are you sure it throws an exception? I'm pretty sure the C++ stdlib avoids exceptions everywhere except the parts that are explicitely for exception handling.
@moonheart08 Even if the apparant overhead of the exception is small, the possibility of an exception being thrown means the compiler can't do optimizations it would otherwise do, so the code still ends up running slower than without exceptions.
Hmm. I've had a neat little question on my mind for a while: Is it possible, using AE2, Funky Locomotion, and Project Red (Mods for minecraft) to make a self constructing machine. AE2 provides the self construction mechanisms..
I'm not sure how input is defined. I was thinking of someone writing the equations as checks in code and giving them each a value til the checks return true.
@ASCII-only like, Proton 1. it tokenizes first so strings are read by regex and then the whole token is parsed; with Proton 2, because it's using modgrammar, it's reading it char-by-char
@user202729 the problem with no quine rules isn't that trivial answers could get upvoted, it's that there wouldn't be a place and a reason to post better answers, which the rules force.
hi, is there a list of which esolangs have won the most questions on PPCG (determined by the SE api)? i remember seeing such a list a few years back but can't find it searching on meta
I feel like we may have enough data on this site to meaningfully break programming languages into classes.
What I mean by classes is akin to Go's ranking system:
If a player can win 90% of even games against a 2 kyu player, the AGA believes he or she is 1.33 ranks higher, the EGF believes (s...
Gessing the Grammatical Gender in Spanish
Lets create a function which determines the gender of a given object in Spanish following the general rules and ignoring the exceptionally cases.
Since this is not a Spanish speaking group, let me clarify some of the concepts.
Grammatical gender in ...
@ASCII-only TPT uses only 30 bits to represent the color spectrum, which FILT, BRAY, and PHOT operate on. the 30th bit has to be a dead/always on bit so that 0 can be represented
Most modern TPT computers either use 16 or 29 bits
@moonheart08 isn't 30 bits a lot for a color spectrum? also wait wat how do you even change the color of a pixel (also isn't 29 bits/pixel pretty dense anyway)
@ASCII-only a pixel/particle in TPT is like 32 bytes each lol. Temperature, life counter, data value 1, data value 2, secondary type, and two local values that arn't actually saved when the game is (and are as such rarely used)