skysight-inc/HackerNews huggingface dataset:
I've seen a few complaints about the limitations of CAGED so I've been trying to focus on theory rather than just mindlessly learn tricks and regurgitate songs. Having a lot of fun so far.

The book I'm reading (recommended in another comment) does talk about minor forms of CAGED forms, though - pentatonic scale patterns, arpeggio patterns, and chord forms.
To help quantify this further, a typical passenger car emits ~5 tonnes of CO2 per year. So we’re talking about offsetting 20-200 cars per year.

https://www.epa.gov/greenvehicles/greenhouse-gas-emissions-t...
My humble opinion is that most applications that need scripting should just embed JavaScript.

It has a massive advantage in the existing ecosystem. People don’t always love it, but millions of them already know it. You don’t need to re-learn array indexing and nil termination quirks and the dozens of other things where Lua is subtly different in ways that you’ll find out at runtime.

There are JS engines in all sizes, from tiny interpreters to world-leading JIT performance monsters. And most operating systems nowadays ship with a high-quality engine and embedding framework that you can access without installing anything, like JavaScriptCore on the Apple platforms.

Do your users a favor and just use the boring standard language instead of making them learn a completely new one that doesn’t offer meaningful practical benefits for them. It’s probably not as much fun for you, but you’ll save time for both the users and yourself in the end.
The weAudit VSCode extension [1] works pretty well. It's designed for security work, but there's no reason why you couldn't use it for general note-keeping.

[1] https://blog.trailofbits.com/2024/03/19/read-code-like-a-pro...
I've always wanted to write a serverless OIDC provider/SAML IdP but got stymied by the WebAuthn standards, which don't seem to be written for normal people. :( But this e-book looks like it might have enough actual code interleaved with exposition to serve as more than just a high-level intro.
The main problem with Hacker's Delight is its age. It has lots of bit tricks and optimization guidelines you'll find useful, but you have to understand that a big part of it doesn't apply on modern devices. But as long as you treat it as a collection of snippets and benchmark the code on modern devices (or, if you have built some intuition, that works too), it's an invaluable resource.
I would also recommend the legendary Teensy Files:

https://www.muppetlabs.com/~breadbox/software/tiny/

They sparked my interest in ELF and freestanding programs.
It’s been adopted in game engines to handle story logic, so the people writing the game can be decoupled from the people writing the engine, and don’t have to code in a low level language against a constantly moving target.

And I would argue that a lot of the staying power of World of Warcraft came from the Lua based addons democratizing the UI. Blizzard co-opted a lot of features from best of breed addons back into the base game. (That and negative pressure in the economy to keep from having every new character wielding the third best sword in the game due to deflation, but that’s a story for a different thread)
I feel Scala is also very underrated.
I've had fun embedding Lua a couple times, but as with wasm I almost never have a case where I need to run new code without being able to recompile the whole binary, so I don't get to use it often.

The most fun was when I made a game engine ("engine") in C++ that used Lua for all the game logic. The fast debug cycles are very useful there. Maybe I should still do that for Rust gamedev, since Rust notoriously compiles slowly.

The second-most fun was an IRC bot that could reload its Lua logic without disconnecting. Nowadays I'd write a bouncer and just let the main process restart. (Or use wasm, a wasm IRC bot would be good...)

The third-most fun was using Lua as a Turing-complete configuration language. If I needed an array of something, I just made Lua make an array, instead of generating Lua code.

One of the least fun was the Blender plugin that exported 3D models as generated Lua. If I did that one again today, I'd just use MsgPack or some ad-hoc binary format.
I tried something like that. It didn't work because the application added the socket to an epoll set before binding it, so before it could be replaced with a host socket. Replacing the file descriptor in the FD table doesn't replace it in epoll sets.
I find geology's power fascinating.

A person was once able to surmise from geological features that India was once part of Africa.

(He was resoundingly mocked of course.)
Ruby is the sweet spot for me. I don't like the syntactic whitespace in Python, but still prefer the cleaner look it not having braces everywhere.
I vaguely recall this being part of a tit-for-tat thing between China and the anti-Chinese. There have been movements to restrict Chinese access to FOSS, because forking FOSS lowers Chinese dependence on the West, along with (ironic) accusations that the "authoritarian" Chinese are limiting access to Western tech products. I thought there was some sort of legislative or judicial outcome that came out of it, but no luck with a quick google.

-----

U.S. restriction on Chinese use of open-source microchip tech would be hard to enforce - October 13, 2023

> U.S. lawmakers are pressuring the administration of President Joseph Biden to place restrictions on RISC-V to prevent China from benefiting from the technology as it attempts to develop its semiconductor industry.

https://thechinaproject.com/2023/10/13/u-s-bar-on-chinese-us...

-----

China’s Use of Foreign Open-Source Software, and How to Counter It - April 2, 2024

> Democratic governments also need to reassess which products should not be made open-source because they’re at risk of being weaponized by malign actors.

https://chinaobservers.eu/chinas-use-of-foreign-open-source-...

-----

Whatever the US did, Europe would do. Anybody in the US or Europe working on a FOSS project with Chinese contributors that they're friendly with? Has anything happened recently?
Discussion about possible cause (204 points, 22 hours ago, 144 comments) https://news.ycombinator.com/item?id=42511267
Important quotes from that video: “You can exercise all day, it seems, if you keep it down.” And “let me be clear about this: there is no single step you can take in your life to ensure robust health and remarkable longevity than a habit of daily exercise.”

FWIW, there are some more recent studies that flatly contradict this claim [1] [2], so YMMV with a TED talk. My father has been a long-distance runner for 50 years, and he thinks that it is possible to do heart damage in very extreme cases, but these cases including being more committed than most Olympic athletes. The problem is when doing competitive racing type running without ever taking a break for recovery. He does know a couple of people who ran too fast and too much and had to quit due to what he calls “overtraining syndrome”. He specifically said he thinks Deo Kato isn’t likely running fast enough to cause overtraining syndrome. In the video, you might notice the data he shows depends on running pace; In the TED video, James didn’t separate miles per week from pace (at for example ~6:50). This means that distance alone - miles per week - doesn’t necessarily prove anything, miles might not be associated with risks until it’s enough miles that there’s no time left to rest.

There is a real danger here of scaring people who should exercise more, of giving the wrong impression or a backwards summary to the vast majority of people who will never ever run the risk of over-exercising so much they could cause heart damage. Your summary left out the part where James pointed to the absolute consensus that an hour a day of “vigorous” exercise is known without a doubt to be very beneficial. There’s also a danger of giving a misleading impression about the risks of not exercising compared to the risks of extreme exercise. The data in the video at ~5:10 shows not exercising leading to dying many years earlier, while there is no data here that shows extreme exercise leading to higher mortality; all it shows is that the benefits plateau. There’s some data and discussion on incidence of heart problems, but not outcomes. Essentially the summary should be: exercise all you want, and if you are wondering if you’re exercising too much, then you’re nowhere near the threshold - the very few people exercising enough to do heart damage are extreme and already know they exercise too much, because they’re compromising on work, hobbies, friends, and family in order to exercise. ;)

[1] https://www.outsideonline.com/health/training-performance/ex...

[2] https://www.utsouthwestern.edu/newsroom/articles/year-2019/e...

PS you’re not the Andrew Stuart of Sudoku/puzzle fame are you?
If only American IT workers were paid less! If only there were many more of them! Then supply and demand would take its natural course!

Maybe we could have public colleges and universities, and even community colleges, graduate a lot more CS degrees! We wouldn't need any H1-B or similar thing!
Is there a name for the activity of trying out different strategies to improve the model? Before one prompts it in the wild.
Well "Peer Review" or "Code Review" is required - pull requests are easiest way to have it all documented with current state of art tooling. Otherwise you have to come up with some other way to document that for purpose of the audit.
Dupe (343 points, 2 days ago, 199 comments) https://news.ycombinator.com/item?id=42500475
I can't say I appreciate Lua any more after reading this. It only reinforced my annoyances with it.

It's been a while since I wrote any Lua but I didn't think it was intuitive at all. Why are arrays tables, why are they nil terminated and why do they start at 1.

I don't think it's underrated either. It's very popular for writing scripts in (older) game engines.
Throw in chrony and you can get nanoseconds.
J G A Pocock's "Machiavellian Moment"
ChatGpt down since an hour!
Brave today: Here's a free browser with no ads, built-in adblock and user-respecting defaults. If you want there's also this crypto thing you can try. No pressure, most people don't. We also have an ad supported search engine as our default.

Firefox today: Here's a free browser with ads on the new tab page, ads in the url bar, ads in Pocket, ads for our VPN service, and we let advertisers collect your data same as Chrome with "privacy preservation ad measurement" and you have to turn all of that off. We have an ad supported search engine by default. We also redirect your DNS queries to a third party "for your privacy."

I think people want Firefox to be better than it is in practice because of the historical good will they've built up over the years. I wish they were better too.
I remember downloading and installing one of the MCC Interim releases in 1993? 1994? before switching to Slackware. Early *BSD and Linux were certainly an adventure back then. I don't miss it.
go's MVS only means >=, capped at major version, selected from all declared versions (excluding external latest released).

>= doesn't really mean anything below it will break
I do, so I have a working solution.

I am not migrating to something just because it's new.

My solution works for me. If it doesn't anymore, I'll see what I'll do.

Depending on the service I'll swallow the bitter pill and use another solution or simply not use the service anymore.

Every and any decision has consequences, on any side.
>I might not be understanding what you mean, but I don't think the user/machine distinction is super relevant in most deployments: in practice the server's software shouldn't be running as root anyways, so it doesn't matter much that it's installed in a user-held virtual environment.

Many software packages need root access but that is not what I was talking about. Distro users just want working software with minimal resource usage and incompatibilities.

>Rust packages of different versions can gracefully coexist (they do already at the crate resolution level), but static linkage is the norm.

Static linkage is deliberately avoided as much as possible by distros like Debian due to the additional overhead. It's overhead on the installation side and mega overhead on the server that has to host a download of essentially the same dependency many times for each installation when it could have instead been downloaded once.

>And with respect to resource consumption: unless I'm missing something, I think the resource difference between installing a stack with `pip` and installing that same stack with `apt` should be pretty marginal -- installers will pay a linear cost for each new virtual environment, but I can't imagine that being a dealbreaker in most setups (already multiple venvs are atypical, and you'd have to be pretty constrained in terms of storage space to have issues with a few duplicate installs of `requests` or similar).

If the binary package is a thin wrapper around venv, then you're right. But these packages are usually designed to share dependencies with other packages where possible. So for example, if you had two packages installed using some huge library for example, they only need one copy of that library between them. Updating the library only requires downloading a new version of the library. Updating the library if it is statically linked requires downloading it twice along with the other code it's linked with, potentially using many times the amount of resources on network and disk. Static linking is convenient sometimes but it isn't free.
Writing the code doesn't generally take a great deal of time once I know what code needs to be written, so there's little value to be gained in optimizing that part of the process. I can think while I type, after all.
On a related note, https://hugsy.github.io/gef/ provides a TUI interface like that.
Neither. Raise taxes and have the government build decent houses.
For the individual, maybe. For the society as a whole we could with a little more people taking risks.
Harris promised to put a Republican in her cabinet: https://www.nbcnews.com/politics/2024-election/kamala-harris...

Obama retained Robert Gates, appointed by GW Bush, as secretary of defense.

Your expectation is at least a little wrong.
This seems like a cool idea, thanks for creating it!

Some feedback:

I tried searching for "wave function collapse algorithm", "gumin wave function collapse", "wfc" and "model synthesis" without any relevant hits to the area of research I was interested in. I got a lot of quantum computing and other physics related papers.

The "WFC algorithm" overloaded the term (and has nothing to do with quantum mechanics) so it's kind of a bad case for this type of search. Model synthesis is way too generic, so again, might be a bad case for this.

The first page of results using "wave function collapse algorithm" from arXiv itself gives relevant results.
It’s hard to tell since there’s no changelog, but it looks like there are at least some improvements ongoing other than just simple bug fixes. Some of the changes in August for instance look like more than just for correctness.
I'd say a couple of years more for Zig 1.0
40 years from now, C-suites all over the world will be saying "COBOL Minecraft servers are dead."
…raku
RIP Mannhmohan Ji. The person responsible for India's economic liberalization and setting it on an insane growth trajectory.
> Apple does sign the entire boot process but they have the benefit of a strictly defined hardware set to support

Windows can also sign the entire boot process, but they unlike Apple can't make the system folders read-only due to backwards compatability (Windows 10S experimented with this idea but was scrapped).

There's nothing stopping Linux distros from having a secure boot process, but the initramfs either has to be scrapped or pre-built by the distro.
Who would you nominate? The US certainly has severe problems with racism, but everything I've ever read about other countries has led me to believe that this isn't actually a totally implausible claim.
Plus these old malls are often garbage buildings which is why they aren't viable as a mall anymore anyway. Better to send a few million cleaning and preparing the site and then build something that's actually viable for housing.
It's my language of choice for letting users customize an app, but the last client wanted Python because many people are already familiar with it and 'Scriptable with Python' looks better from the marketing point of view(
Former Indian prime minister Manmohan Singh dies aged 92
and moving at such high speeds that relativity factors into the equations.
Yeah, I am not the biggest fan of iOS Safari because of things like these. In my case, disabling most default interactions was a desirable property because I wanted to handle all the UI myself - but I understand that may not always be a good solution.
> Just wondering because it’s really just the system itself and my desktop environment that I find the benefits of immutability most pertinent, whereas it’s something of a bad fit for applications with the woes flatpak and friends bring for desktop integration and such.
If you want to publish a PGP signature of your own random files, go ahead and do it; nobody is going to dunk on you for it. If you're managing a major platform, use something better than PGP, which wasn't designed for this problem. See Python's experience with PGP signatures --- and, especially, with reliably verifying them --- for reasons why.

Also: if you're "genuinely" asking questions, you might want to be careful about back-loading them with assertions that suggest you already believe you know the answer, and aren't so much asking as hoping to bait something you can rebut.
> you are often learning the Lua <=> C interface as much as you are learning Lua.

One time I had a memory leak in a game, something like exactly 4 bytes per frame.

It turned out I was not popping the Lua-C parameter passing stack properly after each frame.

I found this out after some unhelpful person suggested that "all programs just leak memory" lol
Many people install Nvidia drivers by using their shipped .run binary (which is a bad idea) and thus breaks when the kernel is updated to something higher than the DKMS module supports.
Ukraine needs European and US support. If you are not Israel, doing easily provable war crimes is a good way to loose it.
It depends. In Debian's [0][1] benchmarks, JS is clearly ahead in a handful of the benchmarks, but in the rest, Lua is either on-par or faster. They're within a shout of each other.

There are some places where Lua has surprisingly poor performance. However, in almost everything else, it's one of the fastest around. Luajit is still one of the fastest JITs in existence.

In the real world, rather than constraints of a benchmark, Lua tends to be on-par from what I've seen. When you're not cold-cacheing everything, its memory use is lower. But it's standard library is ISO-C, and that's about it. No batteries. And the others beat it soundly there, whilst being close to the same performance. Which will mean they will just about always win out.

[0] https://benchmarksgame-team.pages.debian.net/benchmarksgame/...

[1] https://benchmarksgame-team.pages.debian.net/benchmarksgame/...
OpenAI is Visa – Buttering up the government to retain a monopoly
The system software for newer TI graphing calculators is written in Lua and often emulated to Z80.
GnuPG is confusing, but what’s worse: It’s also old and crappy and it tries to be all things to all people.

There’s very few reasons to still use it in the year 2024.

https://soatok.blog/2024/11/15/what-to-use-instead-of-pgp/
And Chris Wellons' "A Magnetized Needle and a Steady Hand," detailing how to build an ELF implementation of 'true' using nothing more than 'echo' or 'printf': https://nullprogram.com/blog/2016/11/17/
> That `totallysafescript.sh` could at least be inside of the package manager scope. Most of the times someone already did it, and published it to AUR.

The AUR is still not as good as proper package management and shouldn't be considered a stable or reliable method of software distribution at scale.
The Guardian view on digital media: the case for better regulation must be made
https://f8n-ipfs-production.imgix.net/QmaangUFNxGD6vRjnqzVnL...
Thanks, I stumbled across a copy in a local coffee shop by happenstance that had been remaindered out of a University of Alaska library.
The "majority of CVEs" isn't a great metric, since (1) anybody can file a CVE, and (2) CNAs can be tied to vendors, who are incentivized to pre-filter CVEs or not issue CVEs at all for internal incidents.

Thankfully, we have better data sources. Chromium estimates that 70% of serious security bugs in their codebases stem from memory unsafety[1], and MSRC estimates a similar number for Microsoft's codebases[2].

(General purpose programming languages can't prevent logic bugs. However, I would separately argue that idiomatic Rust programs are less likely to experience classes of logic bugs that are common in C and C++ programs, in part because strong type systems can make invalid states unrepresentable.)

[1]: https://www.chromium.org/Home/chromium-security/memory-safet...

[2]: https://msrc.microsoft.com/blog/2019/07/we-need-a-safer-syst...
Is good software a Dorodango? A pile of mud that has polished enough to be pretty.
On one hand, you do have JavaScript ubiquity, on the other hand, you have the JavaScript "WTF" equality and typing conversion matrix, "WTF" scoping, and dozens of other foot guns that Lua doesn't have. Some people would rather everyone learned Lua subtle differences and wrote less buggy code. I've had to use for the web for 20 years, and if I have any choice, I would avoid it.

Anyway, every language has some fans, and I don't mean to dismiss them, but ubiquity is not the top priority, all the time.
Show HN: GuessGPT: Can You Predict What ChatGPT Loves Most?
I built GuessGPT, a web game where you try to guess ChatGPT's answers to subjective questions like "What is the best movie ever?" and "What is the most delicious food in the world?"(no signup required)

I was curious about how ChatGPT's "opinions" are formed and wanted to create a fun way to explore its internal knowledge. This project aims to give us a glimpse into how ChatGPT's responses are shaped.

What's different: Unlike a trivia game, there are no right or wrong answers. It's about understanding how ChatGPT "thinks". The game gets more interesting as you start to notice patterns in its responses. Also, you will be able to compare your answers to others' soon, so we can get a sense of how ChatGpt's answers compare to the community.

Try it out here: https://guessgpt.vercel.app

Feedback Request: I'm looking for feedback to make GuessGPT even better. Feel free to share your thoughts and suggestions, especially on:

What other questions should I add?

What features would make the game more engaging?

Did any of ChatGPT's answers surprise you?

Technical Details: I obtained both the initial questions and the answers from the GPT-4o model via its API with temp=0 settings. The code is open source, updated link is on the game's website.

Here is the prompt to get these answers: """You are a helpful assistant. Provide only a one entity answer. Do not offer explanations or context. The answer must be one entity if possible only one word. Do not use "unclear," "debatable, "subjective" or similar words. Give a definitive, one entity response."""
My favorite podcast in this topic is from Jupiter Broadcasting : https://www.jupiterbroadcasting.com/show/self-hosted/
Look for very small companies/IT shops/Agencies (<20 people) and talk to the founder(s) directly. Make a case and if you truly are someone who can build things, those small companies will hire you if you can do the job well and are dependable.
> The ’893 Patent is entitled “Starting up at least one virtual machine in a physical machine by a load balancer.”

They are coming for the whole interw3bz.
Yes, it is down
Are young people's attention spans shrinking?
Dupes:

https://news.ycombinator.com/item?id=42502812

https://news.ycombinator.com/item?id=42509357