Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
enriquto
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
12 ms
·
151.
▲
by
enriquto
2y ago
> 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 scri
152.
▲
by
enriquto
2y ago
What do you mean?
153.
▲
by
enriquto
2y ago
Next: spaces
154.
▲
by
enriquto
2y ago
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
155.
▲
by
enriquto
2y ago
Ah yes, rust. A language so "safe" that its compiler downloads shit from the internet every time you call it.
156.
▲
by
enriquto
2y ago
Thanks for the correction! Do you know if there is a document from the standards body explaining the change in philosophy?
157.
▲
by
enriquto
2y ago
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).
158.
▲
by
enriquto
2y ago
So happy that we still get the dinosaur mascots! This is a good book.
159.
▲
by
enriquto
2y ago
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. I
160.
▲
by
enriquto
2y ago
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
161.
▲
by
enriquto
2y ago
> Wayland intentionally makes this more difficult, some men just want to watch the world burn
162.
▲
by
enriquto
2y ago
The world needs a static linux distribution more than ever.
163.
▲
by
enriquto
2y ago
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
164.
▲
by
enriquto
2y ago
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 feature
165.
▲
by
enriquto
2y ago
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
166.
▲
by
enriquto
2y ago
> 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 constrain
167.
▲
by
enriquto
2y ago
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.
168.
▲
by
enriquto
2y ago
The very notion that google can "let" or not let you run programs on your own computer is unacceptable.
169.
▲
by
enriquto
2y ago
In that case it's just to convert the value of a macro into a string constant cat > a.c #define X(s) #s #define S(s) X(s) char *f(void) return { S(A); } ^D cc -E a.c char *f(void) return { "A"; }
170.
▲
by
enriquto
2y ago
This is a neat hack, and very well written. I felt a bit of nostalgia looking at the (classical) cpp flex to avoid repeating an identifier #define X(s) #s #define S(s) X(s)
171.
▲
by
enriquto
2y ago
That's a good line to draw! Static = no scripting (either server-side or client-side)
172.
▲
by
enriquto
2y ago
> Static website can be served by `cat index.html` For sure, but that's not a sufficient definition. You need to add some constraints to the contents of the html. Otherwise, you can put a huge javascript program in there that hall
173.
▲
by
enriquto
2y ago
> There is no excuse for hard-wrapping text. How else are you going to write a poem, or an address, in a text file? > if you hard-wrap your text to 80 characters, and someone has a window that fits 100 characters at their desired text
174.
▲
by
enriquto
2y ago
> there is no way to represent key-value pairs or nested data and then do things like extract fields or filter on values man, ever heard of awk? It was designed exactly for that purpose.
175.
▲
by
enriquto
2y ago
> It renders wrong in iPhone Safari because of the hard line breaks. If your device fails to display a 70-column text file, then your device is broken.
176.
▲
by
enriquto
2y ago
It looks perfect to me, it's really beautiful and I don't see how could it improve anymore. A real improvement would be for some form of ipython to support in-terminal sixel graphics. There is no real technological impediment for
177.
▲
by
enriquto
2y ago
> What would something in that vein that was really, really nice look like? No need to say "would". You can have exactly this experience today using gnuplot with sixel terminal.
178.
▲
by
enriquto
2y ago
Your example is particularly funny, because one can easily undecode the base64 image, convert it to sixel so that it's displayed in the terminal verbatim, all in half a line of shell pipes. If the image is large, you can also pipe it
179.
▲
by
enriquto
2y ago
> if you can't even represent your data any data can be represented as text
180.
▲
by
enriquto
2y ago
> Nowadays it is increasingly niche. Still, if you buy a brand new mac today, most of the executable scripts in the system are written in perl. You can check it yourself by running: file -bL /bin/* /usr/bin/
More ›