Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
faragon
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
132 ms
·
721.
▲
by
faragon
10y ago
And not just string compare. There are many operations where general purpose CPUs have problems for giving optimum results when operating with elements of 1 or 2 bytes at once with dependencies between them. E.g. UTF-8 string search impleme
722.
▲
by
faragon
10y ago
Beautiful.
723.
▲
by
faragon
10y ago
Amend: I meant internal fragmentation, and not external fragmentation (allocated hash buckets left empty after deleting elements)
724.
▲
by
faragon
10y ago
If I understood it correctly, the author links cache miss from memory subsystem hierarchy to asymptotic complexity (big O), so if an operation for fixing a cache miss takes higher time complexity, he takes that instead of O(1). Similar happ
725.
▲
by
faragon
10y ago
Some questions: - Which CPU was used? Which compiler optimization flags? (2 million inserts per seconds seems slow, for a std::unordered_map, using 64 bit data) - How does HashSet read operations perform vs std::unordered_map? - How does ex
726.
▲
by
faragon
10y ago
Did you mean malt powder?
727.
▲
by
faragon
10y ago
Why not a Python to machine code compiler like Cython, but much faster and with all Python 3 capabilities? (e.g. as GNU gcj for Java) Getting 30x speed up with compiled code using optimized data structures (e.g. pointer compression for bett
728.
▲
by
faragon
10y ago
In fact, at least since 2008... https://web.archive.org/web/20080615000000*/http://metroid2r... https://www.youtube.com/watch?v=owSldu1CRSo
729.
▲
by
faragon
10y ago
You "forget" that the "80%" was on an unofficial and illegal (currently on Court) poll/"referendum" with massive abstention, because supported mostly by Catalan nationalist parties, and not by constitution
730.
▲
by
faragon
10y ago
Most people in Barcelona are not "pro-independence". Most "pro-independence" people come from rural areas, or small cities. Industrial and touristic areas of Catalan region of Spain are not nationalists/separatists.
731.
▲
by
faragon
10y ago
This one's pretty obvious if you've ever written a malloc. Compare VirtualAlloc² with the mess of mmap/madvise/mprotect. I'm not even sure you can get the nice explicit reserve/commit of Windows with pure POSI
732.
▲
by
faragon
11y ago
Rule of thumb for OS disk I/O: write as soon as possible, i.e. write as soon as possible without hurting performance using buffers on memory for slow component amortization, spreading operations during longer periods.
733.
▲
by
faragon
11y ago
Check if this works for your case: echo > myfile P.S. not the "solution", but may help in case you fill the disk by accident, and need to make some room before a remount cycle. P.S.2. this could help also when your disk is alre
734.
▲
by
faragon
11y ago
Just put the entries in the "hosts" file at router-level (e.g. using OpenWRT).
735.
▲
by
faragon
11y ago
gzip is fast, gzip -1 is even faster, gzip has low memory requirements, gzip is widely adopted. Those are the reasons of gzip is still being used, and why gzip has future. I.e. the gzip "ecosystem" is rich and useful, despite not
736.
▲
by
faragon
11y ago
Until a "95% efficiency" heuristic/approximation can be applied to a primality test, in that case (e.g. if someone finds a geometric heuristic for primality).
737.
▲
by
faragon
11y ago
There is no need for the optimal. E.g. you can solve most routing problems with >95% efficiency using heuristics with O(1) or O(log n) asymptotic time complexity.
738.
▲
by
faragon
11y ago
In my opinion moves to global unification are unavoidable. Free trade also makes the world richer and better. Against the TPP there are justified complaints, that must be addressed (e.g. individual freedom), and others that are plain anti
739.
▲
by
faragon
11y ago
Let's produce more. Let's make a rich world for everyone :-)
740.
▲
by
faragon
11y ago
In many cases, yes. In some cases, not.
741.
▲
by
faragon
11y ago
In my opinion, Microsoft should think about making their compilers/linkers make-friendly, e.g providing cross-compilers ("cl.exe", separated compiler and linker).
742.
▲
by
faragon
11y ago
In my opinion Qualcomm got it right when they told about better cores instead more cores, despite they are now shipping 8-core SoCs, too. The rationale of that decision comes from how difficult is doing "4 good cores" tuned for bo
743.
▲
by
faragon
11y ago
Fabrice Bellard, because he is a genius.
744.
▲
by
faragon
11y ago
Those CPUs look like having a huge potential, but there is no really working compiler for them. In my opinion, they could try to engage Fabrice Bellard, the genious behind QEMU and TCC. Or people with experience on Mali GPU architecture, wh
745.
▲
by
faragon
11y ago
"All your base are belong to us" post, but the contest looks interesting :-D P.S. my English is also terrible.
746.
▲
by
faragon
11y ago
There is an Open Source emulator of System/370, System/390 and zSeries/System z ("Hercules"). Anyone knows if there is any emulator of the System/360? https://en.wikipedia.org/wiki/Hercules
747.
▲
by
faragon
11y ago
"You get highly optimized binaries that load and run faster than .NET code ever has before. Yes, my friends, .NET has gone native! :)" It would be funny to review older "almost as native speed" claims from .NET JIT "
748.
▲
by
faragon
11y ago
Not necessarily, but could be the case. Typical malloc implementations have different management for at least small and big memory requests, using different pools, in order to reduce fragmentation. Also, because operations involving virtual
749.
▲
by
faragon
11y ago
Be careful with theoretical asymptotic complexity (big O) related to execution time. E.g. if your algorithm time complexity is O(1), but internally calls a higher complexity function, e.g. malloc(), implemented with higher complexity, e.g.
750.
▲
by
faragon
11y ago
Sure! As router as well, simultaneously. I access via ssh, having repositories inside, doing pulls, builds, etc. Is just like any other machine (in that router you can run at least Linux, FreeBSD, and OpenBSD). Network performance is great.
More ›