skysight-inc/HackerNews huggingface dataset:
> This seems like a bad idea, because the whole point of an assert is that something shouldn't happen, but might due to a (future?) bug.

And so it’s a bad idea because…?

The whole idea is to notice a bug before it ships. Asserts are usually enabled in test and debug builds. So having an assert hit the “unreachable” path should be a good way to notice “hey, you’ve achieved the unexpected” in a bad way. You’re going to need to clarify in more detail why you think that’s a bad thing. I’m guessing because you would prefer this to be a real runtime check in non debug builds?
ThinkPad Laptops and Linux Guide 2023
Are you not allowed to refinance other than at the 10 year mark?
Ask HN: Why cloud GPUs have low availability?
Runpod used to have high availability of 4090 GPUs just about a month ago, but it seems like something has happened that has made almost all of them become unavailable. Now when I want to deploy my model, I get "low availability" messages and sometimes the instance doesn't even boot up correctly.

I tried vast.ai as well but the way they do things is rather primitive and unprofessional in that there really isn't a straightforward way to get into your instance and install booga or whatever. Their SSH failed every single time as well.

I don't know what other options are available for people who want to run research on LLMs and don't have the budget to purchase a big GPU (even if it were available...).
The city would be a 40-100km ride.

As mentioned regional transport is spotty at night and even then you are probably looking at a 15-30km trip from the nearest stop on 80km roads with small shoulders. It's also completely out of the question for the 6-7 months a year snow is on the ground.
Or the other way around: imagine you are the "owl" type (I'm not sure it is called this way in English; let's say https://en.wikipedia.org/wiki/Delayed_sleep_phase_disorder) and you are forced to live your entire lifetime in a sleep deprivation.

My life quality went up when I was able to push most lectures at the college from 10:40. In high-school, we were starting at the "standard" 8:00 and sometimes even 7:05.
As others have said, you can run a sidecar container and proxy your current containers through the sidecar, and into the Tailscale network. They are universal in that the docker containers can run on any docker host, not that they are guaranteed to mesh/drop in and run inside whatever random containers you already run. Not sure why I am being downvoted for asking a genuine question out of curiosity…
i never thought about that, saving bytes even in symbols
I'm afraid you are only slightly correct.

Architectures are generally optimized for aligned access (or disallow unaligned access), but what counts as "aligned" is different for each type.

A char type that is used for a bool can be accessed on any byte boundary because the alignment of a char is 1. The alignment of a 32-bit value is 4.

However, architectures are generally more optimized for 32-bit operations in registers. If you're dealing with a char in a register, the compiler will generally treat it as a 32-bit value, clearing the top bits. (This is one of those places where C's UB can bite you.)

However, there are architectures where 32-bit access is optimized.
I have used PyO3 for my Rust code to calling into a Python SDK api. It works like a charm.
Anecdata from my own (fairly extensive) podcast subscriptions:

- Pods that have long been advertising-free now carry ads. Notably Douglas Rushkoff's Team Human and Stephen West's Philosophize This. As someone with an extreme aversion to advertising, this is highly disappointing in both cases. It also means that I'll only listen where I can skip forward through ad spots.

- Pods that have carried ads ... seem to both be highly inconsistent in the length of pre- and post-roll spots (15 seconds? 20? 30? 60? 120 seconds? Make up your damned minds). Increasingly I'll set a long intro skip and seek back in smaller increments to find the session start.

- Pods that have carried ads ... seem to have increasingly prevalent skipped spots. "We'll be back after a break" often has ... no break.

I'm seeing this across numerous podcasts and publishers, and the practice seems to be increasing. I'm only suspecting that both general podcasting economics and advertising markets are less favourable.

Also: Least. Favourite. Ad. Insert. Evar.: the cold break in the middle of a sentence to an ad spot. This shows up increasingly on a few otherwise much-liked podcasts, and is immensely frustrating. Given I'm not going to listen to ads already, the more intrusive and annoying they are, the less likely I am to listen to, and rate/review/recommend a given podcast.

Yes, I really wish there were alternative support models that were widely viable. Academically-sponsored podcasts (The History of Philosophy Without Any Gaps), or those with short voiced promos (part but not all of David Runciman's Podcast Universe ad inventory) are hugely preferable to pre-recorded spots, which are an instant turn-off. I'll listen to (and even mention in HN comments) Runciman's promos for the London Review of Books, which is an increasingly relevant and refreshing island of sane contemplation in a rapidly deteriorating Web. But other third-party spots ... just ... no.

Gwern had a fascinating study for textual online content that showed advertising cut exposure by about 14%. I suspect there's a similar dynamic in podcasts.

See: <https://gwern.net/ad>
JAWS is very well-known, and well-supported. Web sites are often tested against it.

There’s something to be said about having a well-known system, as it cultivates a great deal of “tribal knowledge,” and that can be invaluable.

That said, I think that we train ourselves on whatever platform we use. Both Windows and Mac have fairly comprehensive support for Accessibility. I think Apple is newer to the game, but the granularity of the options in the latest OSes is pretty crazy. Not just for blind folks; but for all kinds of disabilities. I’m confident that Apple takes accessibility very seriously.

I like to leverage accessibility and localization in my programming.
I've been programming (and gaming) 40+ years now, and weirdly, the main RSI injury I have is actually from when I was a kid using the Atari joystick as a left hander (this one https://upload.wikimedia.org/wikipedia/commons/3/33/Atari-26... )

now any fine motion where I need any kind of pinching motion for more than 30 seconds is super painful and by thumb pretty much gives up (using my thumb to tap the spacebar on the keyboard is fine though).

Since learning about RSI about 30+ years ago, I regularly exercise and stretch my hands, so I think that has helped a lot.
If he thought he was buying a technology company, why did he spend so much time insisting the tech stack was garbage and the engineering staff incompetent? Aside from those, what other reason is there to buy a tech company?
But we have a specific word, patronage, to describe a payment that is specifically NOT for work, and of course a platform named for that my might reasonable consider payments on it patronage not payment for work.
I've tried kitty twice, both times I found it confusing and went back to anything else
Banner Ads Considered Harmful (2017)
You literally just said “they were enabled in their crimes”. That is victim-blaming.
It also reminded me of gundanium. I wonder if cold welding inspired it.

https://gundam.fandom.com/wiki/Gundanium_Alloy
Most of the time an easy optimization is to pad fields of your struct to a 32 bit boundary. Almost any compiler will do this for you (look up "struct alignment / padding"). If the compiler is going to do this anyway, might as well use the memory yourself instead of letting it be empty space. If it doesn't happen, you leave performance on the table, so doing this raises the chance that your struct/fields will be aligned.

Nuance is that each field should be at an address divisible by the fields size or wordline size, not some magic 32 constant. The entire struct should also be padded to a multiple of the largest fields size. In practice this usually means 32 bit alignment.

Ref http://www.catb.org/esr/structure-packing/
inoremap kj <Esc>

:)
Well I think it kind of is an issue if lonely isolated humans turn to AI for support in their crazy delusional beliefs, and they then go on to carry out crazy acts that result in some kind of harm one way or another.
You've exclusively described contexts with tons of active stimuli (temperature, interoception, balance, and frankly most of the other senses you named).

But more importantly, suppose we grant that humans function independently of stimuli. Why does that matter? How does this premise imply anything about an agent's capacity for internal experience? In the counterfactual where our brains don't work when surgically placed in life-support vats, does that mean our prior experiences weren't real?

I'm genuinely so confused at this connection between subjective experience and the necessity of stimulus.
I have been pretty happy with the Solo Stove, but there are lots of options now.
Did you pick up the practice? If so, what are your thoughts after doing it for some time?
I'd say the original Alpaca paper is a good source of inspiration on how to create datasets, they even shared the script used to generate data using OpenAI API.

One thing that came to mind for creating datasets for other programming languages would be to start with this Python dataset and use GPT-4 to convert to equivalents in other languages. You can even automatically test each generates example and ask GPT-4 to correct any errors
Who pays for those problems to be resolved? It’s literally what property taxes fund. Why would property owners pay to solve a problem they don’t have to make their town a worse place to live?
But in doing so you’re doing precisely what I’ve referenced as leading with ideology.

You are making assumptions about funding being the issue based on what you think should work and then attacking my argument by justifying your belief with assumptions to support the conclusion you want instead of letting the data and the facts lead.
Shades of mp3 dot com, which was once the Bandcamp of its day but now is owned by CBS Interactive and has been basically become a parked domain. I hope it doesn't go the same way.

ETA:

Of course, history doesn't repeat itself, it just rhymes. Mp3 dot com embarked on a music locker project that basically got it killed by the RIAA, and Bandcamp didn't repeat that mistake.
Not a new problem: https://en.wikipedia.org/wiki/Scunthorpe_problem
Every single person who has this "you don't need state" take on IaC seems to be missing one key point.

They haven't built it, because it's really really hard to do.
the corrupt media will publish anything for the right price
This is an excellent writeup. I especially like the string treatment and the fat-pointer struct parameters and return values.
After using a keyboard with Esc even further away than usual, I've found myself using Ctrl-[ more often. I should look into remapping capslock.
This is the use case for `uint_fast8_t` (part of the C99 standard); it should use whatever width of unsigned integer is enough to store a byte, but fastest for the platform. You always know that the type can be serialized as 8 bits, but it might be larger in memory. So long as you don't assume too much about your struct sizes across platforms, it should be a good choice for this. Although, if alignment is an issue, it might be a bit more complicated depending on platform.
'Nanotwinning' produces stronger metals (2022)
You did leave them out because most people _want_ electricity in their datacenter, or have DR, etc. These aren't free.

And colocation is not free -- you pay for all of those things on top of the hardware you have to plan for peak cycles on. Nor what you were talking about in the OP, hence ignoring colo. Please don't move goal posts. This is HN, not reddit.
Underground or overground the answer to the question you posed ( "Why would you test them near where someone lives?" ) is, from past experience, because we (for various values of 'we') just do.

Actual tests of real weapons (not simulations) underground collapse mountains (North Korea) and affect fault lines, sub surface water flows, etc - these things will likely affect some people in a 200 km radius - and places with no one in that vicinity are hard to come by - generally you move people off their islands, off their land, or simply don't care.
"rsync algorithm"
Caps lock is such a waste of prime keyboard real estate, even for non-vim users!

For those who don’t use vim, just switching caps lock and control is probably better so you can copy and paste with less contortion.

For vim users, I highly recommend remapping caps lock to be control when held, and escape when tapped.
Finder emblem?
Maybe we are talking at different levels.

The people theorizing that the brain is Bayesian are not saying that humans do it consciously. Like they can examine priors and making decisions.

It is just that the neurons in the brain update in a way that can be modeled roughly as Bayesian. It happens without us 'deciding to do it', it is just how the brain updates to process the environment. It is happening continually, as we take in senses, and update our internal model.
I still don't buy the reasoning, I think it's so that they can put up no turn on red cameras to generate revenue.
It looks like when you try to look up for "Wije" on google. But you dont want to get results for drinks lmao
You get on stderr:

failed printing to stdout: No space left on device (os error 28)

and if stderr is borked, you still get an exit code 101 (Rust's code for a panic).
Again, if m2 is enough for you, you're not the target audience.

Some professionals have workloads that require more multi core perf (not to mention proper Linux support). And running those dead silent is trivial.
I think he is suggesting the opposite - use more verbose names for clarity.
Like the federal penalties that ended bank robberies, drone strikes against individuals belonging to ransomware groups is the most apropos deterrent given the nature and scale of this form of criminality.
Interesting that you guys are the same people behind Whist. I once interviewed there at your behest, and never heard back. It seems like that venture fizzled out?
> signed sizes are the way

Well, I should probably just say "We're done here." and stop reading the rest of the article. "Signed sizes" are an extremely surprising abstraction break that are just asking for disaster.

> No const. It serves no practical role in optimization, and I cannot recall an instance where it caught, or would have caught, a mistake.

Should you even be writing C if you haven't hit this? People mix up "in buffers" and "out buffers" all the time. "const" flags this immediately.

> Declare all functions static except for entry points. Again, with everything compiled as a single translation unit there’s no reason to do otherwise.

And when you go trying to debug something and get at a variable or function that you can't find because everything is "static", you'll curse the one who wrote the code.

> Another change has been preferring structure returns instead of out parameters.

Which is a great way to accidentally return a pointer to your stack and open a big ass security hole. Passing in the output buffers makes clear the ownership semantics.

This guy seems like he mostly writes code for 64-bit systems. The coding advice is ... okay, I guess? Maybe? In that domain?

In a 32-bit embedded domain, some of these guidelines are a good way to get youself into a lot of trouble in a real hurry.
Newsom vetoes bill that would have decriminalized psychedelic mushrooms
Not the GP, but the pixels on my 43" 4k TV are just slightly smaller than those on the 1080p monitors it replaced. I have the TV positioned about an arm's length away. It's farther than the monitors it replaced. And it's far enough away the I don't have to crane my neck side to side. (To that end, I also use a tiling window manager and have ~3 inch gutters on the side.)

I love it and it's just a $200 TCL TV that happens to have good response (thanks rtings.com).
I have the runner set to poll every 60 seconds, so it's not using any real resources unless it's running a build. Gitlab itself is the heaviest consumer of resources, however, having the integrated CI system is worth it for me. I use gitlab at work, so it's familiar.
What if Gandalf Took the Ring? [video]
This struck me as if it was written by an investment banker, so I looked up the author, and confirmed he was indeed an investment banker prior to joining Sequoia.
Have you tried AWS? Or other big cloud providers?
Argonne prepares for exascale supercomputer simulations of nuclear reactors
Yeah, you're not kidding! I don't think it was their intent to force 'boomer mode' text.

I had to manually edit the stylesheet to change fontsize from 2vw to 1vw and it looks fine (reader mode is a workaround too). My guess is they did this as a shitty workaround for high PPI screens that run 200% scaling, but on more common pixel density screens we get beachball sized text.
HTTPie Desktop: cross-platform API testing client for humans
I might just be a grumpy old dev but a lot of this stuff gets an immediate no from me because it’s so unidiomatic. You have to unlearn the accepted way of doing things and you end up with a codebase that is just so foreign to anyone looking at even a small chunk of it, unless they are committed to really learning to do things your way.

Everyone knows what a uint32_t is when they see it. The cognitive overhead (until it becomes second nature, obviously) just feels like a heavy price to pay in order to save yourself a few characters.

(Some other stuff in the proposed coding style still gets a thumbs up from me, though.)
Benevolent dictators
It isn't that. It is just "working on this makes me feel bad, so I will avoid doing it." There isn't an expectation that tomorrow it will be easier. I just want to work on a different thing that doesn't make me feel bad right now.
It doesn’t have passwords at all. You log in by clicking a link in the email.
Works wonderfully, low-ish latency, quite amazing to have a monitor always with me.
How do you breathe with this thing? Can it also filter the air like a HEPA filter?
I agree, it is kinda weird. For anyone curious, the relevant css property on the site is:

body {
font-size: 2vw;
}

This sets font size to be 2% of the viewport width, which means if the text is too big you can try resizing the browser window to be narrower to make the text smaller.
This perfectly describes my typical experience using the internet in 2023.
My partner suffers from this. She tried many solutions but to no vail. But it seems having an intentional period of wind down before bed (e.g., 1 hour on the couch, scrolling social media and listening to podcasts) helps. When she goes to bed after that, she never uses her phone and can sleep much better.

I'm in the same boat except that I only go to bed when I'm absolutely completely drained and exhausted, which is probably not good...
Once you have a way to identify what you ignore, or rather what you are more likely to engage with, it will be optimized by producers.
So essentially if you break a metal rod in space you can just stick the broken ends back together and it fuses up again.
There are lots of journals out there that provide a daily prompt. Day One (from Automattic) is pretty nice and you get basic functionality for free.
Dunno, but I've heard that tongues can weld themselves to icicles on Earth.
Is there anything that prevents it though?

If not, I assume someone would have written a 3/1 ARM with predatory early repayment provisions, so I'm guessing there's probably a conformant mortgage guideline (e.g. from *Mac) that prevents clauses like that.
To add to that, while Portugal is now often brought forward as the “poster child” now that efficacy stats benefit the “law & order” types, a lot of Western European countries have way more compassionate laws and regulations on drugs and far outperform the US both in stats as well as the boots in the ground situation on the streets.

As per usual this is presented as a “uniquely American” issue, when in reality many other countries have found solutions to mitigate the issue.
While the recorders aren't produced anymore, the blank recordables (non-HiMD ones) still are. There's enough demand somehow I guess in Japan market (look for MDW80T if you want brand new ones).
TISM made me the Amway sales rep that I am today: https://www.youtube.com/watch?v=ZxoODPQ4CTM https://www.youtube.com/watch?v=Ijx_tT5lCDY
Don't think I can call this a guide, it advocates for linux on thinkpads and the 16:10 screen ratio then throws in the standard links for linux on thinkpads but does not offer the reader any real guidance.

The 16:10 ratio is quite nice and really does work better for tiling window managers.
From the website:

The Illustrated AWS Cloud: A Guide to Help You on Your Cloud Practitioner Journey

An intuitive, fully illustrated guide to Amazon Web Services for the visually oriented. Text by Jen Looper, Illustrations by Denise Yu. Coming soon from Wiley!

The author's proceeds for this book will be donated to Code To Inspire, a nonprofit that helps girls in Afghanistan learn to code. Learn more at https://codetoinspire.org.
Pre-order this book from:
What's the steelman for this?
Ha, okay fair. But I'm hoping any subsequent cars can be bought outright instead of under a plan. But who knows with inflation?

Post retirement I should definitely have the finances to get some pretty nice sports car.
I'm a minidisc collector and continue to make mix tapes and copy CD's, records, etc. The cases are about 1/3 the size of CD yet big enough to make great art. Despite the appearance of the disc, it is a very different technology from CD and a single minidisc can be erased and re-recorded multiple times. I can re-arrange tracks with little effort, or add/eliminate single tracks. I'm making a Louis Prima mix tape as I type this.

I also have multiple recording decks from pro to esoteric. I have a lot of portables including field recorders.

In the age of streaming and digital players why do I do this? Joy. It's just fun and I enjoy very much listening to the final product. I love the thoughtful hardware and beautiful art that can be made to go with the discs.
Someone explained cold welding to me this way:

"So you have 2 pieces of metal pressed together. How does an atom know which piece it belongs to?"

Oh. I know there's more to it than that, but that unblocked my understanding of it.
This is the meaningful part:

> The California governor, a Democrat, said earlier this year that the state would soon start making its own brand of insulin. California has a $50m contract with the non-profit pharmaceutical company Civica Rx to manufacture the insulin under the brand CalRx. The state would sell a 10-milliliter vial of insulin for $30.

> “With CalRx, we are getting at the underlying cost, which is the true sustainable solution to high-cost pharmaceuticals,” Newsom wrote in a message explaining why he vetoed the bill on Saturday. “With co-pay caps however, the long-term costs are still passed down to consumers through higher premiums from health plans.”
Really cool UI. Makes me nostalgic for old NES games. I'm not sure this specific approach will catch on, but I'm excited to know that people see the need for a "slow internet" after years of algorithms and A/B testing optimizing people's feeds and attention-spans.
Is it pulling a Postman if Insomnia did it first?
Not really. They seem more complicated to manage (like on Azure you need to create several "resources" before you can actually run Azure Web Apps). With Runpod and Vast.ai, I can simply use TheBloke's templates in a few clicks.
Binding caps lock to control when held and escape if pressed alone is the greatest
i have to zoom out to see the entire garden
I, too, was very confused by this.
Setting price caps is a flashing alert that the government has lost anyone with authority that appreciates basic economics. Very common to see this before a slide into collapse (Venezuela, Cuba, etc.).