Better HN
topnewbestaskshowjobs
Log inSign up

gciruelos

130 karma · joined Sep 1, 2014 (12y ago) · 28 submissions

from buenos aires
Submissions

comment 1y ago · link · parent

a shameless plug of another blog post containing more xor trivia, for those interested: https://gciruelos.com/xor.html

comment 8y ago · link · parent

Yes, in general it is obviously undecidable.

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

Related to your last question, I was always puzzled by the following: when is a program an implementation of an (abstract) algorithm?

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

not really related, but i wrote this a while back: https://gciruelos.com/what-is-the-roundest-country.html

comment 8y ago · link · parent

i have been writing a gameboy emulator for the last year (with short bursts of work where i implement some module), and it's been very challanging and fun, i recommend everyone to try it.

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've been using sway[0] as my wm for some time now (it's a sort of port of i3 to wayland) and it's incredible that you can actually tell that it is much faster than wms running on X.

[0] http://swaywm.org/

comment 9y ago · link · parent

This is awesome, great write-up, thank you very much.

You briefly mention that crypto-currencies are used for money laundering. Do you think that's what's driving btc price to insane levels? Or is it just good old euphoria?

comment 9y ago · link · parent

john baez is a brilliant guy.

and also he's the cousin of joan baez, which makes me appreciate both of them even more.

comment 9y ago · link · parent

yes, but if you add up how much everyone paid for the lost eth it won't be $300MM but it will still be an insane amount of money.

comment 9y ago · link · parent

i wrote something very similar, but in c++

https://github.com/gciruelos/seurat

comment 9y ago · link · parent

i wish the main tool wasn't inside an <iframe>. completely unnecessary

comment 9y ago · link · parent

some have a lot of false positives (even some in -Wextra have had false positives due to bugs), so if you compile with -Werror (as you should do) it can be troublesome.

comment 9y ago · link · parent

every browser needs to have some counter like that if it wants to suggest pages when you open a new tab or something like that.

i think it's cool that you can see the actual ranking.

comment 9y ago · link · parent

maybe it is a consequence of increased technological knowledge in the general populace? i don't feel that it has increased, but maybe Apple's marketing team arrived to that conclusion.

comment 9y ago · link · parent

i agree completely on the large document problem that LaTeX has, especially when you have big formulas, statements or diagrams that are hard to parse after you have written them and, say, you want to find where you committed a syntax error or made a typo.

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

there's a very good (and old) article about linux load averages here: http://www.linuxjournal.com/article/9001?page=0,0

comment 9y ago · link · parent

the latter

comment 9y ago · link · parent

>Understanding this word takes not a fluency in the language but rather a fluency in Mexican culture.

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

Nothing was stolen. All I see is a programmer abiding by the contracts.

comment 9y ago · link · parent

HN's "GET" would be when tesla's stock price hits 0.00000$

comment 9y ago · link · parent

I've been following you on github for a long time (since the minecraft clone you made in C was featured in /r/programming). You are insane man, I love your work.

Keep it up!

comment 9y ago · link · parent

>and I wouldn't know how that affects everyday life.

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

In my opinion boutique competition, economic hardship, drop in quality, and an active used market are what's killing Gibson and other big companies. Not EDM.

comment 9y ago · link · parent

This a thousand times. Also, its usually Intel's policy to have a (very) strong backwards compatiblity. See the A20 line for a ridiculous example. But AMD has always been less strict on this issues, and I'm glad they aren't. This is good news.

And despite all that, as you say, a new architecture is badly needed.

comment 10y ago · link · parent

What I do is the following: For each country, I transform its points from the equirectangular projection I'm given to an azimutal projection centered in some point (that depends on the country).

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!

comment 10y ago · link · parent

Yes, I know, that is a pity. I didn't simplify anything though, I use all the vertices that the dataset gives me, the dataset is the problem here.

comment 10y ago · link · parent

There's nothing wrong with that. A square is very "round" in the sense that it is very close to a circle in terms of shape, compared to all other possible polygons out there.

28.

What is the roundest country?(gciruelos.com ↗)

120 points · by gciruelos · 10y ago · 44 comments