Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
leovonl
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
31.
▲
by
leovonl
10y ago
There is mounting evidence that fasting and a few dietary approaches (like the ketogenic diet) are useful tools for dealing with a whole sort of issues, from autoimmune diseases and generally any excessive inflammatory responses (including
32.
▲
by
leovonl
10y ago
If you consider: 1) Most of Linux source code is composed of drivers; 2) Most drivers for Linux have really bad quality code, with very few exceptions; Then Linux is a perfect example.
33.
▲
by
leovonl
10y ago
Different perspective: I live in Canada, next to a Whole Foods (Unionville). If you compare prices of organic food and quality, Whole Foods is better and chair than any other place. Maybe downtown Toronto would be cheaper, but then I won&#x
34.
▲
by
leovonl
10y ago
Funny, you'd think non-immigration visas for USA would be much stricter than for Canada, but lately I've been realizing that's not the case at all. That's specially true for rules applying to the companies (like salary r
35.
▲
by
leovonl
10y ago
He's comparing Reading/UK and Bochum/DE with those areas in the USA. "Oh wow USA is so cosmopolitan" /facepalm Also, he's essentially mistaking immigration and work visas. Just the fact that he got surpris
36.
▲
by
leovonl
10y ago
Sorry if I offend anyone, but this text is utter crap. There's a bunch of anecdotal evidence (experience which varies a lot depending on your particular conditions), over-generalization (please, England? it's the worst visa system
37.
▲
by
leovonl
10y ago
If you compile the Rust example with optimization (-O) it just throws the result away, which gives the ~0.030 time chrisdouay found. However, if you add a println!() around it, it has to calculate the result. Here's the running time:
38.
▲
by
leovonl
10y ago
> Why does a college degree cost so much in USA? FTFY Not excluding the fact that some private institutions (and even some public ones) in other contries charge a considerable tuition as well, but that usually is handled differently (fee
39.
▲
by
leovonl
10y ago
The biggest issues I see with the language didn't made into this list: for instance, I can think about more serious issues like accessing the wrong variable name does not returning an error, assignment and initialization being the same
40.
▲
by
leovonl
10y ago
See, the thing is: I spend much of my time trying to show people that good tools can be used to make good software. We have MUCH misinformation, and people don't even understand that you can prove a software right using theorem provers
41.
▲
by
leovonl
10y ago
I guess the main point is balance - not everybody agrees about the exact point where it is, but everybody agrees the extremes are bad. An isolated room in a corner is not good - though it may be useful for "development sprints". A
42.
▲
by
leovonl
10y ago
I don't want to disdain the success of Go, and I think the whole building of the community from the ground up is an achievement that few can say they were able to do. However, what I dislike about all this is the generalization issues
43.
▲
by
leovonl
10y ago
The DRY principle issues usually apply very well to OO programming and the whole "framework" concepts, where individual libraries or pieces of the code cannot easily be reused for different projects. Another big issue in the frame
44.
▲
by
leovonl
10y ago
I've been observing in some stronger critics about Rust a persistent focus on OO features, usually the ones that programmers tend to rely upon and which they feel to be "lacking" in Rust - usually requiring a different struct
45.
▲
by
leovonl
10y ago
If the government spends in excess and prints money to cover the costs, that means an increase in money supply. Which leads to inflation. Indeed, the spending alone would not be a problem if it was properly managed.
46.
▲
by
leovonl
10y ago
Sorry, but this story gets nowhere near the real reasons for the inflation reduction. The major and most important change on the Brazilian government to achieve this was the LRF - Lei da Responsabilidade Fiscal, "Fiscal Responsibility
47.
▲
by
leovonl
10y ago
In my opinion - as someone with some background in CS - the name "future" is a little too overloaded here. It is not only used for the deferred computation of a value so much as it also means the composition of computations. This
48.
▲
by
leovonl
10y ago
The UK passed a law, not the EU. Everything continues as before for Ireland, for instante. I really dislike when articles that seem to say something serious from sources that I'd normally trust simply leave out the most important refer
49.
▲
by
leovonl
10y ago
Fact: everybody wants a 10x programmer but nobody wants to be a 10x manager. Also, dealing with a skilled programmer is not just a matter of top-down policy: a 10x programmer may have a different opinion about tools and processes and will n
50.
▲
by
leovonl
10y ago
> I wonder whether the authors consider "value = somedict.get('somekey')" or "match_object = re.search(pattern, somestring)" as returning a single type. Both of those common calls can return None. val ge
51.
▲
by
leovonl
10y ago
Funny, my experience as South American is the exact opposite: expensive USA VISA (USD 160!) for attending a conference, US border asking about everything, checking my story and even knowledge about programming (!), etc - UK border just aski
52.
▲
by
leovonl
10y ago
You don't reverse a binary tree, you iterate in the opposite direction (right-to-left). Reversing is generally a pointless operation, and which would be much more efficient if not done at all.
53.
▲
by
leovonl
11y ago
Indeed, I agree with you. Object-orientation support on OCaml also sets it far apart from SML, for instance. Which can lead to a lengthy discussion, but that's beside the point. This reasoning, however, is exactly my point: depending o
54.
▲
by
leovonl
11y ago
I find it curious how you treat F# a separate language, but in the "primary programming languages" question OCaml and SML are considered the same language (listed as "OCaml/SML"). IMHO, if you don't make a dist
55.
▲
by
leovonl
11y ago
“Experience is too random, with payments, mobile, data analytics, and UX.” This one made me chuckle. Same thing usually happens with my résumé: either one discards completely the part where I cite strong OCaml knowledge plus functional/
56.
▲
by
leovonl
11y ago
This code is not only non-optimal, but also inneficient. First, it does a linear search - O(n) time - because it keeps adding null pointers for elements that are removed from each list. This makes literally no sense. Just removing the null
57.
▲
by
leovonl
11y ago
Clickbait title.
58.
▲
by
leovonl
11y ago
Your analogy misses the point that a fallback mechanism is needed in the rare cases where something unexpected happens. Even in cases where you have everything formally defined, you could still have some axiom not holding, or a transient ha
59.
▲
by
leovonl
11y ago
1) It's not a constant expression, it's a function call. 2) The compiler does not know if there are collateral effects or not. 3) Ocaml is strict eval - no memoisation Therefore this would be an unsafe optimisation if the compiler
60.
▲
by
leovonl
11y ago
Your OCaml code is not doing the same thing as the Python one: you are parsing a regexp in a loop, and then splitting by the regexp - not by a delimiter. I moved the regexp instantiation outside the loop, see the results below ("orig&q
More ›