Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
enriquto
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
28 ms
·
421.
▲
by
enriquto
3y ago
YES
422.
▲
by
enriquto
3y ago
I agree with you. Function overloading is just as bad as operator overloading.
423.
▲
by
enriquto
3y ago
You could argue that there is just one type (tensor) with some invalid operations between its values (e.g., when dimensions mismatch). Just like integer division by zero.
424.
▲
by
enriquto
3y ago
You still have cstdio, which is perfectly cromulent. There's also a format-like thing using integers surrounded by curly braces, but it's horrific and I'm afraid to copy-paste it here.
425.
▲
by
enriquto
3y ago
Apparently, the header print adds symbols to the std namespace, just like other standard headers: https://en.cppreference.com/w/cpp/header/print
426.
▲
by
enriquto
3y ago
#include <print> int main() { std::print("hello, world!\n"); return 0; } So, it has come to this. Much better than overloading bit-shift operators for input/output.
427.
▲
by
enriquto
3y ago
Ten lines? Why so complicated? Back in my day we did it with just two lines: mov al, 13 int 10 And then you pushed your pixels to the video segment (a0000). So simple and elegant... But my dad still mocked me because it was
428.
▲
by
enriquto
3y ago
> for any actual scripting it's basically dead. Run "file /usr/bin/* | grep -i perl | wc -l" on your computer. You will be surprised. EDIT: if you want a histogram for all the types of programs in your syst
429.
▲
by
enriquto
3y ago
> People who still write C, honest question: Why? Because loops are fast. I do scientific computing, where many people use python nowadays, and a few years ago it was matlab/octave. These languages feel "cramped" because
430.
▲
by
enriquto
3y ago
They are often constructed that way. Aperiodic lattices in the plane arise from projection of the periodic grid in R^5 into an inclined plane (with irrational coefficients). Now in R^5 you have the famous Poisson summation formula, that sa
431.
▲
by
enriquto
3y ago
> Unfortunately this approach makes you quite unique for fingerprinting As opposed to sharing your actual latitude,longitude and microphone readings?
432.
▲
by
enriquto
3y ago
This blog has nice stories, but what really does it for me are the cute interjections using random conlangs. Here it was a well-known one, but I recall having seen some toki pona another day (can't find it now).
433.
▲
by
enriquto
3y ago
> Yeah but jupyter notebooks suck at providing reproducible data science. That depends on how you use the notebooks. With just a tiny bit of discipline, you can integrate notebook users into your sane workflow. For example, encourage pe
434.
▲
by
enriquto
3y ago
Why would you commit the outputs into git? That would be like committing compiled binary objects or pdfs. Of course the outputs are useful, but you just want to commit the sources. The .ipynb stores inputs and outputs together in an unhol
435.
▲
by
enriquto
3y ago
Curious that they discuss several options, but ignore the totally obvious one: just use jupytext [0]. Jupytext is a (tiny) jupyter extension that reads/writes notebooks as python files, with text cells being represented as comments.
436.
▲
by
enriquto
3y ago
> never explored because of the pecking order of the organizations that operate them. INAMB (I'm not a marine biologist), but one of my best friends is. And I can say that the profession is refreshingly light hearted. At least, co
437.
▲
by
enriquto
3y ago
Self-closing tags are an inconsequential issue. Of actual practical consequence are optional html5 tags [0]. They allow you to write html by hand as easily as if you wrote markdown. Some graybeards even say that optional html5 tags make
438.
▲
by
enriquto
3y ago
> Google Docs uses its own layouting system for its editor---which means, it doesn’t use browser’s contenteditable API Ah!, so that's the reason why copy-paste is badly broken in google docs (and jupyter notebooks as well)? Now I u
439.
▲
by
enriquto
3y ago
I love this style (avoiding multiple-statement blocks) ! Sometimes you can still avoid multiple statements by rearranging your code otherwise. For example, in your case, you can set *result=0 at the beginning of the function. Other times,
440.
▲
by
enriquto
3y ago
> exp(sqrt(2pi)) Now, this is a number that I don't recall having seen before. The letter é seems strangely fitting for it é = 12.2635111...
441.
▲
by
enriquto
3y ago
> Does this not apply also to the elementary formulas you mention? Oh, you are right! I disliked the 2pi factor in the exponential because it messes with derivatives. But if you define your scaled derivative then the factor disappears
442.
▲
by
enriquto
3y ago
You can also eliminate the constant in some of the integral formulas by using đx instead of dx. I'm surprised the author does not propose this. However, some constants will still remain. Most conspicuously, the 2π constant in the ve
443.
▲
by
enriquto
3y ago
This is an extremely interesting project! From got's faq: > Got is a new system which relies on prior art and takes what makes Git's design great, leaves out the parts that make Git hard for us to use, and invents new parts for
444.
▲
by
enriquto
3y ago
> licenses didnt even arrive in the 2000 to deal with the web. The first version of the AGPL dates from 2002.
445.
▲
by
enriquto
3y ago
If you'd rather prefer something readable and explicit, instead of empty handwaving and uml-like diagrams, read "The Transformer model in equations" [0] by John Thickstun [1]. [0] https://johnthickstun.com/doc
446.
▲
by
enriquto
3y ago
> it seems that being nicer would solve this whole problem I agree 100%. Being nice is the best and solves nearly everything. Problem is, COCs give undue power to some non-nice people via "enforcement committees" and whatnot.
447.
▲
by
enriquto
3y ago
One of the landmarks of civilization is that people who utterly hate each other can still work together for a common good. This, my dad taught me as a kid and I cherish it as a core principle. I like civilization, after all. Being hateful
448.
▲
by
enriquto
3y ago
> this is a solved problem, I don't understand why languages (...) insist on not having sane Option, Either, Try etc types. This is not a "problem" as much as a conscious philosophical stance: Errors don't actually ex
449.
▲
by
enriquto
3y ago
Really confusing name! Without more context it looked like the article was about lua scripting on bsd. I was saddened to see thas it was not the case.
450.
▲
by
enriquto
3y ago
This is exactly what jupytext gives you. The "pairing" is optional (and sometimed confusing). You can just work with .py files as notebooks and never ever see a .ipynb on your disk again. The notebook .py files are just regula
More ›