Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
anttihaapala
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
anttihaapala
13d ago
Yes it has been. I have had a second level .name for 20 years.
2.
▲
by
anttihaapala
20d ago
Malaria was endemic in Finland until the beginning of the 20th century, the people used to lived inside smoke-heated chimneyless log cabins together with animals, mosquitoes... and Plasmodium vivax...
3.
▲
by
anttihaapala
2mo ago
The problem is for most practical uses where you need fast calculations the 64 bit precision is enough. For example there is hardly any physical calculation that would need more precision. 64 bit float can be used to measure the Earth-Sun d
4.
▲
by
anttihaapala
7mo ago
How about everyone gets a digital certification from their own government that this is the person named this and that. No need to share cranial measurements and iris scans.
5.
▲
by
anttihaapala
8mo ago
formatting should definitely be in pre-commit though, otherwise you'll destroy diffs.
6.
▲
by
anttihaapala
1y ago
This is not a complicated algorithm. A hash map (dictionary) or a hash set is how you would always do deduplication in Python, because it is easiest to write / least keystrokes anyway. That is not the case in C though, as it is much ea
7.
▲
by
anttihaapala
1y ago
Yes, and while waiting for the child services to intervene then those children would still be starving.
8.
▲
by
anttihaapala
2y ago
What it means is that since i as the variable is monotonically increasing, an array indexing operation that is in the loop body can be replaced with an incrementing pointer instead, which eliminates quite a lot of code. An example here:
9.
▲
by
anttihaapala
2y ago
It definitely hit this https://maps.app.goo.gl/Npbyqgiy57y7jZDj7 instead.
10.
▲
by
anttihaapala
2y ago
If you consider an underwater cable running from Finland to Germany or Sweden to Lithuania in the Baltic Sea, it is virtually impossible for a ship travelling from St. Petersburg to the Kattegat to avoid passing over it, so redundancy can d
11.
▲
by
anttihaapala
2y ago
Yet Vietnamese can be written in Unicode without any combining characters whatsoever - in NFC normalization each character is one code point - just like the U+1EC7 LATIN SMALL LETTER E WITH CIRCUMFLEX AND DOT BELOW in your example.
12.
▲
by
anttihaapala
2y ago
Oftentimes many of the significant new PHP features are to fix the shortsighted implementation in the previous ones - for example this method chaining with `new` - there was precedent already, C++ got it right well before PHP even existed a
13.
▲
by
anttihaapala
2y ago
The issue was migrated to github so more up-to-date discussion is in https://github.com/python/cpython/issues/62817
14.
▲
by
anttihaapala
2y ago
IPv6?! The big thing about this was that you'd have end-to-end connections without NAT etc.
15.
▲
by
anttihaapala
2y ago
and it almost works, does not get rid of efivars... needed to add `-x efivarfs` for that .
16.
▲
by
anttihaapala
2y ago
No, it is not, and it has never been OK for as long as C has been standardized by ANSI or ISO. C89 says that "The value of a pointer that refers to freed space is indeterminate." and that behavior is undefined "upon use ... o
17.
▲
by
anttihaapala
3y ago
Well, there is even more to it. First of all the name My is (Finland-)Swedish, the Finnish name of the character is Pikku Myy. The Finnish name registry contains only ~2 mentions before the publication of the hugely popular first Moomin boo
18.
▲
by
anttihaapala
3y ago
In the case of execvp, you would pretty much be required to fork before it and then you could change PATH.
19.
▲
by
anttihaapala
3y ago
This! And the attributes page explains these even better: const Functions marked with const as an MT-Safety issue non- atomically modify internal objects that are better regarded as constant, because a
20.
▲
by
anttihaapala
3y ago
Well, Finland has been landing and taking off F-18s on these road bases for almost 30 years now.
21.
▲
by
anttihaapala
3y ago
This is for backward-compatibility reasons. The comparison operators in Python produced 1 or 0 before boolean was a thing, and programs existed that exploited this, i.e. you can do something like `(a < b) - (a > b)` in a sorting algor
22.
▲
by
anttihaapala
3y ago
With pointers having lowest bit set, you'd check if the LSB is set and then do for example (uint32_t *)((char *)p - 1) + 2 which the compiler would optimize to register + 7 instead of register + 8, i.e. the penalty would be exactly zer
23.
▲
by
anttihaapala
3y ago
I believe it might be just because it is really easy to incorporate an association in Finland and an association that is a non-profit organization founded for public benefit will be considered tax exempt by default. Many of these services h
24.
▲
by
anttihaapala
3y ago
I lived in Oulu and would go to a local library to download game programming tutorials for Turbo Pascal from x2ftp, not quite realizing that the library was pretty much half-way on the direct line connecting my home and the location where t
25.
▲
by
anttihaapala
4y ago
I've wanted this too. Postgres allows one to write custom data types in C or other system programming language. The only limitation is that the "type modifier", in this case the prefix, would need to fit in a "single non
26.
▲
by
anttihaapala
4y ago
Well, the mypyc was not a side project originally, as mypy was conceived to be a complete programming language with optional static typing ( https://www.slideshare.net/jukkaleh/mypy-pyconfi2012 ), but still (almost) 100
27.
▲
by
anttihaapala
4y ago
> which is the package manager to use? pip
28.
▲
by
anttihaapala
4y ago
That's not the code from the article. The code in the article is comparing 2 floats. Though, equality operator would return `False` for comparison `x == x_ts` as well, instead of throwing an exception.
29.
▲
by
anttihaapala
5y ago
... and yet, it is a SyntaxError. False = True = None works in Python 2, and it is just because the separate Boolean type was a late addition.
30.
▲
by
anttihaapala
10y ago
And of course the code is wrong, because the behaviour is undefined - in 64-bit architectures it is very common to use 64-bit registers for `int` even if in memory `sizeof(int) == 4`; thus `int a = INT_MAX;`, `a + 100` could still be great
More ›