skysight-inc/HackerNews huggingface dataset:
Because I need to know what they actually do? The most interesting details are almost always absent from the function name.

EDIT:

For even a simplest helper, there's many ways to implement it. Half of them stupid, some only incorrect, some handling errors the wrong way or just the wrong way for the needs of that specific callee I'm working on. Stupidity often manifests in unnecessary copying and/or looping over copy and/or copying every step of the loop - all of which gets trivially hidden by extra indirection of a small function calling another small function. That's how you often get accidental O(n^2) in random places.

Many such things are OK or not in context of caller, none of this is readily apparent in function signatures or type system. If the helper fn is otherwise abstracting a small idiom, I'd argue it's only obscuring it and providing ample opportunities to screw up.

I know many devs don't care, they prefer to instead submit slow and buggy code and fix it later when it breaks. I'm more of a "don't do stupid shit, you'll have less bugs to fix and less performance issues for customers to curse you for" kind of person, so cognitive load actually matters for me, and wishing it away isn't an acceptable solution.
As a teenager I swore by Turbo Pascal's begin/end syntax and C++ at the time, with its overloads and macro system was just noise to me.

Many years have passed since but C++ with its overloads and macro system is still largely noise to me.
> nimwittitude

Is that the intellectual level of a witling?
Hey, at least egg prices will be lower! (/s)

Cheap political quips aside, it makes me uneasy and frustrated that vaccination is currently very popular but is being turned into a political issue just for a big grift.

The overwhelming majority of research shows vaccines are safe and effective. While I personally think it’s worth verifying research to the contrary, too many people make contrarianism with cherry-picking against science-backed norms their entire personality.

Cherry-picked Contrarianism as a personality is tolerable in limited doses, like from a certain batch of folks on HN, but not something I’d want from policymakers.
Even hard science fiction takes liberties since it pushes the boundaries of science or engineering. It explores the plausible, rather than what has been accomplished. If it didn't do so, it would not differ all that much from regular fiction (i.e. the story may be made up, but it is anchored in everyday reality).

As for the ASCII table, I wouldn't be surprised if it is one of the most commonly reproduced data tables in print and I would be surprised if it wasn't the mostly commonly reproduced table digitally. Virtually every *ix system will have a copy of it. The documentation for most development tools will probably have it. All you need is someone technically inclined in your life, which you will almost certainly have on a mission to Mars, and you will likely have a copy of an ASCII table (whether anyone knows it is there or not).
We're working on Oxen.ai which is an Open Source CLI and Server with Python bindings as well. Optimized for ML/AI workloads but works with any type of data and we see usage from game companies, bio, aerospace etc.

Feel free to check it out here:
https://github.com/Oxen-AI/oxen-release

Or a hub you can host data on (we have public and private repos, or private VPC deployments):
https://oxen.ai

The CLI mirrors git so it's easy to learn. It has some interesting build in tooling for diff-ing datasets and working on them remotely without downloading a full copy of the data as well.

Happy to answer any other questions!
Perhaps try purchasing a digitizer tablet with a stylus (e.g. Wacom's Intuos series) which will allow you to write your equations as you would with an ordinary writing instrument?
I treat it a lot like english. Run-on sentences, too much technical jargon, and too many fragmented short sentences all make it harder to read. There's analogies to writing code.
They invented context logging, again?

https://www.structlog.org/en/stable/getting-started.html#bui...

https://loguru.readthedocs.io/en/stable/overview.html#struct...
> If the code is working, it means what it needs to mean.

No. Working code says nothing about the meaning of a label, which is purely to inform humans. The computer throws it away, the code will work no matter what you name it, even if the name is entirely wrong.

> Why do you jump to look at the other parts of the code? Did it fail a test?

Because people pick bad names for methods, and I've been hurt before. I'm not reading the code just to fix a problem, I'm reading the code to understand what it does (what it ACTUALLY does, not what the programmer who wrote it THOUGHT it does), so I can fix the problem properly.
My preferred approach is to use one of those `foo2nix` tools, but as part of the build process (using the "import from derivation" feature of Nix). There's no need to keep such build products in git.

I've done this professionally for Maven projects (mostly Scala) via mvn2nix, and personally I've been doing it for many years with Haskell via cabal2nix (Nixpkgs now has `haskellPackages.callCabal2nix`; before that I was hacking together similar things like https://github.com/Warbo/nix-helpers/blob/45a66d714877233680... )
You actually can't pay for the latest models, they're only available as free with limits
I think the folder structure like browsing is the main reason to ditch navidrome...

While I get the point, this is not an issue for my use case.

What I would love to see though is a "sync playlist to path" button in the web interface where it keeps the original folder structure. With this i could create partial lib dumps for my car usb stick or my family members. Maybe i submit an issue for this.
Academia implies and requires a disciplined way of approaching a subject. I stand at the very opposite end. My computer engagement has not been subject to such structure and demands. I have only been engaging recreationally—it is my main spare time interest.

I benefit from the crude experience of reviewing my past and seeing almost all my computer-related projects have vaporized as fading memories. Even that colorful ASCII art I made in DOS in the '90s which I wish I kept for nostalgia, is gone. Why didn't I at least have the structured intention to archive things—seriously—I ask myself.

It is easy to be regretful, but their vaporization helps me see these things have little inherent value to my aging self. Being in my forties, I still have a glowing interest for my own projects—and my projects are many. However, in the darkness of the crude awakening to reality, and looking both back and forward 20 years, I have a deep sense these projects of today don't matter as much as I feel they do right now. There comes an "after".

This opens to existential questions, but my answer doesn't lie in that realm. Such answers and convictions are a bonus, but I know that aging mercilessly also takes away such convictions in the agony and the overpowering process of aging. My answer to what the crucial things are, is...

I work in the field of health care and I am daily close witness to the possible adversity of aging and old age. What I have come to see is that the most crucial thing is... to keep your mobility of body and mind as far as you can. Guard and cultivate your long term health.

My neighbor died in his sleep at 87. The same year he would be out painting the house. That's the end I aspire. Stay motivated fighting every second while being here. The fighting, and for the sake of it, gives me a sense of meaning that transcends every past achievement or lack thereof.
AI Generated Scam Tatting Book – TattingTube #6 [video]
Cross-play between the PC "Java" edition and the console "Bedrock" edition is not really possible, so the best option is to play it on Bedrock on both platforms. On Windows you can download the Bedrock edition and play it there, it seems technically possible but a little complicated to play Bedrock edition on Mac / Linux too. (Some Google searching suggests you'll need to run it in a VM on those OSs)

Easiest way to get a server is to pay Minecraft (Microsoft) to host it for you via realms: https://www.minecraft.net/en-us/realms

But self hosting is supported too, there are official server binaries you can download from Minecraft here: https://www.minecraft.net/en-us/download/server/bedrock
Cities across the U.S. banned homeless camping in 2024
It matters a lot even in a duck typed language.

If there are multiple types of user IDs, I don't want to pass the wrong one into a DB call.

This is often the case when dealing with systems that have internal IDs vs publicly exposed IDs. A good type system can correctly model which I have a hold of.

For complex objects proper typing is even more important. "What fields exist on this object? I better check the code and see what gets accessed!"

Even worse are functions where fields get added (or removed!) to an object as the object gets processed.

Absolute nightmare. The concept of data being a black box is stupid, the entire point of data is that at some point I'll need to actually use it, which is a pain in the ass to do if no one ever defines what the hell fields are supposed to be laying around.
Spy-World Scientists Who Argued Covid Was a Lab Leak
For that, we'd have to have deterministic outputs from the code generator. Which is exactly what the current prospective AI fields don't do. And what the current LLMs cannot.
It’s not racist and you know that. They also would not want a white person without authorization.

Also, in your border-free dreamworld, how far does this go? Can anyone / everyone in the world come live in your country? How about your city? How about your backyard?
https://www.wsj.com/politics/national-security/fbi-covid-19-...
excellent! "This suited everyone including the authorities."

(now I'll have to check to see if health checks occurred under the ancien regime, or if Bonaparte introduced them here as well)
Instead of streaming, it would be nice if the server kept flac than transcoded the library and automatically synced it to mobile devices.
Ask HN: Has anyone embedded CPython on a C++ project?
Ancient Indus Valley Script Deciphered
That is incorrect. There are several bedrock compatible servers available. See the official one here: https://www.minecraft.net/en-us/download/server/bedrock
So true. But I'm hoping that the need to resurrect the dead will propel me into discovering a whole other side to living with mechanized transport. Riding is certainly rewarding (and challenging) but wrenching is another dimension entirely. I'm hoping that, by letting my steed devolve into a basket case that needs emergency surgery to survive, I'll finally get motivated enough to learn the surgical techniques needed to bring it back to life, and that will reveal the secrets of life itself. Or at least some insights into what makes a bike tick.
Webb Observes Protoplanetary Disks That Contradict Models of Planet Formation
nginx-proxy becomes almost a must have if you have multiple services and prefer remembering domain names instead of port numbers https://github.com/nginx-proxy/nginx-proxy
What does this give me over, for example, Caddy? “Comes set up out of the box” doesn’t really count as setting Caddy up equivalently is probably a matter of sharing a single config file around - not a heavy lift at all.
If all those functions need all those variables, then you're either going to put them in a class, or put all those variables in something like a dict and just pass that in.

Seeing 10 variables passed in to a function is a code smell.

Whether you put in in a common class / struct or aggregate them in a dict depends on whether or not all those functions are related.

In general, your functions should not be super duper long or super duper intended. Those are also code smells that indicate you have the wrong abstractions.
> FWIW the least realistic step was the ship turning around to get him, because spaceships typically don't carry any extra fuel.

The turning around and returning to Mars bit may have been realistic. They would have needed fuel to get into Earth orbit. (That said, the timing to return to Mars in any sane trajectory would likely be off.) The real problem would be getting into Mars orbit at the end of the return journey.
'Really incredible' sixth-century sword found in Kent
Honestly I just flipped the right bits in the aws load balancer (maintain persistent connections, just the first thing you are told to do when googling aws load balancers and web sockets) and setup the instance scaler to trigger based upon "# open connections / num servers > threshold".

Ideally it is based on the rate of incoming connections, but so long as you leave enough headroom when doing the stupid simple scaling rule you should be fine. Just ensure new instances don't take too long to start up.
Nice!

I would say that we mostly perform parlour with high ambitions of performing in 500+ seat theatres. It's not that we love box illusions and want to do a ton of them or anything. It's more that we like being in control of the entire experience, even down to what the audience experiences when they show up to the theatre before the show and leave at the end. This type of attention to detail is something that you can only achieve in a theatre setting. It doesn't have to be a traditional theatre with a stage... but it has to be a venue that you are entirely in control of.

What we're doing right now is trying to have the most of where we see ourselves in a few years, while working within our limitations. And we'll take a strolling gig or say yes to pretty much anything. But where we try to position ourselves right now is parlour because that's where we can do the type of material that lets us really showcase our characters and what we try to be about. We do a lot of material that plays just as well for a room of 20 people as it does a theatre with 1500.

How about yourself? Tell me your magic story.
I went back to school for a PhD at the age of 41. I was burned out on programming, I was lacking in theory, and I was ready to see the other side of the country for a few years. I'm now in my fifth year of that. It might take me another year for the PhD or it might not happen, but it has been a great adventure either way. It has opened up some other opportunities for me and helped me to recognize the areas of programming that I truly enjoy.
Human Cases of H5N1 Bird Flu [Timeline]
Letting the Guardian publish on article about the cabin is the opposite of security through obscurity.
Couldn't you use a script to convert the files and then just use Syncthing [1] on both devices to keep them up to date?

https://github.com/syncthing/syncthing
Function names aren't wholly distinct from comments. They suffer from the same problems as comments - they can go stale and no longer reflect the code they're naming.
No, still true - you’re never going to beat the determinism, size, and power of a few flops and some logic to drive a common interface directly compared to a full core with architectural state and memory. E.g., just to enter an interrupt is 10-15 odd cycles, a memory access or two to set a pin, and then 10-15 cycles again to restore and exit.

Additionally, micros have to be much robust electrically than a cutting edge (or even 14 nm) CPU/GPU and available for extended (decade) timespans so the economics driving the shrink are different.

Small, fast cores have eaten the lunch of e.g. large dedicated DSP blocks for sure but those are niche cases where the volume is low so eventually the hardware cost and cost to develop on weird architectures costs more than running a general purpose core.
It was largely a joke, but even so famously many of the AKs used in various other conflicts were buried in backyards in-between wars.
UTC, and leap seconds, originate from (military) navies of the world, with the intent of supporting celestial navigation. It is already dubious how useful leap seconds were for that use, and much more dubious is its use as civil timescale.
I tend toward John Carnack's view. He seemed annoyed that he was being pressed to provide a maximum at all and specified 7000 lines. I don't think I have ever gone that high. But really is just a matter of what you are doing. We expect to reuse things way more often than we actually do. If you wrote out everything you need to do in order and then applied the rule of three to make a function out of everything you did three times, it is very possible you wouldn't remove anything. In which case I think it should just be the one function.
Ah, thank you for letting me know!
HHVM has raised its head.
https://histre.com/ can import your Pinboard bookmarks. histre excels at search, if I can say so myself (disclosure: It's mine)
> what are generators and the yield keyword for?

Generators are great for memory intensive data structures (ie. large lists), as they provide lazy evaluation to languages that are designed to evaluate eagerly. Generators can be considered to be a first step towards coroutines if you will, as the subroutines are the ones yield-ing control back to the event loop - David Beazley has a great talk[0] on it, coding an event loop live from scratch.

> similar but subtly different things like for/of vs for/in vs forEach vs iterating Object.keys(), Object.values(), Object.entries()

Array.forEach[1] is the oldest of that bunch, Object.keys[2] came later, for...in[3]/for...of[4] after that, and Object.values[5]/Object.entries[6] are the newest addition. I personally prefer the new way here.

EDIT: for...in[3], then Array.forEach[1], then Object.keys[2], then the rest it seems.

[0]: https://youtu.be/MCs5OvhV9S4?t=1072 (video)

[1]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...

[2]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...

[3]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...

[4]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...

[5]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...

[6]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
why? A single process can bind to multiple ports. I don't know what's the hard limit actually, or how much memory it would use. Probably a port redirect would just be simpler.
I think it's closer to an availability thing. A lot of businesses used to run on privately built programming languages. And everyone had their own BASIC implementation that wasn't quite compatible with everyone else. But transferring the private language across to someone on the other side of the world was difficult.

It did happen over early things like IRC and the like, but the audience was limited, and the data was ephemeral.

For example, Byte Magazine has an article on writing your own assembler in 1977 [0]: "By doing it yourself you can learn a lot about programming and software design as well as the specs of your own microcomputer, save yourself the cost of program development, and produce a customized language suited to your own needs or fancies."

Programmers have been creating their own languages since the beginning. It's part of why we lean so heavily towards standards - so other people don't break the things we've already built.

[0] https://archive.org/details/best_of_byte_volume_1_1977_06
The Go community will of course be more interested in performance on Go, but the paper mainly contributes to the debate about the real capabilities of deep neural net models. From the abstract:

Our results demonstrate that even superhuman AI systems may harbor surprising failure modes.

This should be read as a general observation and not just specific to Go as is made clear by reading the paper. So you can patch up Go-specific flaws but the problem remains that deep neural net performance is inconsistent and unreliable.
>I was thinking more about things to do outside of work

You still need jobs and money for those. They aren't free. And tapas can be had all over the world. You don't need to live in Spain to enjoy Spanish food.

People in Spain wouldn't be leaving the sun, beaches and tapas to go work in depressing Germany, UK, NL or Sweden for no reason.
It's completely legal, yes. As a matter of fact, it's so legal that sometimes you ask yourself why own land there, since technically you can even camp on private land thanks to allemansrätten.
youdidntgetthejoke.jpg
Comment castles:

https://github.com/ferg1e/comment-castles

(I'm the developer)
Upcoming Ray-Ban Meta smart glasses
I would like to discuss this more, shot you an email at the one listed here.
I learned a bit of COBOL during high school... in a small town in Pakistan.

It was okay -- did a project that simulated some financial statements. I recall it being quirky but, to most humans (i.e. non-programmers), any programming language would be quite quirky so I don't understand the stigma around it.

I also learned C around the same time and that one stuck. :-)
If I want to make a SSR site using Ruby, are there any good frontend UI libraries that make doing this easier? It’d be nice if there was some Ruby abstraction for writing HTML, CSS, and JS that makes building interactive UIs easier (possibly built on top of HTMX, AlpineJS, etc).
What if you don't know that the comment is wrong?
Obsidian has a free git plugin.
After forcing myself to learn and adapt to some note-taking system, I too didn't find it useful for me yet. But i keep pushing myself through because I still believe that there must be some value that I could take from taking notes. Just I didn't find a system that suits me well...? One thing that i find the real benefit/value from all this learn and adapt is "writing as a way to think" (is it by feynmann?). When doing complicated work, writing really help to ease your cognitive load and help you find the gaps in your line of thought. But, I couldn't find a suitable method when dealing with general/every day note-taking. I still have that "graveyard for thought" problem when writing general notes
I think what's neat is that this tool can reply to so many protocols/ports, you can enable whichever subset you want.

You could also easily tweak it to have the ports spread on a few different IP addresses instead of a single one. That would make them much less obvious.
I have this simulation on my computer, it's really interesting to see. Limited inputs, and the same neurons light up every time for the same input.

These animals are 'conscious' yet not capable of any kind of higher thought, basically just a early type of organic robot. Fascinating.
InstallAware Installs (and Runs) Windows Apps on Mac and Linux
As others have pointed out, probably more the intricacies of the existing business logic, plus the understanding of the mainframe systems that it usually runs on. Otherwise you could just build a cross compiler and call it day.
> to directly support artists with buying the albums or songs at full price, rather than letting Spotify barely pay artists anything for their music (especially independent ones without industry connections)

You can't post an open source project on this site without half the thread speculating that you're a grifting sociopath. <1% are going to pay for music on here.
Ah, I misunderstood! You are absolutely right.
Ocean Carbon Removal: Captura's marine carbon capture explained
There are actually cross play solutions such as https://github.com/GeyserMC/Geyser, there are some limitation, but not too many. Basically disabling the features that only exists in one version.
> When I learned a subscription for home security was $75/mo I said “there has to be something out there” and there was.

Can I ask what it was you found?
What's the alternative? Update the state object associated with the I/O event in place (and unregister/re-register it with the event loop as needed)?
It is really only a thing because smartphone OS vendor make it difficult for people to mount filesystem over the network.

If you could ssh/sftp mount from android or iOS easily, your favorite smartphone audio player would just play those files from a remount mount without any need of a streaming server.
Lyft Accuses San Francisco of $100M Tax Overcharge
Users being Google.