HNHacker News
TopNewBestAskShowJobs

enriquto

14,003 karma · joined February 11, 2016

  just another C hacker
submissionscomments
enriquto··on Hiroshi Nagai: Japan's Sun-Drenched Americana
The one with the rectangles representing reflections in the water is incredible. You can track each strip of rectangles to a city feature, and they are subtly different, in a way that makes sense.
enriquto··on LaTeX.css – Make your website look like a LaTeX document
If your .tex is simple enough, it can be converted directly to plain html using a tiny sed script.
enriquto··on Heaviside’s Operator Calculus (2007)
But it's the same thing with math. All of science and engineering can be seen as useful artifacts that you obtain as a bonus from math.
enriquto··on 1/0 = 0 (2018)
I'd agree to some kind of 1//0=0 for ints; but for floats you'll take 1/0=inf from my cold, dead hands.
enriquto··on Charset="WTF-8"
beautiful map of the Catalan Countries when you search for that name here
enriquto··on OpenStreetMap's New Vector Tiles
> Just show the name of every street damnit.

But why? Google Maps is not a navigation aid. Its purpose is not to help you know the name of the street you are in. It's a tool for paying customers to steer you towards their shops. If all you need to do is follow a path towards a certain shop, they don't need to show you the names of the streets.

enriquto··on Ambulance hits cyclist, rushes him to hospital, then sticks him with $1,800 bill
> they operate a higher risk vehicles

Are you serious? How can you say that? Cars are, by themselves, much higher risk than bikes. If bikes are dangerous at all is because of cars. The main--heck, I'd say the only--spreaders of dangerosity are cars. In a car-free city, none of the main causes of premature death would be traffic-related.

enriquto··on Homage to Alexander Grothendieck
You do not need to understand all his ideas, just one or two to begin with.
enriquto··on Norway's Wealth Tax Is Backfiring. Are Americans Paying Attention?
It doesn't sound like it's "backfiring", does it? Removing these ultra-rich people from the country will certainly decrease the wealth gap between the rich and the poor, which is probably one of the main goals of the tax.

The unsourced assumption of TFA is the consideration of these ultra-rich people as "wealth creators" instead of "extractive elites" (or, in plainer language "filthy parasites"). The net balance of the policy would need to take that into account, but this is not done on this highly ideological article. It seems to me that, as long as the ultra-rich that moved out of the country cannot carry on with their wealth extraction, it's a win-win for everybody involved.

enriquto··on What's New in POSIX 2024
> Why?

In order to preserve the sacrosanct simplicity of naive shell scripts. Seems like a very noble goal to me.

The only unexpexted compexity arises when you want to deal with filenames having mixed spaces and nbsps. But I'd say that people who do that had it coming.

enriquto··on What's New in POSIX 2024
As a fellow spaces-in-filenames-hater, the fight is not lost. We are on the brink of winning it; it's just a mount option away!

While we cannot avoid that people hit the spacebar when writing a filename on a gui, this does not mean at all that the resulting filename itself need contain a plain space character. Those spaces can and should be transparently translated to non-breaking space characters at some point. Maybe by the gui itself, or more robustly by the filesystem. This would make everybody happy: gui users and naive shell script writers.

enriquto··on What's New in POSIX 2024
> loop over a string array

Dear anal_reactor, what is a "string array"? I have used unix shells since nearly 30 years and never heard about them. And I consider myself a script-fu master!

There are two array-like constructions in the shell: list of words (separated by spaces) and list of lines (separated by newlines). Both cases are implemented as a single string, and the shell makes it trivial to iterate through its components.

enriquto··on What's New in POSIX 2024
> We’ve established that, yes, pathnames can include newlines. We have not established why they can do that. After some deliberation, the Austin Group could not find a single use-case for newlines in pathnames besides breaking naive scripts. Wouldn’t it be nice if the naive scripts were just correct now? Ok, that might be a bit much all at once. We’re heading there though!

Oh my god. This makes me so happy. This is the most lovely think I've read in the world of computing since the unix gods decided that newlines were to be a single character.

The philosophy underlying the sentence "Wouldn’t it be nice if the naive scripts were just correct now?" is incredibly positive. We are surrounded by arrogant jerks who break old code by aggressively enforcing stricter compliance of some stupid rules. But here come these posix heros who do the exact opposite: make old code correct! There is hope in mankind after all.

enriquto··on What's New in POSIX 2024
What do you mean?
enriquto··on What's New in POSIX 2024
Next: spaces
enriquto··on Sinusoidal Sunlight
A difficult problem related to this: prove that, for any location in the earth, the longest night of the year is adjacent to the shortest day.

This is infuriatingly difficult (because the lenght of a consecutive day-night pair needs not be 24 hours), and I'm beginning to think that it may not even be true.

enriquto··on Advancing Memory Safety
Ah yes, rust. A language so "safe" that its compiler downloads shit from the internet every time you call it.
enriquto··on The C23 edition of Modern C
Thanks for the correction! Do you know if there is a document from the standards body explaining the change in philosophy?
enriquto··on The C23 edition of Modern C
This is not how C standards work. If it appears in the standard, it means that it is already implemented in some compilers (in that case, at least in gcc and clang).
enriquto··on The C23 edition of Modern C
So happy that we still get the dinosaur mascots! This is a good book.
enriquto··on Show HN: X11 tool to share a screen area in any video meeting
You already can with X11, for example running your rogue graphical program inside a graphical virtual machine. The vm gui will filter-out the events that happen outside the window and the rogue program will think it's running alone.

It's nice that wayland makes such containerization much lighter, at least concerning the GUI (you still need to hide your filesystem, network, etc if you want to run rogue programs under wayland). But I don't see the point in enforcing it for each and every one of your programs. It's extremely unergonomic.

enriquto··on Show HN: X11 tool to share a screen area in any video meeting
I never understood the rationale for Wayland's "security"...

All the programs that I use (ls, rm, vim, ...) can "spy" to each other, and have unrestricted read/write access to all the bytes in my home directory. That's the whole point: I run these programs to control said bytes. What's so special about the pixels of my screen that the programs that manipulate them need to be protected from each other? If anything, the pixels in my screen seem less critical to security that the bytes in my disk. But Wayland insists in making that difficult, for incomprehensible reasons. Those are my pixels and I want to do what I decide, not what Wayland lets me to. I control my programs, not the other way round. If I decide that this program reads one pixel on my whole screen, or the global mouse position, or whatever, I see no point in forbidding me to do it.

Of course, if I want to run some rogue program whose author I don't trust, I will do so inside a limited container. But this has nothing to do with graphical applications. I wouldn't like the rogue program to read my homedir either.

enriquto··on Show HN: X11 tool to share a screen area in any video meeting
> Wayland intentionally makes this more difficult,

some men just want to watch the world burn

enriquto··on The state of GNU/Linux and a case against shared object libraries
The world needs a static linux distribution more than ever.
enriquto··on Show HN: X11 tool to share a screen area in any video meeting
It's an irrelevant implementation detail. This is for a live call. You are streaming video at the same time, so there's no point in worrying about idling.

I'd even say that it's a good example for others, because the equivalent code with the event loop would be slightly more complicated (maybe 5 more lines?). Striving for "doing things right" when the wrong thing is perfectly appropriate would be a bad example.

enriquto··on Exploring Typst, a new typesetting system similar to LaTeX
Yes, that is the problem, precisely. Lualatex and xelatex do not support all the features of plain latex (mostly "hacky" things, like pdf controls, js animations in beamer, etc). So, you have to chose between using these features and being able to type unicode letters directly.

Probably there is a magic combination of engines and packages that allows to do everything at the same time, but I haven't found it.

If this works natively in typst, it's a great selling point for me (although I dislike the markdown-like syntax).

enriquto··on Exploring Typst, a new typesetting system similar to LaTeX
No. I'm talking about modern LaTeX. You can easily write é outside of math mode, but not inside. By default, you cannot write α either inside nor outside of math. By using the right packages, you can do both, but other things break.
enriquto··on Exploring Typst, a new typesetting system similar to LaTeX
> Yes that works.

Oh, that great! My major point of friction with LaTeX is that using unicode is not straightforward. You sort of can, by including the right packages and using the right interpreters, but it imposes strange constraints involving the fonts that you can use and whatnot.

Regarding the usage, it's probably my fault. I tried to compile it locally and it didn't work at first (requires newer rustc version).

enriquto··on Exploring Typst, a new typesetting system similar to LaTeX
It's cute that you can write greek letters by spelling them, without any escape:

    pi, alpha
What I'd really want to type is however

    π, α
Will this work in typst? I had some trouble installing it.
enriquto··on Google is preparing to let you run Linux apps on Android, just like Chrome OS
The very notion that google can "let" or not let you run programs on your own computer is unacceptable.
← PreviousPage 6 of 34Next →