skysight-inc/HackerNews huggingface dataset:
condition is an invariant. Unless using cranelift or gcc, it's going to get optimized away by LLVM unless rustc is giving it some non-invariant constraints to solve for. Most compilers, JITs, and interpreters can and do do invariant optimization.

Another way to look at the class of problem: if you're using too many conditionals too similarly in many places, you may have created a god type or god function with insufficient abstraction and too much shared state that should be separated.

---

Prime directive 0. Write working code.

Prime directive 1. Choose appropriate algorithms and data structures suitable for the task being mindful of the approximate big O CPU and memory impact.

Prime directive 2. Write maintainable, tested code. This includes being unsurprisingly straightforward.

Prime directive 3. Exceed nonfunctional requirements: Write code that is economically viable. If it's too slow, it's unusable. If it's somewhat too slow, it could be very expensive to run or will cost N people M time.

Prime directive 4. If it becomes too slow, profile and optimize based on comparing real benchmark data rather than guessing.

Prime directive 5. Violate any rule for pragmatic avoidance of absurdity.
My partner is a GP and it is very common for patients to come in and, rather than describing symptoms, will ask directly for antibiotics. They can be quite pushy when she says no, so I imagine some doctors take the path of least resistance and just prescribe them.
You don't really have to get a physical one anymore. I got an eSim from Airalo in several different countries and they worked great.

The only downside is that u can't do iMessage from your actual number.
Have you tried LIBGL_ALWAYS_SOFTWARE?
Show HN: Too Phishy – a phishing detection add-on for Gmail
Hi, I'm Lydia!

I created Too Phishy to improve my ability to detect cleverly made phishing scams. I needed a tool — one that was easy and intuitive — to help when my better judgement wasn't enough.
I guess? But neatly packaged and pre-configured.

I mean, technically, every Linux distribution is “just a(nother) live cd” with a slightly different configuration and some custom packages thrown in. To each their own, yeah?
Emphasis on "might" and "generally" in the OP :)

> my landlord managed to add $700 onto our controlled rent through really shady/shoddy/fake building improvements

Ugh, your story is not uncommon sadly.
Yes but our default USB HID stack isn't made for it. USB is not good for sub millisecond latency.

If you make a keyboard that can send signals fast-clocked over wire to PCI interface card and use polling in the driver you can go as fast as you want. A microsecond poll is not a burden for the CPU core.
that's not how information theory works
I've been thinking recently (in part inspired by Penrose and other recursive universe theories): what if we can effect the trajectory of this current universe such that the next universe that is created has definable properties. As a highly improbable example I use only to spur imagination, what if we could control the next big bang so precisely that a solar system exactly like ours would exist containing humans just like us.

That would lead me to speculate that if we were looking for messages from the previous universe (in the style of the movie/book Contact) then we should look to the signature of the background radiation (CMB). Imagine a previous universe left us instructions there to help us achieve this, and perhaps therefore to achieve some objective that spans multiple universes (i.e. some objective too large to complete within the lifespan of a single universe).

If that isn't a sci-fi book then it should be. Also maybe an interesting area for legit academic study (e.g. how to imprint instructions in the CMB to pass along to future universes).
thanks! ... just like SSO -- it does not seem hard in a demo that has made it easy!
Conditions inside the function are also in line with Postel's law, if we drag it from networking to API design. And in large parts of programming the entire "enforce it with types" (say null check without saying null check) isn't a thing at all. It only gets worse with languages where api evolution and compatibility is done by type-sniffing arguments. Those will just laugh at the idea of pushing an if up.

But it's an interesting discussion nonetheless. What I picked up, even if it wasn't directly mentioned (or I might have missed it?), is that a simple check on the caller side can be nice for the reader. Almost zero cost reading at the call site because the branch is a short one, and chances are the check provides some context that helps to understand what the call is all about:

if(x is Walrus) frobnicate(x);

is not just control flow, it doubles as a friendly reminder that frobnication is that thing you do with Walrusses. So my takeaway is the check stays in the function (I also don't agree with the article), but make it a part of the naming consideration. Perhaps "frobnicateIfWalrus" wouldn't be so bad at all! I already do that occasionally, but perhaps it could happen more often?
Framebuffer is one such layer. The output from the emulator goes into a framebuffer before being rendered. It's not going to "race the beam" the same way a FGPA'd VIC-II would.

Same with USB input stack, though I guess MiST/Mister has that too.

Same with SID emulation, which would render into audio buffer samples of certain size (and therefore latency), whereas a hardware or FPGA SID could drive the DAC directly.
The Thomas Keller method was on Instagram all summer and I tried it really liked it. Sprinkle with salt 20 minutes before cooking and a lot of the water content will come to the top, wipe it off. Then you can carmelize a lot more with butter or high-temp oil (avocado for example). Tastes a lot better this way
Motors know nothing. The encoders know how much current is being input to the motor, but do not know the rotational output of the motor or the friction coefficient between the tires and the ground. All three are things you'd need to emulate a locking differential in software. You could fake the last two by having a reliable way to measure the travel of the vehicle from a source other than the wheels (GPS, downward camera, etc).
If you're traveling international you should just use an esim app instead.
This is because unifying the display manager, compositor, and window manager allows for each implementation to be far more integrated. For example, this opens up the door to virtual-reality or mixed-reality Wayland display managers, that can run desktop apps without the usual overhead of screen capture. Xorg can't do that. Trying to make Xorg do that will only end in misery.
There's an equal percentage of women who are awful prospects for marriage and/or raising children. Men are the breadwinners and feeding them, even if there is a divorce through child support.
Why aren't the women dating and marrying the men in their league?
NPR is just nice and comfortable people telling themselves comforting stories. Truth isn't the point, it's about feeling ok, like the world is in order, no matter what.
The demographic collapse has little to do with housing. Even people with zero financial obstacles want 1-2 children at best.
IANAL but you are correct about membership in an LLC--it does have tax implications, but only once you are generating revenue. This is also true of an S-corp. The typical approach to dealing with members/partners in these sutuations is to do cash distributions to cover taxes. We did this in our company for years until we were acquired.

You need to talk with a lawyer and an accountant about your situation. Organizing as LLC, S-corp or C-corp has subtleties that you need to consider beyond taxes.

Cheers!
This is why, if work wants me to have cellular connectivity, they can buy me an appropriate phone and plan to go with it. It's not my responsibility to have a high reliability plan on my personal phone if I don't care (and I don't - I currently carry a flip phone).

I've played the "combined personal and work phone" game in the past, rather extensively, and have come to the conclusion that it's a sucker's game, because it means you always have access to work - and will therefore spend a lot more time thinking about it than you would with separate devices.
I love this advice, moving if statements "up" is something I've observed makes a big difference between code that's fun to work with and easy to maintain, and code that quickly gets unmaintainable. I'm sure everyone's familiar with the function that takes N different boolean flags to control different parts of the behavior.

I think it really comes down to: functions that have fewer if statements tend to be doing less, and are therefore more reusable.
Whether marble or clay, both ideally take into consideration the fact that he/she who write it today may not be he/she who maintains it tomorrow.

When stuck between longevity v less durable, maintainability should be the deciding factor.
The USA would certainly bomb it if they had to
Here's some good critique of VAERS. Please note he rebuts common arguments against his analysis in the text.

https://researchrebel.substack.com/p/cdc-finally-released-it...
T-Mobile Connect prepaid has low prices ($15 for 3GB) including hotspot usage. No MVNO. It was a gov-mandated condition of the Sprint merger. No international coverage. Wi-Fi SMS/voice for international use on Wi-Fi or data eSIM. Monthly data quota at each tier increases by 500MB in 2024 and 2025.

For basic international coverage, reloadable prepaid eSIMs can be purchased online, some with international roaming. But high latency back to the originating telco can make those unusable for voice traffic. Good enough for web/text. Sample price: $75 for 15GB for 365 days, in 144 countries. Use with VPN to make traffic opaque to random telco selling the eSIM.
> If wholesale electricty prices are very high (as they were e.g. shortly after Russia turned the gas off) the wind generators actually have to pay the government because the contract is for the difference.

In practice this seems to be capped at zero as when the price goes negative the producers simply don't produce energy.
They buy capacity that is little behind and optimized differently. Apple and Nvidia buy the bleeding edge and develop it with TSCM.

Azure Maia is TSMC N5, I think.

Nvidia H200 and H100 are TSMC 4N.
In other news, the Ford Mustang is not a horse
The apps need to actually talk to the server, which means they need to also know the protocol for it.
For regular apps the toolkit (Qt / GTK / GDI / Cocoa) handles it. They hide the inner bits of the underlying OS / Graphics API from the apps. Web nowadays is a very free-form environment coming with cross-platform APIs. Using platform specific API and toolkits will create inconsistencies and performance issues. So browsers come with their own rendering engines that uses lower level APIs like Directx and OpenGL. To access GPU video decoders etc., they also need to use those lower level APIs anyway.

Regardless of the OS, when the applications want to directly render things they have to communicate with the lower level graphics backend (Wayland, X, DWM, Metal etc) to agree on a memory area and pixel format and some other things. The OS, the direct rendering system and the window management system together manages what application gets the rendering signal, what area, at what display with what metadata (e.g. DPI, or pixel bits) it is drawn.

Since browsers are writing their rendering system and the components from scratch (not everything, they still use some system GUI components or text input / font rendering stuff), they need to communicate with the lower layer directly to request screen areas to render, to get the correct display DPI/scale to draw things at the correct size with well-aligned pixels and to utilize various hardware stuff like hardware video decoders.
ISA doesn't imply performance characteristics.

It's like saying that programming language (syntax) has performance implication.

No, it doesn't. Everything is up to the compiler, runtime and standard library.

Of course there may be some feature that make compiler's life easier, but still things are way, way more complicated than "just take ARM ISA and you'll be king".

https://chipsandcheese.com/2021/07/13/arm-or-x86-isa-doesnt-...

Also even if you assume that ARM has 1-2% better perf than x86, then how many people will risk transition over that? Some will, but majority will no.
Doesn't that treatment mean medication they want? Mind altering drugs. Some ADHD medication seems to be a weaker version of Speed
Her point is the pro-natalism view common among business leaders like Musk and Thiel, not that it's a common view among regular people.
Google Fi has provides service internationally at no extra charge, and I've never had any issues using it as a hotspot.
> It's not a fetish... it's the point. If government promises to punish transgressors, then individuals will refrain from vigilante justice.

Punishment itself isn't the problem, some people should be punished with prison time. The people who fetishize punishment aren't content with restricting people's freedom, keeping them separated from the their loved ones, and having years of their life lost. They know that prisoners are beaten, and raped, and kept in solitary for years, and forced to eat rotten food infested with maggots, and are denied basic hygiene or healthcare, and are being cooked to death in cells without AC, and they'll actively oppose any efforts to improve conditions for inmates. We knowingly allow prisoners to be tortured year after year and decade after decade and it isn't because nobody wants things to be that way.

> Who am I supposed to talk to to get the policy fixes implemented?

It's a problem because politicians know it's popular to be as tough on crime and as cruel to prisoners as possible. People like Joe Arpaio (https://en.wikipedia.org/wiki/Joe_Arpaio) get elected again and again because they're abusive sadists hurting the "right kind of people". If you can find someone willing to run on prison reform you can back them, but otherwise all you can do is reach out to your representatives. Your proposed policy fixes all seem like great ideas.
Wow, that's amazing :) I will watch the talk today but.. amazing work! :)
The article disappointed me and did not live up to its "at scale" title. At best it repeats the happy-path official documentation, and where it deviates it's for the worse.

I have spent some time administering Redshift. I agree with all gregw2's points. Except for leader node CPU utilization which I've never seen go above 20% even momentarily.

A tip: prefer a larger RA3 node size to having more nodes, e.g. two ra3.16xlarge instead of eight ra3.4xlarge. (This goes against the advice I received from AWS support.) This will give your cluster a beefier leader node for free. Larger worker nodes can also help with a skewed query that would be starved for RAM on smaller nodes--some of my biggest analytical queries tripled in execution time when I tried them on a same-cost cluster with a smaller node size.
It's a very long story, but yeah, its about how the applications on your desktop can draw content inside their borders, and how those applications interact with things like keyboard/mouse/other applications drawn on the screen. One of the big things is that X11 was written for a time where everything was open with no access control. Any application can view any other application, or capture any keystroke. Wayland introduces a form for permissions control, which has been a huge ordeal to both pave the path for and to design and figure out how on earth that should work. It's great though that you can have some actual control on who can listen to keystrokes and not.
>FWIW, the current king of single core Geekbench is the M3 chips

Are we reading the same scores?

https://browser.geekbench.com/v6/cpu/singlecore
Ah, my bad, thanks for pointing that out.
There are a couple of these already - Danswer and Khoj are a few.
Follow Jesse Anderson's Extra Focus substack (there's a book too), his newsletter helps you understand ADHD much more than anything I know of. And there are useful tips too. Remember, if it works for you, it's not weird :)
> I don't know how I feed about cloning the voice of a living person,

I would like to hear it generate Kevin Conroy (R.I.P.) vocals for Christopher Nolan's Batman movies.
If the daemon was running, it would ping a central server on a schedule and report its status, the response from the server was if there was a new version available (with the binary in the response), or not. This combined ping/update service really cut down on the overall traffic, and failures.

If the machine had crashed, it would start up, start my daemon, and that daemon would start the ping/update process all over again.

A large portion of the machines were iPXE booted... so, just reboot was one option and it would all start from scratch again.

Yes, some of the boxes had flaky power supplies or would fail an ssd, and that would cause a technician to go out and manually fix things.

I found it was critical to think of everything as eventually consistent because my hardware was boxes with 12 GPUs and they were flaky and would crash the whole box randomly. I got used to boxes rebooting hundreds of times. My process would also auto-tune the GPU for stability too, changing clock/power settings until the individual cards would become stable and stop the crashing.

The only time I had problems was when the daemon was dead. I had a dashboard where I could see which machines hadn't reported their status. It was easy to pick those off by hand.
CertiPort changed their certification verification, and I was confused
I'm posting this because it will affect quite a few people here.

They still ask for my Credential ID, and that's on my printed certifications.

They also ask for my Student ID, and you (the test taker) can find that when you log into Certiport.com under your Profile. Mine was blank.

Then they ask for my birthday, and I know that.

So, if you want to verify someone's Certiport certifications, you will need their StudentID and their DOB. You may need to tell them where to find their StudentID.

If you want someone to verify your Certiport certifications, you will need to look up your StudentID, then give them your StudentID and DOB.
This has been my plan over the last few months! Finding a cheap PCIe 4 motherboard + CPU with many slots has been a challenge. Need PCIe 4 or else you’ll quickly saturate your bandwidth. Even with PCIe 4 - you still can. The fastest (affordable) network solution means using 10 GbE - which can be saturated by just one modern gen NVMe SSD :-/
> Though reading all those devs tweeting that they were switching to Godot and tweeting 5 minutes later, "Oh no! How do I get Godot to do [thing Godot absolutely can't do and never will]." was marvelous entertainment.

I’m curious what Unity can do that Godot “never will” be able to.
This is already happening with IT maintained systems though... As specified in the article. So it really isn't an argument imo.

IMO, companies should have a language of choice which is actively encouraged to be used by everyone for all automation needs. Different departments build libraries to automate aspects of their jobs and other departments can use them if needed. I.E. it becomes yet another tool, just like Excel.
His potential clues of CCC (the cyclic universe) in the CMB turned out to be incorrect.

So as of now, this theory is not supported by anything.
If thier project is an inspiration and you did not credit them then in my opinion that is a bit of an ethical problem. The other thing that comes to mind for me is that if you were inspired by their project why to contribute to it rather than create a copycat?
This is unfortunately true.
I think I would like the former syntax. Witness one of the several nested matching situations I run into:

https://github.com/titzer/wizard-engine/blob/master/src/engi...

This would be much, much better if Virgil had pattern matching on tuples of ADTs.
there is an arms race and some fig leaves
I'm not terribly interested in truisms, I'm more interested in figuring out what AIs actually cannot fundamentally do, if anything (present or future).
Fedora 40 Looking to Change Linker to Error Out on Security Issues
Almost all workplaces I have worked in insisted on having a sick certificate even for a single day. Several times I was asked to come to work for a few hours even when quite visibly ill.
>are now coming round to Arm because it really does make a better product i.e battery life and thermals.

ISA doesn't imply performance characteristics.

It's like saying that programming language (syntax) has performance implication.

No, it doesn't. Everything is up to the compiler, runtime and standard library.

Of course there may be some feature that make compiler's life easier, but still things are way, way more complicated than "just take ARM ISA and you'll be king"

https://chipsandcheese.com/2021/07/13/arm-or-x86-isa-doesnt-...
I got it for $25 about 25 years ago

It's a pretty cool machine but I assure you it's extremely useless these days.

The TIFF format it uses, for instance, no longer supported by imagemagick. It doesn't support modern DNS resolution and if you want NFS you'll need a legacy v3 server.

The Ethernet is a blistering 10baseT and the SCSI drive doesn't crack 300MB.

The ssh server exists but modern clients no longer support it's archaic protocol.

You've got perl and zsh, that's nice. There's also some antique Apache for it so you can use WebDAV and you can get it to play mp3s in real time if they're mono channel and under 32khz (yes, that's what I meant)
I've been using a discount, prepaid MVNO since 2012, and I'm stunned that so many people in my real-life social circle still haven't heard of these things and just keep paying the "big carriers" multiples of what I've always paid for essentially the same thing.

These days my cost is down to just $5 per month (Red Pocket GSMA annual plan). 500 MB of data is plenty for messaging apps, driving directions, and very light web browsing when I need to look up things while on-the-go without WiFi.
I wish we had less posts here about how to obfuscate and more about how to deobfuscate.
https://www.cnbc.com/2023/06/01/microsoft-inks-deal-with-cor...

https://www.reuters.com/markets/deals/microsoft-inks-computi...
Huge frustration at whoever edited/shot that video. Frequently zoom in exclusively on the speaker when he is actively diagramming a visual he built. Miss several scenes he was presenting.
There's also a pathologizing of human behaviour, or things we could call Personalities.
Boys at a certain age can have difficulty sitting in a classroom and focusing on classes for 6 hours like their female counterparts, and can be diagnosed with ADD/ADHD. Things that they "grow out of". This isn't to say ADHD doesn't exist, just that there is misdiagnosis
Not technically, but I would not be surprised if some cops looked the other way.
Totalitarianism would require the government to do the censoring.

You can't assume the government wouldn't censor based on the exact same criteria.

An entity with control will exercise it.

When it's a private entity there's a theoretical other place you can go. When it's public (government) there is fundamentally no other place you can go.
It doesn’t get as much attention but it’s the one that the average HN’er is much more likely to end up using.
> With some modes (even FT8, not just stuff like WSPR), that's enough to reach around the globe.

I semi-routinely spoke to Japan with SSB using improvised antennas in the field with 10W.

Elecraft KX3 + Buddipole Deluxe. Doubt I was very efficient, though I did try to get a couple good counterpoise wires going.