Better HN
topnewbestaskshowjobs
Log inSign up

ComputerGuru

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

mqudsi on most sites.
Submissions

1471.

‘How am I in this war?’: The untold story of Elon Musk’s support for Ukraine(washingtonpost.com ↗)

8 points · by ComputerGuru · 3y ago · 1 comment

comment 3y ago · link · parent

Reminds me of the Nissan Pivo EV concept from 2005: https://en.wikipedia.org/wiki/Nissan_Pivo

1473.

What New York City’s new Airbnb rules could mean for travelers(washingtonpost.com ↗)

3 points · by ComputerGuru · 3y ago · discuss

comment 3y ago · link · parent

I have a brand new one I can sell you for less of your savings, if you're interested! I was an early backer but I tried it for about an hour before I realized the lack of F-keys and the lack of Esc were just unacceptable for me.

comment 3y ago · link · parent

I personally think it was likely/almost certainly the case. That doesn’t change the fact that without sufficient actual evidence it remains “allegedly.”

comment 3y ago · link · parent

what went unsaid but very heavily implied in the Jitsi announcement was that it was (allegedly) CSAM and not mere spam.

comment 3y ago · link · parent

I had never come across that before - and I’m one of those guilty of spreading this origin story far and wide. Thanks for linking it - I think I have more reading to do!

I suppose QWERTY could very well be incidentally terrible rather than intentionally so (the keyboard travel in comparison to other layouts is genuinely worse).

comment 3y ago · link · parent

Nice work! How much manual SIMD are you using?

comment 3y ago · link · parent

Reminder that if you have any sort of finger or wrist pain, arthritis, RSI, etc the simplest fix you can make is to switch to a better keyboard layout like Dvorak. QWERTY was made to be unergonomic by design and with full intent of making your fingers travel further to type out common words to avoid adjacent keys from sticking if struck in close temporal proximity due to manufacturing limitations of the time.

I switch to Dvorak twenty years ago because I wrongly believed it would make me more productive (as if programming is limited by how fast you can type!) but stayed for the ergonomics. I should, by all rights, have terrible RSI due to how I abused my poor upper extremities in my youth but through the mercy of the lord and thanks to a miserable month or so of pecking at letters like a computer illiterate individual until I learned where the (unlabeled) Dvorak keys were, I have no real issues. On days where arthritis kicks in, typing isn’t an undue discomfort thanks to the sane layout of the keys.

comment 3y ago · link · parent

I mean, it all depends on who you are and what you are primarily doing. “Sane defaults” for one person could be everything another doesn’t want.

comment 3y ago · link · parent

That’s a rarity. Wikipedia sometimes has IPA pronunciations and even – once in a blue moon – audio snippets that I trust far more when I don’t know the language.

YouTube has content farms that produce 30s clips for “how to pronounce <any word under the sun>”. YT used to be a good option before the content farms took over, now I hear some ridiculous pronunciations just for the sake of the clicks and the ad views and can’t recommend it any more.

comment 3y ago · link · parent

It’s faulty app logic, assuming an io error cannot occur accessing a filesystem. They’ll also crash if you have disk issues or driver problems. The important thing is they may not even realize they’re calling into a function or routine that can access the fs for something!

All io access needs to be recoverable or catchable for your app not to crash. You’d be surprised how much background fs activity there can be in apps (or indirectly triggered by apps!) all the time.

comment 3y ago · link · parent

Costs get passed down and distributed all around either way.

comment 3y ago · link · parent

How split is the community over this? I had front row seats to the gogs vs gitea split and it was clear that gitea had the upper hand when it came to momentum there. Is there a similar consensus now?

1485.

Windows Confidential: Aliens ate my software(learn.microsoft.com ↗)

3 points · by ComputerGuru · 3y ago · discuss

comment 3y ago · link · parent

Thanks! None of it is currently particularly in vogue, but it certainly satisfies the research and chasing rabbits^W gremlins down tunnels itches.

comment 3y ago · link · parent

NeoSmart Technologies. Our GUI and web stuff is C# and we’ve been migrating our low-level C and C++ code to rust (no_std rust for most of the C stuff). Some of our existing C/C++ stuff is extremely low level (think bootloaders, virtualization tech, etc) but also cross-platform and we’ve found rust to offer great ergonomics (not to mention safety) without an impedance mismatch under those constraints.

We’re also using rust for cli utilities and non-client-facing backend server stuff.

comment 3y ago · link · parent

I personally would have been surprised to learn that such a thing existed! As a C# and rust developer who has hacked on llvm before, I have to admit that these two languages (and their underlying techs/stacks) are absolutely worlds apart and there is so little overlap between their communities.

I’d have been less surprised if there were a llvm backend for C#, but that wouldn’t exist without an IL LLVM target (because you’d be limited to the language without any (standard) library support.

The first-pass Roslyn compiler is really naive when it comes to optimizations; I constantly marvel at how little optimizations are performed in its first stages compared to what llvm does (the jit is amazingly well-tuned, however). An LLVM backend for C# would make for very interesting learning and research opportunities!

comment 3y ago · link · parent

I was going to say that Microsoft appears to have chosen to address this at the library level with brilliantly optimized frozen and immutable variants of the collections, but you beat me to it.

It probably would have been easier and cleaner to implement some form of `restrict` and `const` semantics (or maybe move, like you mentioned) than to work as hard as they did to come up with a still sub-optimal solution, but the performance they’ve managed to eek out of the frozen and immutable variants is to be commended.

comment 3y ago · link · parent

I’ve been using C# since 2001, before C# 2.0 and its generics rewrite and when J# was a promising star in Microsoft’s eye. There is no “Microsoft bullshit” surrounding the language any more. Microsoft runs it in production on Linux and the language (and runtime) has been transformed.

(If only we could first-class FreeBSD support…)

comment 3y ago · link · parent

The C# tooling is second to none. (I keep hearing rumors of native Visual Studio support for rust, but they never seem to pan out.)

comment 3y ago · link · parent

I’m apparently one of the few that use rust and C# as my language duo of choice; our company has gone all in on both. I think the more common combos are golang/rust, js/rust, or python/rust.

But proper support for discriminated unions (and perhaps something better than the emasculated match blocks known as switch expressions) cannot come soon enough for C# to enter the big leagues.

comment 3y ago · link · parent

That looks like a really interesting experiment! Did you ever do write up of your work? I’m curious how far you got.

comment 3y ago · link · parent

That just automates the generation of the ffi bindings (not too different from autocxx). It’s entirely different from compiling “managed” rust code. It’s like using a C/C++ library with p/invoke vs using C++/CLI or Managed C++.

comment 3y ago · link · parent

If it’s any consolation, Microsoft itself has shipped production assemblies generated with bad IL (for the auto-generated bindings/interop between the Windows 10 SDKs and C#)! Code appeared fine and would run OK until you tried to either R2R or AOT a project depending on that DLL (and it was just a single entry point that was mangled, iirc).

comment 3y ago · link · parent

Alternate title: There’s a Vast Source of Clean Energy Beneath Our Feet. And a Race to Tap It.

An enlightening read!

comment 3y ago · link · parent

Do you know what replaced it?

comment 3y ago · link · parent

They didn’t test the backups they were actually using, but a separate backup made completely separately to reassure themselves that <something>.

comment 3y ago · link · parent

PET(E) and HDPE are both extremely recyclable (not in the infinitely recyclable approach but in the “have lots of long second lives” approach), though something like only 30% of HDPE ends up getting collected for recycling in the first place.

This Argonne National Laboratory article is more pessimistic but maybe because it’s trying to hype up a recent breakthrough which actually makes HDPE infinitely recyclable: https://www.anl.gov/article/scientists-enhance-recyclability...

comment 3y ago · link · parent

But rarely recyclable, not due to chemical composition but because the bags get caught in the machinery.
1
495051
277