Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ncruces
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
30 ms
·
601.
▲
by
ncruces
2y ago
This really doesn't make sense without those (you'll be haplessly looking for the comment, failing to understand the title).
602.
▲
by
ncruces
2y ago
Not the author. Each instruction is an heap allocated closure, but it's allocated at “compile” time (when you generate the instruction from the AST), not at runtime (every time you run the instruction): by then they're (preallocat
603.
▲
by
ncruces
2y ago
Google's GCP Discontinuation of Services policy requires 1 year advance notice for generally available services; this includes any significant backwards incompatible changes. I don't think they went against that policy for the pas
604.
▲
by
ncruces
2y ago
Some people seem to think manure is cleaner than tailpipes.
605.
▲
by
ncruces
2y ago
Only if for as long as public data continues to exist.
606.
▲
by
ncruces
2y ago
Well, that includes at least everyone using Python built with that compiler.
607.
▲
by
ncruces
2y ago
And all everybody speaks of is expenditure, not capabilities. That alone should tell you what the goal is. Except it might backfire if Europe understandably decides it must buy European.
608.
▲
by
ncruces
2y ago
Trump's is: Ukraine folds, because it holds no cards, Putin gets all he wants, and US companies can do business with Russia again. Russia a country who's GDP is between Italy and Spain. Surely worth it to antagonize all the other
609.
▲
by
ncruces
2y ago
If Europe collectively decides they must only buy French and German weapons, there's less US cake.
610.
▲
by
ncruces
2y ago
Let's all go back to doing the laundry by hand. Because life was better back then.
611.
▲
by
ncruces
2y ago
> Maybe I'm reading too much into your reply, but I don't see it as trolling or negative faith. Maybe you are. All my repos are either MIT (where I'm a little proud, and would appreciate the acknowledgement - though real
612.
▲
by
ncruces
2y ago
Because some people just don't care where their code ends up. Many people release code to the "public domain" (or under very liberal licenses). If those never cared if corporate entity™ used it in proprietary software, why
613.
▲
by
ncruces
2y ago
People complain about Google killing projects that have only a few hundred million users, but then claim Firefox is dead at single digit market share because that's… 150 million users.
614.
▲
by
ncruces
2y ago
Thank you author for your kind words about my Go SQLite driver. That said, purego solves a build infrastructure issue, not a perfomance issue. You're still using the same underlying mechanisms to call into C, and the same performance i
615.
▲
by
ncruces
2y ago
Exactly. Why would you rewrite (parts of) Cargo from Rust to something that runs on the JVM, when you can use Wasm as basically an intermediate target to compile the Rust down to JVM bytecode? Or how about running something like Shellcheck
616.
▲
by
ncruces
2y ago
Looking forward to this reviving NestedVM's pure Java SQLite. It's only been (checks notes…) 20 years. http://nestedvm.ibex.org/ https://benad.me/blog/2008/1/22/nestedvm-compile
617.
▲
by
ncruces
2y ago
Now build me a selection algorithm out of mergesort. Just the other day I sped up a process by an order of magnitude because someone was sorting to do weighted median selection. Which is easy to build on top of std::nth_element. Top-k is an
618.
▲
by
ncruces
2y ago
> Quicksort is relatively terrible for partially ordered lists like appended timestamps from multiple processes etc etc. It's not, not really: pdqsort handles those organically. I'm sorry if "best sort", "so much
619.
▲
by
ncruces
2y ago
https://en.wikipedia.org/wiki/Bleu_de_France_(colour)
620.
▲
by
ncruces
2y ago
Yes, I said comparison sort. And it is hard to beat, which is why the standard libraries of languages like C++, Rust, Go, C#, Java (etc) use some quicksort variant for their unstable sorts (and some mergesort variant when they need stabil
621.
▲
by
ncruces
2y ago
“Every scam comes from Cloudflare” is an asinine metric. “Every one of those scams” are also on the internet, use email, DNS, whatever. The metric that matters is how much of Cloudflare is a scam, and can the rate of scamming on Cloudflare
622.
▲
by
ncruces
2y ago
There's no violin small enough for LaLiga. What (other than greed) can possibly justify blocking hundreds of different services, with little to no oversight? The only saving grace here, is that premium broadcasts kinda succeeded in get
623.
▲
by
ncruces
2y ago
Quicksort is an important, extremely flexible, and very hard to beat unstable comparison sort. It's based on a very simple but powerful idea/strategy (divide & conquer). Its flexibility means it can be adapted to partially s
624.
▲
by
ncruces
2y ago
Peek (parking) experience is the car having a tag and paying for itself, on parks, fuel pumps, toll roads at 120km/h (75mph), etc.
625.
▲
by
ncruces
2y ago
If this is Go and database/sql (as the modernc tidbit points to) this comment is ill advised. Go database/sql handles ensuring each actual database connection is only by a single goroutine at a time (before being put back into t
626.
▲
by
ncruces
2y ago
If you're using database/sql you don't need locks around database access. All sane Go SQLite drivers should be concurrency safe. That said, (and I'm biased but) there's something fishy about modernc concurrency:
627.
▲
by
ncruces
2y ago
That copies the entire file each time (not just deltas). You may find sqlite_rsync better.
628.
▲
by
ncruces
2y ago
In my country, segments more prone to “informal” sales (SMEs, cash transactions, limited incentive for paperwork), have reduced VAT (final sale has a reduced rate compared to many supplies), and the customer can get some of that VAT back as
629.
▲
by
ncruces
2y ago
It's not just a matter of opinion, but resource allocation. WASI preview 1 was already a significant effort. It is the least polished bit of the wazero implementation, but even compared to: a spec compliant interpreter, two compilers a
630.
▲
by
ncruces
2y ago
For wazero (mentioned in the article) WASI capabilities can be granted piecemeal: (e.g.) the host can grant/deny access to the clock or implement a virtual one. Obviously, you can do the same with the file system, etc. Guest crashes be
More ›