Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
enriquto
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
20 ms
·
301.
▲
by
enriquto
3y ago
> TIL macarons [1] are also known as macaroons [2] Not to forget macarrons! Where I'm from, macarrons [3] is a kind of pasta (penne). [3] https://ca.wikipedia.org/wiki/Macarrons
302.
▲
by
enriquto
3y ago
Why did that put you off? This is a very common thing for reviewers to do. It is useful for you, because it makes you aware of other people who work in the same problem as you, leading to future job prospects, etc. But more importantly,
303.
▲
by
enriquto
3y ago
But this is not really usable, is it? I was expecting a look "native" to a terminal, i.e. a text-based user interface with the common conventions of the medium.
304.
▲
by
enriquto
3y ago
I'd love to see an ansi text renderer, to be able to run gtk programs inside my xterm (optionally, with some sixel thrown in...).
305.
▲
by
enriquto
3y ago
Have you tried it with glibc? It's harder to build static binaries with it, but it's still possible, and it may work. To debug your problem, do you have a minimal example at your fingertips to try? Just a "hello world"
306.
▲
by
enriquto
3y ago
I don't know, releasing a sellable product from an algorithm is a huge undertaking, probably harder and definitely less interesting than developing the algorithm itself. This was just a three-month work project by some smart students,
307.
▲
by
enriquto
3y ago
You can still call dlopen from your static binary, if you really want to.
308.
▲
by
enriquto
3y ago
It was a project by some signal processing students in my lab. As far as I know, they didn't get to publish anything besides writing a technical report; and the code was a matlab thing that just ran on the computer of one of them...
309.
▲
by
enriquto
3y ago
> Can someone explain a couple use cases for something like this? At this point, it would be more useful if someone explained a couple of use cases for dynamic linking.
310.
▲
by
enriquto
3y ago
I've seen this done for vinyl discs. You play several copies of the same old disc. The noise defects appear in different places, and can be easily removed by merging the aligned the tracks. Even with just two discs, the output resu
311.
▲
by
enriquto
3y ago
Thanks to optional closing tags, html5 tables are quite neat: <table> <tr> <td>first row, first column <td>first row, second column <td>first row, third column <tr> <
312.
▲
by
enriquto
3y ago
Apart from the p tag, that gets annoying when you have long stretches of prose, I find plain html5 much less annoying than markdown. Moreover, tables and hyperlinks are clearer and easier to type in html5 than in any markdown flavor.
313.
▲
by
enriquto
3y ago
> debugging leaks is ~hopeless unless you have the ability to prune “intentional leaks” at exit Not in general. It depends on your debugger. For example, valgrind distinguishes between harmless "visible leaks", memory blocks
314.
▲
by
enriquto
3y ago
TFA is clearly written in jest. The provided code is not supposed to be run in production, just to illustrate how easy is to trick a "leak detector" in your debugger. You just put all your mallocs in a list, and at the end of yo
315.
▲
by
enriquto
3y ago
This is the core idea: > It is [...] entirely optional to call free. If you don’t call free, memory usage will increase over time, but technically, it’s not a leak. As an optimization, you may choose to call free to reduce memory, but ag
316.
▲
by
enriquto
3y ago
> not a function, but a value calculated from some other values The term of art is "an expression" [0]. And you can also differentiate expressions with respect to their variables. It's a perfectly supported construction
317.
▲
by
enriquto
3y ago
> the concept of a function shouldn't depend on what your favourite letter is On the other hand, you can also argue that the concept of a function shouldn't depend on your favourite ordering of its variables. Thus, if you have
318.
▲
by
enriquto
3y ago
And the same thing for filenames! Writing shell script under the assumption that filenames do not contain spaces is a liberating experience. I want more of that! And it is nearly possible, by tr ' ' 0x00A0'ing every call t
319.
▲
by
enriquto
3y ago
A vector v = (v[0], v[1], v[2], ..., v[100]) is exactly the same thing as a function v taking a number i and returning a value v[i]. Since you can sum scalars to functions, it is natural to sum scalars to vectors.
320.
▲
by
enriquto
3y ago
I'm not talking about matrices as in linear algebra, I'm talking about functions. If you interpret a vector or a matrix as a function of its indices, then B = α*A + β means just B(t) = α*A(t) + β for all releva
321.
▲
by
enriquto
3y ago
> But an array is just a contiguous data structure, not a function of its indicies. When you do signal processing, you pretty much interpret 1d arrays as functions of time, 2d arrays as functions on the plane, etc. In that case, it is v
322.
▲
by
enriquto
3y ago
My point exactly. That's what makes broadcasting natural!
323.
▲
by
enriquto
3y ago
I don't understand what you mean. Precisely the Bourbaki camp would be the only people who would avoid the broadcasting notation that is commonly used in math.
324.
▲
by
enriquto
3y ago
> Why should this be obvious? This is very natural, and consistent with standard mathematical notation. It's an abuse of notation so common that is barely ever mentioned in elementary mathematics. For example, when you work with f
325.
▲
by
enriquto
3y ago
> offering almost a Python like experience If you do scientific computing, the fortran experience is much better than python's. You never feel out of place. Multi-dimensional arrays of floats are a native type, loops are fast, an
326.
▲
by
enriquto
3y ago
> What are some pros and cons of using OpenBSD instead of Linux? Pros: htop only fills half of your terminal, and you know exactly what each process does because you put them there. A few well-written man pages are the complete docume
327.
▲
by
enriquto
3y ago
> How can gradient descent work on compute graphs when the space of compute graphs is discrete? You can un-discretize the space of compute graphs by interpolating its points by simplices. More precisely, each graph is a subgraph of the
328.
▲
by
enriquto
3y ago
For a dryer, more formal and succinct approach, see "The Transformer Model in Equations" [0], by John Thickstun. The whole thing fits in a single page, using standard mathematical notation. [0] https://johnthickstun.co
329.
▲
by
enriquto
3y ago
What a world we live in, mate. What a world.
330.
▲
by
enriquto
3y ago
> I've personally gone back to putting my (modest and used by nobody, to be fair) projects under GPLv3. Consider using the AGPL. Your users will be better protected by that. (If they use your software via third-party server, the m
More ›