130 karma · joined Sep 1, 2014 (12y ago) · 28 submissions
comment 1y ago · link · parent
comment 8y ago · link · parent
I should have been clearer, but I'm mostly interested in structure (traversal) algorithms, most of which could be coded in a language with bounded loops.
An easier question is the one of determining the complexity of an algorithm. I think there's a ton of work in this area, for example in techniques that use typing systems (types may for example specify how many times a parameter is used, thus allowing the program to infer the complexity).
(easier because the equivalence relation of "implementing the same algorithm" is strictly finer than "having the same complexity")
comment 8y ago · link · parent
For example, can a program decide, given a sorting function implemented in language X, and an algorithm Y, whether or not the sorting function is an implementation of algorithm Y? Part of the question is how to represent algorithms (is "formal" pseudo-code the best way?)
Also, can you decide whether or not two functions written in different programming languages are implementations of the same algorithm?
comment 8y ago · link · parent
comment 8y ago · link · parent
it has a very simple 8-bit (risc) architecture, but obviously tailored for games (for example, it has a dedicated sprite memory sector). i recommend people to try it out because it is has fun quirks compared with "regular" architectures, like arm and x86, for example in the way it handles cartridges, or in that some cartridges actually had non-trivial logic inside them and weren't just a rom.
it always amazes me how active gameboy research and development is still today, for example there's a very recent gameboy emulator / research project done in rust https://github.com/Gekkio/mooneye-gb
there are even test roms with which you can test your emulator to see if it implements all opcodes, interrupts and whatnot correctly (where correctly not only means "with respect to the effects" but also with respect to how many cycles everything should take). example of these test roms: http://gbdev.gg8.se/files/roms/blargg-gb-tests/
also for example this disasm of pokemon red: https://github.com/pret/pokered
if you want to write an emulator or a game and you have basic computer organization knowledge, i'd start with the famous pandocs.
comment 9y ago · link · parent
i think semantic macros really help with that, but they are not a silver bullet. i'd really like to see editor plugins that convert LaTeX commands to actual symbols (for example, as soon as you write the space after the q in "\neq ", it gets converted to a "=/=", and when you type backspace to erase the "=/=" you get "\ne"). that has been already implemented for languages like agda, and in a simple form is present in text editors that support fonts with ligatures.
i know that what i'm proposing more on the "wysiwyg" side (which some LaTeX fundamentalists might dislike), but i think it would be a very nice thing to have when editing complicated formulas or diagrams.
comment 9y ago · link · parent
comment 9y ago · link · parent
Wrong. I am native in spanish, not even near to "fluent" in "Mexican culture" and I can understand it. I think any Spanish speaker older than 5 can understand it.
Latin America has a myriad of different accents and dialects, far more than in the United States (think more of a UK kind of thing). Some say "ahorita", some don't; but everyone can understand it.
All in all, the article is pretty inaccurate.
comment 9y ago · link · parent
It mostly affected lexicographic order. 'ch' was between 'c' and 'd'.
So for example, when 'ch' was a separate letter in the alphabet, 'chico' (little, boy) would come after 'cristal' (crystal) in the dictionary. Now it's the other way round.
Something similar happened with 'll'.
comment 9y ago · link · parent
And despite all that, as you say, a new architecture is badly needed.
comment 10y ago · link · parent
That point is obtained by computing the midpoint of two random points from the border of the country.
I know it is not the best (if the country is not convex, then the midpoint isn't necessarily inside it), but it works. The code is at the end of the post, if you want to take a look at it.
Thanks for pointing that out though, I'm going to add this to the post.
Edit: you were right, it wasn't even the Mercator projection, it was the equirectangular projection. Thank you!
28.
What is the roundest country?(gciruelos.com ↗)
120 points · by gciruelos · 10y ago · 44 comments