75 karma · joined Dec 3, 2019 (6y ago) · 42 submissions
comment 11mo ago · link · parent
Turning 10, you might want to stop ditching WordPress for being 15 on your homepage though ;)
Your customers demand blazing-fast digital products, web standards are evolving at the speed of light, yet you rely on 15-years-old solutions like WordPress that force you to deliver heavy, low-quality user experiences.
After all, you'll be there in only 5 years!comment 2y ago · link · parent
I'd recommend either learning the basic building blocks (these skills also transfers well to other clouds and self hosting) or using a higher level service provider than AWS (Vercel etc) - they do it better than AWS.
comment 2y ago · link · parent
Maybe "dumb is robust" or "straightforward is robust" capture the sentiment better?
comment 2y ago · link · parent
e.g. "We did not know where to put the piping at the start, so we put it on the outside and now installing a new restroom is sort of tricky."
comment 2y ago · link · parent
Not sure if you are joking or not, but I often hear similar things and I believe that it misses the point. What constitutes a good foundation in software is very subjective - and just saying "foundation bad" does not help a non-technical person understand _why_ it is bad.
It's better to point at that one small rock (some ancient perl-script that no-one longer understands) which holds up the entire thing. Which might be fine until someone needs to move that rock. Or something surrounding it.
comment 2y ago · link · parent
comment 2y ago · link · parent
I tried recreating your DataInputStream + BufferedInputStream (wrote the 1brc data to separate output files, read using your code - I had to guess at ResultObserver implementation though). On my machine it roughly in the same time frame as yours - ~1min.
According to Flight Recorder:
- ~49% of the time is spent in reading the strings (city names). Almost all of it in the DataInputStream.readUTF/readFully methods.
- ~5% of the time is spent reading temperature (readShort)
- ~41% of the time is spent doing hashmap look-ups for computeIfAbsent()
- About 50GB of memory is allocated - %99.9 of it for Strings (and the wrapped byte[] array in them). This likely causes quite a bit of GC pressure.
Hash-map lookups are not de-serialization, yet the lookup likely affected the benchmarks quite a bit. The rest of the time is mostly spent in reading and allocating strings. I would guess that that is true for some of the other implementations in the original post as well.[1] https://github.com/openjdk/jmc
edit: better link to JMC
comment 2y ago · link · parent
comment 3y ago · link · parent
Most substantial rewrites crosses module boundaries. In micro services changing the module boundary is harder than in a monolith, since it can be done in a single commit/deploy.
comment 3y ago · link · parent
comment 3y ago · link · parent
1. In the same document (a document in ES is a JSON object) 2. You have indices for them. ES (and Lucene) supports indices on raw text values and numbers as well.
ES does not do well with relations (joins). You can de-normalize data to deal with that.. but that makes data consistency harder.
comment 3y ago · link · parent
comment 3y ago · link · parent
If the majority of code is performance critical, the tradeoffs are of course different.
comment 3y ago · link · parent
You could of course FFI into e.g. C for those parts, but that is usually harder to maintain than a few well optimized java classes.
26.
Commit referring to using LSP in Intellij Svelte plugin(github.com ↗)
1 points · by antonhag · 3y ago · 1 comment
comment 3y ago · link · parent