Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
pkolaczk
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
83 ms
·
961.
▲
by
pkolaczk
10y ago
Lack of good documentation, no tests and possibly undefined behaviour in a few places. The code also doesn't look any cleaner than HDFS and uses some weird mix of C (*printf, error codes) and C++ (vectors, smart pointers, RAII etc).
962.
▲
by
pkolaczk
10y ago
The underlying local filesystem on each node is not truly realtime, so a "realtime distributed file system" is already quite a stretch. Also JVM is perfectly fine with pause times below a few tens of ms worst-case (when using prop
963.
▲
by
pkolaczk
10y ago
Then they have a problem. Undefined Behavior.
964.
▲
by
pkolaczk
10y ago
"It looks like a faster version of HDFS since it's written in C++ (vs Java)." This is non sequitur. The conclusion does not follow from the premise.
965.
▲
by
pkolaczk
10y ago
But this way they can't tell how many accidents the hands-off autopilot could have caused. Number of accidents avoided alone is not enough to say this technology would decrease the number of accidents.
966.
▲
by
pkolaczk
10y ago
" It should also solve the "don't know how to start" problem, because it de-emphasizes planning and design in favor of just jumping in; you write the tests, and then you do the bare minimum to make them pass" It doe
967.
▲
by
pkolaczk
10y ago
The goal of the study was not to measure if testing is valuable at all, but to measure if there is any difference between TDD and TLD. I think no-one questions the value of testing per se. As for your points why TLD is theoretically worse:
968.
▲
by
pkolaczk
10y ago
I don't know why they downvote you. Even in Java with no value types yet, there are ways to write useful code with no or almost no managed heap allocation. And if you don't need ultra low pauses, mixing these techniques, e.g. usin
969.
▲
by
pkolaczk
10y ago
Most GCs will not cost you a single cycle if you never allocate.
970.
▲
by
pkolaczk
10y ago
"Also, global GC often requires 2x-3x the memory footprint of working memory which is extremely wasteful for the resource constrained domains that C++ is often used in." Memory fragmentation in manual memory management often comes
971.
▲
by
pkolaczk
10y ago
I agree that understanding someone else's code is typically easier than writing that code from scratch. But that's just part of the equation. Another part is how much of that code you have to understand / write. Understanding
972.
▲
by
pkolaczk
10y ago
It would be interesting to know the weight and cost per capacity of these batteries. Capacitors have almost unlimited cycle count but they can store only tiny amounts of energy, so that makes them somehow useless for powering consumer devi
973.
▲
by
pkolaczk
10y ago
It looks better on paper for an engineer, but not for someone who actually plays an instrument and reads the notation. With most western music, not all 12 pitches in an octave are used most of the time, but only a subset determined by the k
974.
▲
by
pkolaczk
10y ago
Not all NoSQLs are document schema-less databases like Mongo. Some NoSQL database systems have static schema. E.g. Apache Cassandra has tables with static column metadata just as RDBMS.
975.
▲
by
pkolaczk
10y ago
My whole point is that ACID is not the only kind of consistency and it is not required to do "get accurate, up to date information at a human timescale". It is just a nice and convenient programming model, but it comes at a cost o
976.
▲
by
pkolaczk
10y ago
Maybe it is similar, but you can implement it in probably any NoSQL store you wish. And it is not just a standard of the time, it is in wide use today, even if the underlyind database system is ACID.
977.
▲
by
pkolaczk
10y ago
ACID is not a way to deal with faster data change. Actually it is totally opposite. The more updates you have and the more online (distributed) you are, the less you want ACID. ACID is extremely latency-sensitive and failure-sensitive. And
978.
▲
by
pkolaczk
10y ago
"The cost: transactions, relations. These are actually incredibly valuable things to have" This is quite arguable. Before the Computer Era, all businesses, including the whole financial sector did just fine without ACID. Still, AC
979.
▲
by
pkolaczk
10y ago
The two things, that Relational Databases typically don't do well: 1. High availablity and no downtime, ever. 2. Unlimited scalability of all operations, including writes. Honestly, many (most?) NoSQL databases also don't really d
980.
▲
by
pkolaczk
10y ago
Transistor switching time is limited mostly by electrical capacity which is determined by the permittivity of the material the transistor is made from. And permittivity and permeablity are the only things determining the speed of light in a
981.
▲
by
pkolaczk
10y ago
Higher order integration methods are not always more accurate or more power efficient. They are typically worse in terms of stability if the step is too big, they require more computations per step and they may have higher error constant, s
982.
▲
by
pkolaczk
10y ago
Not really. Most programmers I know design systems, not just mechanically program them according to the specs. Plumbers do not design - they just execute designs created by plumbing engineers. And plumbing or mechanical engineers are paid m
983.
▲
by
pkolaczk
10y ago
Most programmers would be able to do usual plumbing stuff like connecting the sink or dishwasher to water pipes with almost no prior learning, just by looking how things are done, maybe asking a few basic questions at the plumbing supplies
984.
▲
by
pkolaczk
10y ago
"they would have all of the wheels off and gone before anybody could respond anyway." I wouldn't be so sure about it. I heard stories (directly from friends, not only from the Internet) about thieves being stopped by a custom
985.
▲
by
pkolaczk
10y ago
I think thieves don't want to take unneeded risks. Otherwise, no protection would make any sense and we could as well just leave the doors open. Even if 9 out of 10 times the alarm going off wouldn't be noticed, the remaining chan
986.
▲
by
pkolaczk
10y ago
> This being C, I assume the performance is really good The choice of programming language affects performance much less than the quality of the architecture, algorithms, data structures and just plain coding skills. > "With bald
987.
▲
by
pkolaczk
11y ago
Honestly, I can see more than 4 lines of code there.
988.
▲
by
pkolaczk
11y ago
I never said more powerful. I said stronger. In C++ you need unit tests to check something I can have statically proven in C#. And obviously you can't instantiate your template for all possible valid input types, because this number ca
989.
▲
by
pkolaczk
11y ago
The body of the template won't be typechecked until the instantiation of the template. This is different than in C#. If I replaced arg.bar with arg.baz in C#, the generic type definition would not compile, even if I never use it. In C+
990.
▲
by
pkolaczk
11y ago
So you're saying concepts will reject libraries that compile fine today?
More ›