Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
pkolaczk
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
44 ms
·
721.
▲
by
pkolaczk
7y ago
It's reversed. Living in SF is more expensive _because_ the salaries are higher but space is scarce. Salaries are higher because of concentration of high-tech companies which make a lot of money and are not neccessarily pressed to hire
722.
▲
by
pkolaczk
7y ago
One of the reasons to hire remotely is access to a bigger talent pool. You can also save up big on not running offices in all major cities.
723.
▲
by
pkolaczk
7y ago
The average global relative purchasing power is already reflected in the currency exchange rates. But generally there is no such thing as a "single" purchasing power. Some local goods may be cheaper in developing countries, but so
724.
▲
by
pkolaczk
7y ago
Why would it be fair for someone of equal skill to be able to afford less food, less healthcare, less living space and fewer gadgets for themselves just because they have a bigger family and more kids to support? ;) Generally what you do wi
725.
▲
by
pkolaczk
7y ago
It might be better than text formats, but it still encodes most things as variable-size and this is not particularly machine-friendly. A format with separate metadata and fixed length encodings for most of the things (eg numbers) would be m
726.
▲
by
pkolaczk
7y ago
I like the ship analogy from the article. The fact it is so robust is not because the system as a whole is simple, but because its components have well defined, narrow responsibilities and there are abstract interfaces between them, which h
727.
▲
by
pkolaczk
7y ago
Many computer programs or websites were more responsive in the times of Pentium II than they are now. It looks like we negated a lot of hardware advancement by inefficient software or by putting advertising in almost every possible place.
728.
▲
by
pkolaczk
7y ago
He claims all programming languages are wrong and then he bashes C++ virtual functions vs regular functions, C++ templates, single dispatch and fixed precision arithmetic. Looks like "all languages" means C++ to him. There exist l
729.
▲
by
pkolaczk
7y ago
Scala knows something about this and made a 180-degrees turn recently. Swift is a lot like Scala. Swift creators, please not repeat Scala's mistakes.
730.
▲
by
pkolaczk
7y ago
The post was about writing lockless structures. With lockless RAII is of no use. See ABA problem. RAII is awesome in other places.
731.
▲
by
pkolaczk
7y ago
You're missing the fact that the tlab pointer is only ever moved forward, so it always points to recently unused memory. Until the reset happens and it points back to the same memory again, the application managed to allocate several m
732.
▲
by
pkolaczk
7y ago
It is non deterministic, but at a much different scale.
733.
▲
by
pkolaczk
7y ago
It is nowhere near stack-like. Stack is hot in cache. Heap memory in tlab is cold. Bringing the lines into cache is the major cost, not bumping the pointer.
734.
▲
by
pkolaczk
7y ago
Close to the last allocation doesn't matter. What matters is the memory returned to the application - and this is memory that has been touched long ago and unlikely in cache. If your new generation size is larger than L3 cache it will
735.
▲
by
pkolaczk
7y ago
Escape analysis is very limited and what I found in practice, it often doesn't work in real code, where not all the things are inlined. If a method allocates an object and returns it 10 layers up, EA can't do anything. In contrary
736.
▲
by
pkolaczk
7y ago
Scala is still far more more popular than Kotlin. https://redmonk.com/sogrady/2019/07/18/language-rankings-6-1... Scala 13th, Kotlin 20th.
737.
▲
by
pkolaczk
7y ago
Languages that have GC frequently rely on heap allocation by default and make plenty of allocations. Languages with good manual memory management frequently rely on stack allocation and give plenty of tools to work with data on the stack. A
738.
▲
by
pkolaczk
7y ago
GC makes it easier to write, but not necessarily better. Modern state-of-the-art Java GCs operate a global heap, so you often pay for what you do not use. In languages like Rust or C++ your can build small locally GCed heaps, where you can
739.
▲
by
pkolaczk
7y ago
It incurs some cost, but whether it is higher is very debatable. This is very much workload dependent. A smart compiler can elide most reference updates.
740.
▲
by
pkolaczk
7y ago
A high number of short lived allocations is also a bad thing in a compacting GC environment, because every allocation gets you a reference to a memory region touched very long time ago and it is likely a cache miss. You would like to do an
741.
▲
by
pkolaczk
7y ago
This is consistent with my observations of porting Java code to Rust. Much simpler and nicer to read safe Rust code (no unsafe tricks) compiles to programs that outperform carefully tuned Java code.
742.
▲
by
pkolaczk
7y ago
Developer productivity is not linear in function of task difficulty. A 10x developer may be just as productive as a junior if given easy enough task. Or even actually worse, because he could get bored much more easily. It may not be fun to
743.
▲
by
pkolaczk
7y ago
Because garbage collection, and in particular tracing garbage collection, adds significant overhead both in CPU cycles and memory. This overhead is also very unpredictable and depends heavily on memory allocation and object lifecycle patter
744.
▲
by
pkolaczk
7y ago
Latency will be higher than LTE just because of the distance. And I'm not sure if a long distance satellite link would be more reliable than a local LTE link with a dedicated antenna.
745.
▲
by
pkolaczk
7y ago
They throttle, because there is much more demand than available bandwidth. However in cellular networks, you can add more bandwidth relatively cheaply by adding more nodes in high demand areas, and the total bandwidth of a single node is al
746.
▲
by
pkolaczk
7y ago
The problem is that rich people live in areas that have good mobile coverage, and Starlink won't be very attractive to them. LTE can offer transfers better than 600 Mbps with lower latency today , and covers 99% of population (in the
747.
▲
by
pkolaczk
7y ago
Unless you mean a village with just two houses, typical villages are covered by cellular networks just fine. Starlink looks like a system for people in deserts or people in third world where LTE doesn't exist. Not sure if this is big e
748.
▲
by
pkolaczk
7y ago
I'm also skeptical. A single LTE node can have a total bandwidth of 1+ Gbps. In Poland there are probably over 20k such nodes. Yet, the average speed you get is about 25 Mbps. With Starlink we're talking about covering the whole w
749.
▲
by
pkolaczk
7y ago
One is multicore, but the other 7 winning have the same parallelism. As for that one winning by parallelism - maybe it was just easier to provide a correct parallel solution in Rust than in C++? This game didn't appear there yesterday
750.
▲
by
pkolaczk
7y ago
On par is an understatement. It beats C++ in 8 benchmarks and loses in 2. Quite impressive. Rust has more potential for better optimisation than C++ because the compiler has full information on pointer aliasing.
More ›