Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
the_duke
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
52 ms
·
811.
▲
by
the_duke
5y ago
For an excellent, in depth introduction to async in Rust I recommend this post [1], part of the "Writing an OS in Rust" series. This seems to be more of a hands on guide for the ecosystem. [1] https://os.phil-opp.com&#
812.
▲
by
the_duke
5y ago
Removing the headphone jack was just the method to force users to buy bluethooth buds. This has turned out great for Apple. Air pods sell incredibly well.
813.
▲
by
the_duke
5y ago
Just block JavaScript on all Medium blogs. Simple click with Ublock Origin. Much better experience.
814.
▲
by
the_duke
5y ago
That's not necessarily a good comparison. Electron comes as a binary, so it already has all its own hundreds of dependencies integrated. The dependency hell wit JS projects is real, and upgrading can become a major timesink and pain if
815.
▲
by
the_duke
5y ago
Tauri is written in Rust, but it's a Electron alternative, with user code written in Javascript. It deserves a curtious mention, but it's not really relevant to a Rust UI development. (Sure, you can write UIs via WASM now, but tha
816.
▲
by
the_duke
5y ago
It's unfortunate, but I agree with you regarding native Rust libraries. There is a reason why we don't have options in this domain, apart from Qt, Gtk (with lot's of caveats) and more recently flutter. Building a cross platfo
817.
▲
by
the_duke
5y ago
It seems like this now has enough momentum and strong industry support to actually happen. With the initial announcement I mentioned that Linux will need quite a customized Rust experience, and was hopeful that this effort could improve the
818.
▲
by
the_duke
5y ago
For medium I recommend just blocking Javascript. No signup popups, fast loads.
819.
▲
by
the_duke
5y ago
Buggy in Firefox (89): gets stuck on the second question. Works fine in Chrome.
820.
▲
by
the_duke
5y ago
In addition to the mentioned micro optimizations, I'll add some possibilities from the Rust angle. Rust has really impressive incremental compilation built in already. The first compile is annoyingly slow, but additional ones will be s
821.
▲
by
the_duke
5y ago
People have been running database instances just fine on their own for decades, without the help of "big brother". There are reasons why running a high performance database instance in containers is problematic, but security is no
822.
▲
by
the_duke
5y ago
I've been using maddy as a personal and business email server for a while. Resource consumption is basically zero, no problems with sending or receiving emails at all. It did take me quite a few hours to properly set up a Kubernetes +
823.
▲
by
the_duke
5y ago
An abstraction over basic Kubernetes primitives is sorely needed. A concept of an application with versioned releases can be hacked together with a lot of effort and a multitude of tooling, but it's an awkward experience. An standard a
824.
▲
by
the_duke
5y ago
I really don't follow your thought process here. Can you expand on your objections? io_uring can really be thought of as a generic asynchronous syscall interface. It uses a kernel thread pool to run operations. If something is blocking
825.
▲
by
the_duke
5y ago
> Supporting exec sounds like it could be a security issue. Why would it be any more of an issue than calling a blocking exec? > why on earth you would call exec that way The same reason as why you would want to do anything else with
826.
▲
by
the_duke
5y ago
Probably not, no. It would just be interesting to see if the wrapper code makes a difference. I actually started working on a benchmark suite for various runtimes a while ago. I didn't get too far in, maybe you'd like to collabora
827.
▲
by
the_duke
5y ago
Suggestion: add Deno for the next round. [1] It would also be great to have a benchmark in there that measures host <-> guest interaction with lots of guest -> host and host -> guest calls. [1] https://deno.land/
828.
▲
by
the_duke
5y ago
A LEO sat at 300 km altitude does a full orbit every ~90 minutes. Put a few hundred missiles in orbit, give them enough spare fuel to travel a decent distance on their own, and you have a pretty substantial worldwide strike capability.
829.
▲
by
the_duke
5y ago
And stealth space platforms. There might already be stealth sats in orbit. A curious case was the Zuma satelite [1]. Classified payload. Ostensibly failed to detach from the payload adapter, as claimed by anonymous sources... Lot's of
830.
▲
by
the_duke
5y ago
Not at all. Webassembly is getting a lot of adoption in non-browser environments. Be it extensions for larger applications (like Envoy) or "serverless" style microservice or server deployments. There already are plenty of stand-al
831.
▲
by
the_duke
5y ago
> this is a textbook real-time scheduling problem Drive by question: do you have recommendations on good literature for real time systems?
832.
▲
by
the_duke
5y ago
Only for certain domains and in certain regions. A lot of the web was still on http, including some banks. Even Facebook was still primarliy http when Firesheep [1] came out in 2010. [1] https://en.wikipedia.org/wiki/Fi
833.
▲
by
the_duke
5y ago
They make sense because they are directly under your fingers, so you don't have to move them all the way over to the arrow keys and back just to move around. jkl; would make more sense, that's the only oddity.
834.
▲
by
the_duke
5y ago
Emacs is too laggy for me as my main editor. But Magit is so good that I start emacs up just to use it as my Git interface if I can't get by just with the CLI. Sadly there is no Vim plugin that is competitive. There is vimagit [1], bu
835.
▲
by
the_duke
5y ago
The critical point is not the OS itself, but the tooling, ecosystem and the drivers. There is a lot more hardware and software now than when Linux got started. For something different to overcome the initial bootstrapping problem it will ne
836.
▲
by
the_duke
5y ago
Linux will definitely need a very curated setup to reap the full benefits of idiomatic Rust. Right now both alloc/std and even basic language constructs like indexing into a slice can panic. With little help from the tooling to guard a
837.
▲
by
the_duke
5y ago
Techempower is not a database benchmark. The tests that involve a DB exist to include a DB client in the request flow, not to put any serious load on the database.
838.
▲
by
the_duke
5y ago
> There’s been a lot of antitrust scrutiny on Google and it may have played a role in this change of heart. I'm pretty sure that's the primary reason, which won't change anytime soon. I'd also expect many publishers t
839.
▲
by
the_duke
5y ago
Not ready yet. I hope to open source it within the next few months. Will submit SHOW HN post then.
840.
▲
by
the_duke
5y ago
That's exactly my first thought. But: I'm currently working on a distributed Webassembly runtime. Jolie seems like a great way to describe your whole system. For each service the executed code would be a function exported by a Was
More ›