Better HN
topnewbestaskshowjobs
Log inSign up

ComputerGuru

32,383 karma · joined Jan 3, 2008 (18y ago) · 8,295 submissions

mqudsi on most sites.
Submissions

comment 2y ago · link · parent

I'd take myBB over Discourse.

comment 2y ago · link · parent

Backing up to WARC, HTML, whatever is great for posterity but not much more than that.

Assuming you're a member of the organization and therefore licensed to use the content (but merely unable to access it): Purely hypothetically speaking, if an admin is this mia and obviously not on top of the job, the odds are probably high that they've neglected maintenance. Old PHP server running out-of-date PHP applications... not the most secure combo in the world. I wouldn't be surprised if there were some magic strings you could send to the server to get it to regurgitate the contents of the database in a more developer-friendly, strongly-typed fashion which you could import to myBB or XenForo and continue chugging along..

comment 2y ago · link · parent

Sure. But I'm approaching this from the assumption that we're actually talking "observed/resultant performance" and not "baseline required performance," i.e. talking about "'excess' performance over the required threshold," and if that regresses due to a correctness issue, I don't see the problem. Now what is "the minimum required performance threshold," I cannot say, but it is surely at least the ability to render on "CPU" at 60Hz.

(which CPU? render what? using how much of the available CPU power? with how many frames of latency allowed?)

Note that I don't fundamentally disagree with you and I cringe when I hear issues dismissed as "premature optimizations" myself.

comment 2y ago · link · parent

I've tried to convince the fledgling GUI toolkit world of rust to take a look at XAML. I'm not going to rehash my latest round of comments [0] just yet, but suffice to say that XAML gives application developers and end users such freedom and enables very nice architectural splits that other options do not.

comment 2y ago · link · parent

Performance is a combination of a) required behavior, b) implementation. If an implementation does not correctly meet the requirements, its performance cannot be compared to one that does.

comment 2y ago · link · parent

This is actually the only case where I tolerate performance regressions: where the previous implementation was actually incorrect, rather than merely old or in need of a rewrite in whatever framework or technology is currently in vogue.

comment 2y ago · link · parent

You’re basically talking about the underpinnings of XAML. Terribly underappreciated and completely alien to the FOSS world.

comment 2y ago · link · parent

From the linked Wikipedia, as a more direct answer to GP’s question:

> Modern computers use about a billion times as much energy per operation [than this theoretical minimum energy per bit of entropy “erased”]

comment 2y ago · link · parent

Thanks for the offer - I certainly would be happy to do that.

It's funny, I used to post about this on HN deliberately off and on for years and that never went anywhere at all but this chance response has led to the most fruitful conversation I've had on it here!

comment 2y ago · link · parent

I read your response until near the very end and was itching to replying "but EDM!" before I got to your last paragraph! I actually was lucky enough to be able to use EDM for my initial prototype and I remain absolutely confounded as to what degree of accuracy, precision, and repeatability we're able to get out of this fairly old machining technique (and one that also avoids the z-depth issues you pointed out), but it has its drawbacks. It's insanely slow (though I don't know if machines made this side of 1990 are appreciably any faster) and it's too expensive for anything other than prototyping or one-off bespoke designs, and of course there are limitations to what materials you can cut.

> The only economical way to accurately cut large pieces of thick material [..]

Fortunately for most real-world applications the old maxim about size and required precision being inversely correlated tends to hold.

I was a die-hard subtractive machining zealot but I've slowly come around to appreciating 3D printers and they've made incredible strides in terms of capabilities and accuracy over the past decade. The hobbyist stuff still has some ways to go, but the exponential improvements are hard to ignore and I think it's become a viable suggestion for a lot of things were 2D machining used to reign king, at least where the end goal is to make something and not specifically to machine something.

comment 2y ago · link · parent

Regarding your point about the two transparent strips: they'd be 180⁰ out-of-phase and directly atop of one another? Or would they have an angular offset wrt one another instead? I'm just not sure how the light sensor and light source would be arranged with respect to those colaminated strips. I do get the point about the viewing angle limitations, though. (Super-cool sidebar: I just learned there are optical encoders that use either of the Moiré effect or the Lau effect to make optical encoders that can track position in two dimensions simultaneously.)

The operating principles of my original prototype [0] needed at least some degree of precision in the mechanical components because I had actual mechanically interfacing/interlocking parts, unlike a CNC/laser/inkjet where the head is effectively traveling "unobstructed" in free air (in the case of a CNC, creating its own void to "float" in as it goes along). There were two separate positions that needed to be tracked, the linear position (this discussion) and rotary position (for which a basic rotary optical encoder or a servo could be used).

The design of the prototype itself (machining issues aside) was sufficient for its time (late '00s) where it would have taken the place of a (then) $10-25k braille reader PC attachment, offering more characters while being available for orders of magnitude less but the world has changed so drastically in such a short time that I've had to rethink the design to be less of a PC attachment and more of a standalone "braille eReader" sort of thing, significantly complicating the mechanics and increasing the precision machining requirements. It would be a "page" composed of multiple such braille reader rows, belt-driven and either (somehow) individually drivable so one motor could drive all the rows or (preferably, if the optical encoder BOM costs could be driven down cheap enough) with a separate motor per row allowing for faster "page refreshes" (esp. important because it takes ~no time at all for a user to finish a line of text).

Here the complication becomes switching from internally actuated to externally actuated "braille discs" in a way that allows manipulating each "cell" sequentially with a drive head that moves from the start of line to the end — but also leaves the cells in an immobile position so they're not free floating and don't change when a user glides his or her finger over them to any degree in the y-axis (instead of purely in the x-axis). Additionally the size of the optical encoder element becomes an issue because there is simply not much room to cram things between each row of braille text.

My first thought to allow me to solve all these in one go was to mount each braille disc on an "electromagnetic clutch" of sorts, but I was left aghast at the price of those -- and none were miniature enough for my needs. I then tried to go old-school and use an arrangement of actual miniature magnets embedded into each braille disc so they would maintain their position until externally actuated with enough torque to overcome the magnetic inertia, but failed to prototype that with sufficient precision and couldn't find magnets that would hold strongly enough while being small enough to embed in a braille disc (and forget obtaining them within budget, at least at retail values).

Had (and still have) other ideas but the time/cost difficulties in prototyping and the limitations on mechanical tolerances of the available prototyping methods really put a damper on things.

[0]: https://patents.google.com/patent/US20130203022A1/en

comment 2y ago · link · parent

You have no idea how much this question has been vexing me! I gave up on the development of a public good product because I couldn’t answer that very question (low cost braille reader). I couldn’t get it to work seamlessly without high precision and couldn’t achieve high precision at low cost. Bought a couple of cheap inkjets and stripped them for parts, found proprietary optical strips and encoders, but still couldn’t figure out how they managed to machine/manufacture the plastic/nylon/POM parts to such high precision and still make a profit. In the end, I surmised they don't make a profit off the parts (though selling at a loss is illegal in the EU?) and rely on the cartridges to make money, but the bigger part of the equation is that they probably have those parts manufactured in massive numbers and with highly tuned and optimized designs carefully matched to the manufacturing process and the application.

I even put out ads trying to hire someone that’s worked as an (electro)mechanical engineer at an inkjet company to hire on a contract basis but got no responses. It’s possible those are mainly outsourced - or that the know how turned into domain knowledge that can’t be reproduced these days!

comment 2y ago · link · parent

There are benchmarks readily available if you search “nginx unit php benchmark” (some that show an order of magnitude reduction in latency) without the quotes, but I hesitate to link to any of them as configuring nginx is highly complicated and has so many knobs, particularly with backend upstreams that can be configured in a myriad of ways.

My advice would be to try and see.

comment 2y ago · link · parent

Either time flies or the information I feel I recently read that WP.com was still using LS (which surprised me) was incorrect. I stand corrected.

comment 2y ago · link · parent

Sorry, I didn’t realize I was doing that.

comment 2y ago · link · parent

The UN does not corroborate the accusations you levy against Hamas. Israel has (documented) killed hundreds of UN or general aid workers; to my knowledge, Hamas has killed none.

comment 2y ago · link · parent

Important to understand that Israel is not a signatory to the Rome Statute and rejects the ICC’s jurisdiction (neither is the USA). On the other hand, the Geneva Convention is about as “universal” a treaty as you can find, Israel itself ratified the GV without any reservations, all UN members (US and Israel included) are subject to the authority of the ICJ/World Court, and there’s even a fsir consensus that the GC applies to everyone, even if a state weren’t a UN member and signatory.

(While the USA and Israel have shown immense disdain for the ICC and the USA has levied sanctions against it, its chief prosecutor, and The Hague in the past, the US officially sponsored Khan’s nomination for the post of chief prosecutor this past round and Israel has been extremely chummy with him and the ICC compared to under Bensouda. The ICC under Khan hasn’t done anything about Gaza.)

comment 2y ago · link · parent

An important part of Barak’s involvement is the complete recognition of ICJ’s jurisdiction over the matter, which it found (and Barak didn’t disagree) it had.

comment 2y ago · link · parent

WordPress famously used LiteSpeed (and still does) and the only benefit I know of from the time is that LS has a much better PHP SAPI than fcgi with php-fpm. But now we have nginx unit with native php support (no fcgi), which halves the php-fpm base latency and can be run standalone or behind nginx (via an http proxy over tcp or preferably a Unix socket) so the advantages of an LS (or OLS) configuration are probably non-existent.

comment 2y ago · link · parent

I don’t think that was around back then but I can add it to the backlog of things to try for next round. Does that play nice with rust? Presumably I’d have to at least build the standard library from scratch (which I’d want to do against musl as a separate benchmark anyway since it’s now a single environment variable away).

(Not that the codebase makes much string function usage.)

comment 2y ago · link · parent

I would run away from using glibc on an insulin pump or pacemaker, so I’m not sure what point you’re trying to make.

comment 2y ago · link · parent

Speaking from heavy experimentation and experience, [0] glibc has some more optimized routines but musl has significantly less bloat. If you are haphazardly calling libc functions left and right for everything and have a generally unoptimized code base, your code may fare better better with glibc. But musl’s smaller codebase is a win for faster startup and micro optimizations otherwise - and that’s without lto where it stands to gain more.

[0]: https://neosmart.net/blog/a-high-performance-cross-platform-...

Edit:

Sorry, the correct link is this one: https://neosmart.net/blog/using-simd-acceleration-in-rust-to...

comment 2y ago · link · parent

All dmitry.gr posts are worth reading if you enjoyed this one: https://news.ycombinator.com/from?site=dmitry.gr

comment 2y ago · link · parent

Super cool! Thanks for taking the time to explain.

comment 2y ago · link · parent

I can't take any of the benchmarks seriously when he is using very different hardware across the tests. I can somewhat understand comparing Orange Pi NVMe to the RPi 4 SATA because that's what ships out-of-the-box (but there's an NVMe hat available), even though it'll be rate-limited to USB 3.0 speeds. But I can't understand comparisons to the u59 micro that are actually run on an Intel machine and then not using an NVMe in the Intel for comparison.

This abounds across all tests, from the very first I/O tests that show the Orange Pi 5+ beating both Intel configurations to the OnnxStream test that shows Intel beating the Orange Pi 5+ even though the Intel unit has to load/stream the model from its paltry SATA disk while the Orange Pi 5+ is outfit with an NVMe drive.

comment 2y ago · link · parent

Is there a reason you run both and don't converge on one or the other?

comment 2y ago · link · parent

I archived Hancock here over a decade ago, stumbled upon it via HN at the time if I’m not mistaken: https://github.com/mqudsi/hancock

comment 2y ago · link · parent

I didn't mean it was directly implementing the networking call to the dns server -- just that it wasn't directly caching the result.

getaddrinfo(3) and getnameinfo(3) (guessing that's what you meant) don't implement caching, at least not explicitly in the spec and not normally in practice. On Windows, DNS results are cached by the OS but on Linux that would be distro-dependent behavior and usually requires setting up a local caching dns server (Ubuntu uses unbound out-of-the-box, iirc. Other choices include ncsd and dnsmasq).

Even if they implemented caching at the syscall level, this still assumes no connection stays open for more than 1s or is reused except per query. It seems like a big assumption (at least I hope it is, because I certainly wouldn't want my app to initialize a new db connection, let alone perform a DNS lookup, for every query).

1
363738
277