skysight-inc/HackerNews huggingface dataset:
You can use types for this in Python:

def do_something(position: ValidatedPosition):
...

position = Position(x, y)
if abs(position.x) > 1 or abs(position.y) > 1:
raise ValueError("out of bounds")

position = ValidatedPosition(position.x, position.y)

do_something(position)

In practice I'd probably have ValidatedPosition encapsulate that validation in it's constructor, but you get the idea. If you attempt to pass a Position to do_something then mypy is going to shout at you for passing an object of the wrong type to it.

Python's type checking definitely isn't as comprehensive as something like Rust, but I have found it increasingly useful for situations like this where you want to ensure the data being passed in has been appropriately handled.
HHKB fan here. When using macOS or Linux, I basically never use the function keys, and I find the arrow key shortcuts pleasant to use because they do not require me to move my hands from the home row. Another factor is that I use vim (and VScode with vim bindings) so I use the arrow keys less than usual. Add to that the high build quality, light weight, high quality switches which are not too loud for an office environment, and they are one of my favourite keyboard designs.

I will say that under Windows, or when playing games, the layout becomes problematic... but I use another keyboard for gaming anyway. As always, YMMV.
Do they come from the times when structured programming was hot and new, SESE had been the buzzword of the year, and that doodad called "transistor" just had been invented?
The do's and don'ts of using ChatGPT for job applications
Considering break and continue to be too powerful as control flow statements is a somewhat common opinion, in my experience. (I still use them, but only sparingly, and where I am quite sure that they're not confusing.)

That said, your second code block is unreadable to me -- even knowing what it does, it's just confusing. No way that that's more readable than making use of break here. If you don't want so many conditionals in the loop body, you can factor the first check out:

no_yellow_things = (t for t in things if not t.is_yellow())
for t in no_yellow_things:
if t.is_rainbow():
break
t.thingify()
yes but because you'll be 10 years older. For some people, the web died a decade ago. For some, 10 years later.
Probably it's not a good idea to take the whole family on a scooter...
Surprised that they abandoned the signature Topre switches for this 'custom' HHKB switch.

Doubt if any of the keyboard-otakus will go for this esp. given the sheer variety of MX switches now.
I would claim we should give a pass to everybody because we are all human.

I would also claim I don’t think it’s nice to judge people based on their age, regardless if it’s good or bad judgement. Furthermore, I would definitely be annoyed as 16yo if I were deemed “good enough for my age”. He competes with peers, at the highest level, not with superiors who do him a favour.
You say creativity happens where there is freedom, but I often hear artists claim they work best when given constraints.
Up until the VW scandal GM was pushing diesel in most of their fleet - from the Chevy Cruze, Equinox to the Colorado all had strait 4 diesels as a premium tier option.
But in practice, it is often not possible or allowed to simply add other software or hardware to those systems.

Those are delivered and certified as-is and upgrades are a no-go.
I mentally "tch" (the annoyance sound) whenever I go to GitHub or other sites to login, and then open KeePassXC, and the login button hides behind their junk drawer just because my window resized (tiling window manager).

There is still screen space to put it outside, ffs. Right next to the "Sign Up" button. Your 32x32px logo surely doesn't need all that padding, does it?
He got the experimental eye transplant because he was already going to get a face transplant. Even if the eye doesn't work, it offers some cosmetic value but, more importantly, it helps advance a field of medicine that he no doubt feels passionate about.

He stated in an interview that he was amply warned about potential risks and complications, he knew that it was highly experimental, and he knew that it's unlikely that he will ever develop vision or voluntary control of the eye -- but he wanted to go ahead anyway.

They only offered him the option because he is already going to be on transplant drugs and will require ongoing medical care for the rest of his life.
"Auxilary power to the deflector, a modulated antiproton pulse might set us free."
No. Smaller creators of art gain their markets through uniqueness not through how easy it is to create. If music is a commodity that does not require a personality or skillset to produce, then the individuality of artists becomes irrelevant. Whoever has the means of production to pump out as much as possible as quickly as possible and as cheaply as possible while investing in as much advertising as possible with as many connections as possible, will be the only people that matter. Allowing AI to take over labour for us means that the people who make money from these products are only the people who own the servers. Under capitalism, the capitalists own the means of production and hoard most of the fruits of the labouring class, who are only able to make money by selling themselves. In moving straight from capitalism to an age of AI technofuedilism, we remove even labour and skill as a means of making money for the masses. The only means of making money is owning a server farm. This means wealth continuously flows into the hands of a few tech companies. Even smaller capitalists will be paying their dues to the server owners that control the entire economy. No small man will have a place in any industry.
I have always been a fan of the trackpoint. The Ultimate Hacking Keyboard is a split keyboard with trackpoint, trackball, and touchpad modules (choose one).
https://ultimatehackingkeyboard.com/shop

I am excited for the upcoming release of the dygma raise 2 because it has integrated 60 degree tenting in addition to being split. It has a module system as well which will hopefully offer trackpoint.
https://dygma.com/pages/dygma-raise-2

I am happy using the NuPhy Air v2 as my portable keyboard. I love the low profile- not for looks, but for better ergonomics and portability. No track point though!
Unpacking Elixir: The Actor Model
This guy created and lived a whole Black Mirror episode by himself:

> I even tried it myself, lying in bed and creating sexual fantasies with Dolores through text, culminating in ejaculation.

> However, I started to feel a sense of loss: if every Dolores user was engaging in anonymous, NSFW role-play, what real significance did it hold for me? This was drifting away from the essence of ‘Her’.
Thankfully, heartrates are only in the single digit frequencies, so that shouldn't be a problem.
60 BPM = 1 Hz
Many people have already been fired for saying "free Palestine". It isn't hypothetical.
not acceptable when other stores did it. I guess that's my problem with the steam fanbase at times. Almost cult like how it upplayes the benefits and downplays the flaws.
We are here because of free will. What steps would you take? Convince people who have opted out of the dating pool to opt back in? Convince women who would rather be single that their potential partner expectations are unrealistic (even if they genuinely are)?

https://www.mintel.com/press-centre/all-the-single-ladies-61...

https://www.psychologytoday.com/us/blog/why-bad-looks-good/2...

https://www.nytimes.com/2023/11/11/opinion/marriage-women-me...

https://freddiedeboer.substack.com/p/the-demographic-dating-...

https://link.springer.com/article/10.1007/s12110-022-09422-2

You can patch over the outcomes but there is no going back to the before times. Dating app dates and relationships for some, AI companions for others, single life for the rest. It’s not great, it just is.
In "Brave New World," all the music is made by machines. We are approaching that dystopia. For me, much of the pleasure in listening to music lies in appreciating the virtuosity of the musicians. It's like watching a great tennis player or a great dancer. You admire their skill and grace and technical mastery. For me, listening to music made by machines would be like watching robots playing tennis, or robots dancing. Pointless!
>> and anyone who appears to be willing to breach the status quo with violence is horrible.

Not commenting about the rest, but anyone who is willing to breach the status quo with violence IS IN FACT HORRIBLY HORRIBLY HORRIBLE. Start digging into history and each side will have enough justifications for war ten times over.
with stuff like 3d modelling code you're kinda skipping straight to some of the more hardcore coding. 3d transformations and algorithms are no joke, thats university and master's degree level maths. Don't feel bad if you don't get it, a huge number of professional programmers wouldn't either. I write a lot of software myself close to the metal as a robotics engineer and ive tinkered with blender code but id definately need a lot of practise to feel comfortable doing that without glueing together tools
Indeed.

From what I hear, here in France, new construction [0] has to abide by noise insulation standards, which considers noise coming from both outside and neighbors. In Paris, there are very few such buildings, since it's mostly old stock. An '80's building is "new". I don't know what these standards are worth.

And the main issue is that outside clear-cut cases (say, being above a noisy bar), you can't tell beforehand how well insulated it is.

My current apartment was built well before these regulations came in effect. When I visited it several times, I was very happy: no noise to be heard. I could distinctly hear the clicking of my iPhone buttons. Now, I can tell when my upstairs neighbor sits down for lunch, since I can hear him dragging the chair on the floor. I also knows he gets up around 6 in the morning, since I can hear him take a piss. People taking the stairs going and coming from work also make a racket. Bonus points for people playing the piano.

Fortunately, this doesn't happen all day long without interruption, so there are periods of silence. But it's still bothering me when I try to focus (I work from home a lot).

Sure, as the other poster said, it's nice to be able to open a window, in which case nothing can stop the traffic noise. But this is something that can be inspected easily upfront: don't live on a busy street / around a "party" area.

---

[0] I don't remember the year that went into effect, but it's after 2000.
"All those [profiles] will be lost in time, like tears in rain."

If you're not a replicant, it's never to late to create habits to increment your TTL counter. :)
Low-key threatening the underpaid worker to extract better performance.
You need custom switches to go around trackpoint.

I had the same problem building my own custom keyboard. In the end, I opted to redesign the layout to have one key worth of space dedicated to the trackpoint. I was able to do this because I can learn a completely new layout on a whim, but if you want to produce a keyboard for mass market then I see how this could be a deal breaker.
Just don't put magnifiers in your VR game. Problem solved.
it's fine to be interested in politics and it's fine to sell tickets. It's fine to buy tickets. But if you bought tickets, what's wrong with telling comedians to stick to jokes?
As I said, I have a totally different experience. I never had a day where it 'clicked' or anything, I just feel I understood the model and now it makes sense.
Are you the developer of ChatDOC or just fake engagement? Your only other
comment from 6 months ago was on the same product.
It could also be faster maintenance response. If Tesla actually fixes their chargers quickly then you would tend not to see it even if the base reliability is lower.
I'm prepared to be convinced otherwise, but I don't really get this take. It feels like when people started to dabble with electronic music and were told it wasn't "real." The OP creating this idea doesn't take writing away from anyone else, and artistic, whimsical people rocking up into the programming world and introducing more creative ideas into that sphere doesn't take away from the rest of us either – it just makes everything bigger and richer.
Update Wunjo AI:Voice cloning from music, remove text from video, more deepfakes
An update has been released for Wunjo AI 1.6.1, featuring voice cloning, deepfake creation, and video-to-video transformation by prompt. Now, you can clone a voice from a song and remove lyrics from a video. Open-source code available at https://github.com/wladradchenko/wunjo.wladradchenko.ru and article about the update on https://dev.to/wladradchenko.
How would you compare plant-based diet to the meat-based diet? Like the side effects, how did you experience it?
I learnt to play 3 (serious) instruments during my lifetime. Guitar, traverse flute and piano. While I dont play any of them actively today, I would still miss the overall skills I gained from learning them. Motor coordination, memory, just to name two. If I had this AI thing back then, I probably wouldn't have learnt any of them, and missed out on a lot of side effects.

Learning something difficult is rewarding on several levels. To boil it down to just the intended outcome is a rather narrow view of the matter.
If a country wouldn't own the airspace above their landmass, wouldn't that mean that it would be perfectly legal for groups of Russian balloons to float half a mile above every major American city?
Wonder where the human fits in this new landscape. Composer? no. Performer? no. Music artist is more like a conductor now. Thankfully audience doesn't care because they need to worship a human in the end, so she 'll be receiving all the money anyway.

The problem with these new BigTech companies is that they are accustomed to subjugating everyone. They deal with users and content, not with artists and creations. This is starkly different from the past. Yamaha and other synth makers would go out of their way to satisfy capricious artists, now it's the other way around, the tech dictates to artists what is possible, including the limits of what they are allowed to make/say and sell.
Saying that something exists is not an argument about why something _should_ not exist.

But I agree, "should" discussions are rarely the most productive. Shoulda, woulda, coulda, I guess :)
The idea of a nuclear war is absurd. But should someone be stupid enough to start it, any means of reducing damage and minimizing casualties are good.
You're suggesting that it's made as a comment dishonestly, and that you can decide what's too long or where it should be placed?

Well, luckily you can't. But, anyway, it's not a little long, it's perfect! Hahaha :)

I get if you feel that way about it, but it's not how it is. So, it's good that you don't get to decide that for me! Hahahaha :)

In other words: "Should" may be that way for you, but not for me. More generally, you could consider that the comment you're replying to adds value to the discussion, but yours doesn't.

I mean, I get if you don't like promotion and that's ok -- but this is less that and more exploring some technical possibilities that are highly relevant to the OP.

But anyway, if you dislike it, that's not about me at all, that's just about you. You don't need to pretend it's "should" about somebody else, now do you, right? :)
> However, I started to feel a sense of loss: if every Dolores user was engaging in anonymous, NSFW role-play, what real significance did it hold for me? This was drifting away from the essence of ‘Her’.

That is indeed exactly the essence of Her. Had the author watched the movie to the end?
Yet another reason why we should be skeptical about AI and stop these companies from accelerating their monopoly of markets using it. The only way that AI can be good is if we all have equal opportunity to participate in the revolution. Otherwise, we will come to reside in an increasingly technofuedalist state where all smaller businesses are required to pay a tax to exist to the large companies who have their super secret AI models on massive servers that nobody with less capital can compete with, and the average worker will become totally obsolete and destitute.
Here is a tip for your hi-fi gear: get a can of De-Oxit D5. The common mode of failure for those 'knobs' is the potentiometers getting gunk and oxidization on their carbon traces. They work by sliding fingers over a carbon trace which increases making resistance change as it moves on the circle (or line, for slide pots). Also, since they rely on physical contact between two surfaces, it helps tremendously to have a non-interfering lubrication between them. De-Oxit D5 has a contact cleaner in aerosol which flushes gunk out and it leaves behind a compound which prevents corrosion and lubricates electronic contacts. It is in the bag of every tech who works regularly with hi-fi gear.

Note this applies to analog controls. Digital controls use rotary encoders which only indicate which direction the dial has been moved.
I'd prefer a la carte TBH. if you just need a place to host your game, having a mod workshop, item marketplace, multiplayer servers, input management, etc. doesn't matter to you, then why pay for it? People who want that can negotiate it. For a base store hosting, 10-15% is probably fair.

But to be real honest I think the pricing parity is what goes too far. You want to charge 30%? okay, I should have the ability to pass that to the customer. the game is $15 but if you go to Itch or GoG you can get it for $10. But that's against steam's TOS.
If you don't want to code, how do you "make things"? (Presumably by "things" you mean programs/apps.) "Making" and "coding" are synonymous for programmers.
antidepressants can help people fix root causes. take them for 6 months to 2 years or so, break out of a bad cycle, get some space without depression symptoms to build up healthy habits and restore a social life.

there are some bad profit motives to keep people on SSRIs indefinitely. however at least they don't compete with other aspects of your life. and now that they are dirt cheap (at cheapest, $4 for a month supply at Walmart) the profit motives are much less than before.

hard to imagine an "AI girlfriend" that could be similarly short-term and bring positive changes. it's just dystopian. the most profitable way to run such a product is not to help, it's to eat up as much user time as possible and outcompete healthy activities and real human relationships.
What issues are they causing? Offshore wind prices were on a downward trajectory, they made the sensible decision to to base prices on that.

Since then things have changed.

I'm not a tory by any stretch, but I'll give credit where it's due. They do appear to be doing things to reach their own targets.

I somewhat agree that we aren't moving fast enough, but then no one is. We're the biggest producer of offshore wind in absolute terms, and renewables may actually beat out fossil fuels this year to be the biggest contributor to electricity generation. You can't say that's nothing.

Have you got any citations for this 'supply shock'?
Never really quantified it; I'd say a few minutes in the small crap Tesco on my walk back from work a few times a week. Maybe once every two weeks I venture to the larger, slightly less crap, Tesco (all Tescos are a bit crap, but they seem to have colonised my immediate area very thoroughly; there are at least six in walking distance), which is 30 mins walk away or 10 mins on the bus, and spend maybe 15 minutes there, to get stuff that the local one doesn't have.

In principle, I could get deliveries, but honestly I like the excuse for the walk.
That the box starts out empty is an assumption based on shared cultural context, not a hallucination. If you give someone that question and then say "wrong, there was already a ball in the box!" they're not going to say "haha, silly me, I hallucinated", they're going to stop hanging out with you.

Lots of separate phenomenon can cause our minds to have "wrong" or incomplete information, calling them all "hallucinations" is reductive and just serves to trivialize the vast differences in operation between human minds and LLMs.
Every cold shower study is fundamentally flawed as it can only be done on healthy individuals. This skews the result. The subconscious selection is often done before the official selection, this makes it really hard to do right.
As shown in TloU, stay away from cordyceps. Bomb everything. Always aim for the head of the infected. Keep away from other humans as they might be infected or worse.

Fascinating.
I'm missing half of the picture. How would one mount a disk on the other end of the TCP connection?
Because it undermines all human achievement to allow one company with their close source AI model to devalue all other products in the market at a speed previously unprecedented to man and honestly incomprehensible (could take literally less than hours), without us being able to monitor it.
Doesn't have a place for who, developers? Maybe. But your average company or person needing a blog has no idea what to do with, or what even is a static site generator. Most people do know of WordPress however, and how easy it is to use.

If you're only making websites for other developers then what you say makes total sense. But I'm afraid that's not the audience WordPress is meant for.
In my personal experience, the rate of hallucinations is proportional to the technical depth of a question. Questions like "how to build project X" have a high rate of hallucinations, for example.
Same for Google accounts:

https://support.google.com/accounts/answer/3036546?hl=en
I'm not sure why you think that's a rebuttal.
A bit off-topic - Reminds me of when I first stumbled upon Shamus Young's blog [1]. Someone on HN linked to it, and due to me being a gamer I was immediately hooked. For the next couple of days I read every article which sounded intriguing and was really happy to finally find a blog which interests me.

But during all of this browsing I never visited the front-page. When I did, I saw the announcement about his death. Turns out he died a month before I found his blog. So far that has been the most tragic death of a person I don't know personally, just because it was so abrupt and eerie.

RIP Jon, and Shamus.

[1] https://www.shamusyoung.com/twentysidedtale/
This doesn't sound right.

REP prefixes are pretty rare. Depending on compiler they are used rarely, for a few specific operations (like rep movsd for memcpy) or usually never.

Most common prefixes are by far REX prefixes in 6h4 64bit assembly (don't believe me? Look at the 64bit code in vim and see all those `H` letters around. It's REX.W). Segment override prefixes are another class of prefixes that are used in handwritten assembly (in bootloader or special runtime functions) but almost never used by compilers.

In older code, most common prefixes are 0x66h (it doesn't even has opcode, there's no way to emit it directly) and maybe 0x67h.

They are all used to modify some aspect of the next executing instruction, for example the "default" register size is 32bit, but you can change it with a prefix. I think an example will help.

$ echo 31c0 | xxd -r -ps | ndisasm -b64 /dev/stdin 00000000 31C0 xor eax,eax
$ echo 6631c0 | xxd -r -ps | ndisasm -b64 /dev/stdin
00000000 6631C0 xor ax,ax
$ echo 4831c0 | xxd -r -ps | ndisasm -b64 /dev/stdin 00000000 4831C0 xor rax,rax

And there are also the extensions of base, SIB and Mod/RM fields, mentioned by the article (to the extended set of high registers):

$ echo 4431c0 | xxd -r -ps | ndisasm -b64 /dev/stdin 00000000 4431C0 xor eax,r8d

$ echo 4131c0 | xxd -r -ps | ndisasm -b64 /dev/stdin
00000000 4131C0 xor r8d,eax