skysight-inc/HackerNews huggingface dataset:
For me it saves time by keeping my momentum up. I don’t lean on it when I’m in a flow state and cruising through the code I’m writing but as soon as I hit a wall I jump over to chat and start working on a solution with it. This saves a huge amount of time that would otherwise be spent banging my head against the keyboard or googling or reading random SO posts and dev blogs and documentation or even just the time wasted when I get frustrated enough to stop working on the problem and wind up browsing hn.
Defeats the purpose of a token. You've just reinvented the session cookie.
Classic Mac was like this (as were other systems) - the toolbox started in rom, but the OS would patch out it's jump table (effectively) as needed to add new functionality or fix bugs - but since the interface and data structures were basically what was defined in 1984 for much of it, it was really easy to insert yourself as a third party up and down the system. It was a lot of fun - and completely fell apart because of memory safety issues.
Not to mention costs tens of thousands of dollars.
> OSX wasn't a rewrite of MacOS. It was a new chrome over top of NeXTStep

In addition major new chrome (Cocoa, OS X Finder, etc.) Mac OS X originally included a version of the older Mac OS APIs (Carbon) as well as a Mac OS 9 virtual environment (Classic) for running older non-Carbon apps. It was really a chimera that included pretty complete Mac OS 9 ABI support as well as a Mac-flavored version of NeXTSTEP.

It's a bit of a shame that Apple keeps abandoning its backward compatibility layers (I hope Rosetta2 will be different) but I guess that's what emulators are for.
I’m so sorry, I left out the citation and had in my clipboard.

Here is is:
[2] https://allaboutberlin.com/guides/photography-laws-germany

And it actually references the same article you posted.
I made it AGPL3 after your suggestion. Now everyone is happy I suppose
Show HN: CodePerfect, a fast, lightweight IDE for Go
"A crisis, Mr. Frond! A CRISIS!!"
My understanding was that you just had to get rid of the law of the excluded middle. Then things like Russell's Paradox can be stated, but evaluate to neither true nor false, and be fine. Is that not correct?
I have a better idea. Do the code gen while writing out the parser. It won't be the fastest language and the codebase would be a mess and you will most likely have correctness problems but it's the fastest way to production. The classic 3 stage compiler design (tokenizing/lexing/parsing -> AST -> optional lowering/bytecode etc. -> JIT/code gen) is only important if you want to semantic analysis and optimization. They are kinda redundant for prototyping (plus cranelift and LLVM exist, you can focus on the backend after you get your language design in order). Do a quick peephole optimization pass on the generated instructions if things get too slow.

If we are being honest here, most people just want their own better Python/Go/Rust. I doubt your average engineer is truly interested in the subtleties of compiler design and memory layout optimization. A single pass compiler, built like the olden day of yore, is the best option for most.

https://en.m.wikipedia.org/wiki/One-pass_compiler

Leave the 3 stage design for homework (or if you are being paid to do so).
> i haven't seen any evidence that an LLM will be capable of doing that on a non-trivial program any time in the near future

Or ever, given that the level of abstraction LLMs work at is completely wrong. They can approximate the syntax of things in their training corpus, but logic? The lights are off and nobody's home.
I had a bad experience with it a decade ago: I inherited some code that used it to test-drive the technology, and it was a failed experiment.

In the case of this code, CouchDB was simply being used as a dumb key-value lookup. We weren't using any special features of CouchDB.

Of course, a lot has changed since, so the problems I encountered might not exist.

Basically, CouchDB needed to periodically run a gargage-collection-like operation. (If I remember correctly, records were not deleted, but instead hidden until you run the cleanup.) The problem was that the cleanup process was so unoptimized that CouchDB copied the entire database without the deleted records. In our case, the disk we had was about 90% occupied, so we couldn't run cleanup.

So why was CouchDB a failed experiment:

First: The problem with handling deletions was rather serious, for a database. It's quite painful for a database to need 2x your anticipated storage; and for that database to continue creating records even if it blocks something like garbage collection. This lead me to conclude that the database could have other bugs lurking. I need to trust that the database won't lose data or become inoperable due to its own bugs; or due to beginner mistakes with unfamiliar technologies.

Second: CouchDB offered no features that I needed for my project that I couldn't get elsewhere. I just needed simple key-value lookups.

Third: Learning curve: Everyone and their dog knows SQL. This was handling a niche use case, so most likely, whoever was touching it was going to be very unfamilar with the code. Picking a well-known SQL database helps keep that learning curve in check.
as a solo developer,

git commit -a -m “wip”

every few hours
https://vonguard.net/

- https://vonguard.net/2022/10/30/utterly-insane-movies-weve-w... Terrible movies.

- https://vonguard.net/2022/04/27/why-david-and-peter-paul-are... David and Peter Paul made some good movies.

- https://vonguard.net/2021/09/03/5g-enables-the-real-peer-to-... 5G is the final key to the peer-to-peer revolution.
I have a security clearance and the guidance I received (and was explicitly asked about during my recertification), is that I cannot view Wikileaks at all, and any classified material leaked there.

So I didn’t view Wikileaks or any material as I don’t want to lose my clearance.

But the question was about whether it’s legal or not to view leaked material. Security clearances are a different matter and are going a step beyond what’s legal or admissible in court or what someone would be prosecuted for.
Not everyone can be a software architect or technical lead, though. Is the pyramid going to grow as AI pushes the base abstraction of work higher?
Do you use alpine for the host os as well as the vms? Been concerned that musl would prove a handicap.

Also, can confirm void is amazing on the desktop.
A personal journal of the places we travel as “hybrid digital nomads”

https://digitalnomadder.micro.blog/

Just random career related links. Most of the links I found on HN.

https://thecareerist.micro.blog/
http://justinhj.github.io/

mostly scala and functional programming
The NTSB is great precisely because they deal in facts.

This article does not, yet presents speculation as fact, without critical context that the NTSB certainly considered.

Facts are important because you can learn from them, speculation about human behavior is sensationalist bullshit because you can't prove it and can't reliably prevent human error in the first place.

For example: only a handful of 372's were ever ETOPS certified and I'm pretty sure this plane was not one of them. Should airframes with lower reliability like that even be allowed to operate in areas like Hawaii in the first place? Clearly these pilots weren't prepared to handle the situation, what needs to happen (and what the NTSB aims to do) is to avoid putting any other pilots in the same situation, from a holistic perspective
But it didn't used to be, and not because of inflation. Somehow old school companies like IBM, Hewlett-Packard and NASA managed to hire top engineering talent by doing single interviews instead of multi-day seven interview slogs.
https://www.parand.com/

Mostly tech and machine learning along with random nonsense.
https://zef.studio/

Mostly journaling projects in the physical realm. I’ve been enjoying making things with wood, leather, metal, electronics, 3D printing. And some introspective writing, mostly for myself. I have lots more drafts of projects that I’m hoping to publish in the near future.
Mine is at https://aswinmohan.me
> Whether or not the benefits of AI will accrue disproportionately to the top percentile has less to do with the technology, and more to do with economic policies, which vary by country.

Economic policies in most developed countries favor multi-national corporations because such entities generate a lot of economic activity and are tied up with the military-industrial complex which utilizes research and development from these companies alongside their own R&D for weapons. The chips in your iPhone are the same ones in fighter jets, helicopters, tanks, satellites, wireless control towers, augmented soldiers, and their "smart" weapons. Given the current state of affairs it is pretty much guaranteed that the benefits of AI will accrue to the same people who are currently in charge of the techno-industrial panopticon simply because they are the ones with access to the resources necessary to fully utilize AI systems (at the very least you need a lot of GPUs and maybe even a modular reactor or two to keep the thing functional along with the network to feed it data for "learning").

I think the folks worried about existential risks don't spend enough time on the existing problems of advanced digital technologies and the arms race already in effect between rival nations for building increasingly more powerful artificial decision makers and controllers. We are already fast approaching terminator territory[1][2].

1: https://www.popularmechanics.com/military/aviation/a42868467...

2: https://www.thedrive.com/the-war-zone/39899/darpa-now-has-ai...
https://www.matthewhowell.net/

A very small bit of writing, a reading log, some photos, and link to other work.
Ask HN: What problems do Generators solve in Java?
There has been some discussions lately about the need to support generators now that Virtual threads are a thing. I am reading up some examples and I still don't understand what is a generator and why is it powerful.

Some examples from Python: https://www.programiz.com/python-programming/generator

Some examples using plain Java 8: https://www.mguenther.net/2016/01/functional_generators_in_java_8/index.html

I am a little confused why this is regarded as a powerful pattern. It seems I can implement the same using a normal `Iterator`. For instance, from the Python example:

class PowTwoGen {
final int max;
int n = 0;

PowTwoGen(int max) { this.max = max;}

boolean hasNext() { return n <= max;}

int next() { return Math.pow(2, n++); }
}

The examples for the Java 8 article can also be done with a simple method call but instead the examples with the Generator seems overly complex. What am I missing?
...and that's where you stop using regexes exclusively and start using better parsing techniques.
I use gpt-2 and j still locally for random stuff here and there. It works better for some things for sure.
https://ubuntu.com/blog/lxd-virtual-machines-an-overview
Fascinating! Can I ask how you use ChatGPT for debugging? are the bugs you've used it with more high level, "this is what's happening" kind of things? Or could you give an example?
Snarky peer comment, but if you can do this, then yeah, it sidesteps all of the complexity of a distributed authorization system. The trade off is the single point of failure: when your token verifier goes down, so does the entire system.
Wouldn’t such an event likewise knock out most automobiles, appliances, electrical systems, etc almost immediately leading to the collapse of urban food security and so on? Loss of internet seems like a minor inconvenience if you’re trapped in a city with a couple million hungry people and there’s no way to flee but foot or bicycle.
You mean like Emacs, the comprehensive operating system without a decent text editor?

I've noticed this, how most operating systems (or, rather, shells) are structured around running "applications software" to perform specific tasks, and how it differs from computing with Emacs (or Smalltalk, or a Lisp OS) where all of the system is available all the time. You get some of that back in Windows with COM, but even COM was oriented toward siloed applications being able to call into each other's silos. It took Microsoft some time to make even common controls and dialogs available. There were aspects to the Office UI, like the status bar and toolbar, that became table stakes in other applications -- but you had to hand-code them yourself if you wanted them.

The Macintosh, or more properly the Lisa, ruined computing. Had Jef Raskin's Canon Cat taken off, we would have seen a vastly different computing landscape.
Vimeo has exactly the business model you propose. Total data delivered to viewers is limited in all Vimeo plans, and you need to pay them extra if you want a viral video.

It's been about a while, and so far hasn't gained a large userbase of viewers - at least in part because content creators don't want to pay for random non-paying people to watch their videos.
It is trivial, absolutely, absurdly trivial, for any site to opt out of Google caching.
LXD isn't an alternative to podman. Podman is meant to run 'application containers', where each container has just one running process. LXD is meant to run 'system containers' where each container is a full Linux distribution with an init system and (possibly) multiple daemons. LXD containers are like light-weight VMs. Unlike VMs, LXD containers share the host kernel.

You could run podman or other OCI containers inside LXD. I use LXD to test multi node K8s (K3s) on my desktop system.
People often feel like the mods are singling them out unfairly, but most often we just didn't see the other side. We can't read everything.

If there's another comment that you feel should have been moderated but wasn't, I'd be happy to take a look, but I'd need a link.
This has happened to me with Django/DRF twice. I've just accepted that it's more efficient to read and internalize the documentation.
Just a note - I went to the ?100 link you gave, but my mouse cursor was already hovering over the compass area, which caused the value to deviate basically right away because I was moving my cursor before knowing what the page was doing.
https://ihavea.quest

I blogged about my involvement in FOSS last year. This year has had no updates on account of being the hardest year of my life yet, but I'll get back to it this month.
Maybe... or maybe it's got the same off-by-one error from the StackOverflow answer it's parrotting?
Sounds like it might go that way though.
> [...] the original poster was referring to the more common definition of temperature where at 0K nothing moves anymore.

That's a common simplification, but not really the definition. At the minimum, quantum mechanical effects make this complicated.

But you are right in a sense. From Wikipedia:

> The absolute temperature (Kelvin) scale can be understood loosely as a measure of average kinetic energy. Usually, system temperatures are positive. However, in particular isolated systems, the temperature defined in terms of Boltzmann's entropy can become negative.
Canberran here! It’s bloody lovely. You don’t appreciate it until you go somewhere else.

Worth noting that ‘since the 1930s’ ≈ ‘since the city was founded’.
I feel the same with Twitter. Recently, no matter how hard I try to train its algorithm, it always finds new crappy short videos or click-bait threads to push on my timeline. Feels like a naive "crank the engagement up" lever has been pushed. It's fine as a business strategy in itself, clearly it's been working fine for many companies, but it just doesn't align with a Premium subscription model.

People don't voluntarily pay to be treated as semi-intelligent scrolling cattle, we fall into endless scrolling unconsciously and pay with our eyeball-time, but we don't go "oh I'm gonna shell out $8 for the privilege of browsing an inferior TikTok". He's got to chose one strategy and commit to it.
https://zefram.xyz
I had a so-called terrible triad (MCL/ACL/meniscus) so in addition to ACL reconstruction, my surgery included meniscus debridement. I unequivocally needed surgery (it was a contact injury playing sports), and thanks to surgery made a 100% recovery (albeit with a ton of PT!). That said, if surgery can be avoided in less traumatic tears (e.g., "stop-and-pop" ACL tears) so much the better!
People sometimes refer to ACL reconstruction surgery as “ACL repair.” Unfortunately, we can’t surgically repair a torn ACL.

ACL reconstruction surgery involves drilling bone tunnels into the tibia and femur, removing the torn ACL fibers, harvesting a tendon from your body (or from a cadaver), and affixing that tendon to your tibia and femur in place of what was previously your ACL.
It's much harder than it looks and almost impossible to get consistently correct.
Focusing on the things I can control I keep a Blu-ray disc backup collection of my most important family media etc.

Other than that a nice bunker with canned food would be nice but that's approaching tinfoil hat territory.
This is the worse

>The LXD section on the LinuxContainers community forum will slowly be sunset in favor of the Ubuntu Discourse forum run by Canonical

A lot of useful lxd information are in forum.Stephane and the team is super helpful there.

Also snap auto update kills my containers so I had to put on held.

They also had just fixed a long standing bug that makes rebooting lxd container sometimes fails due to snap messing up with zfs mounts.
Ohh... yeah that happens. I thought it was describing the entire page flashing as solid white.
It depends on what you consider "people". How far back before our ancestors no longer qualify?
> Most commonly it's a question like "tell me about a time when you encountered a bug in production, how you discovered it and the steps to resolve it". And instead of answering the question, they tell me about what they _would_ do, if they _had_ found a bug.

Of course they do, it's only natural and smart. They hear your standard formulaic behavioral question and cut to the chase instead of being sheep.

If you want real answers, hold real, natural conversations. Don't read items off a checklist.
Video ads pay far more than audio-only ads. Brand advertisers want to get their logo in front of you.

I bet the economics don't add up for running a video hosting site, yet only getting revenue from audio ads.

Even spotify hasn't managed to survive on audio-only with ads - they have to put in other arbitrary restrictions like 'you can't play the song you want to play' to dissuade people from using the lossmaking plan.
Having seen the state of concrete buildings in China, I'd prefer the alternative.
Reading admitedly quickly, it appears to actually say that there shouldn't be more than 2 trillion total humans, and we're, at 117Bn, so yeah, there's a lot left if we make it all the way to the upper bound.
Arch have it packaged as nonsnap too
"Error bands" aren't really calculable for something like this, because a lot of it is as much definitions as anything else. As the article points out, there is a lot of uncertainty just when we say the first "modern home sapien" "counts" as a person.
Looks like it was under temperament:

"Some people are able to remain rational and continue to follow their process even under great duress or during periods of external upheaval. Others get swept up in the emotion that typically runs amok during such circumstances, and abandon their discipline."
My Conversation with Robert F. Kennedy Jr
I can't find anything that does. It's like they intentionally wrote their software so that it can't work with anything. I wish they would just give us a proper linux release. makes me sad.

Lutris tries but it still can't handle it.
Well yes, the entire page flashes white if you have FOUC because you implemented it wrong. And since mobile browsers are usually fullscreened, it means the entire device flashes you; I assume you don't use dark-mode much if you haven't noticed this. But dark-mode users do notice and once in a great while, even complain to you about it.
Again, I don't see the tautology in my statement, and I know I'm asking for elaboration in good faith, so there's no way I could see it from your perspective.
People have been saying this for years already.

Might it happen? Sure.

But nothing seems to have suddenly increased the likelihood of this recently, so I'm not sure where the "very soon" is coming from.

Other than maybe you just personally realised they're not badly aligned.
> It is now recommended to have a refresh token with an expiration date, that can be long, and have that refresh token be single use. When it is sent to the authorization server to get a new access token, the authorization server will revoke the old refresh token and issue new refresh and access tokens.

I've been wondering briefly about this specific flow. It seems prone to a problem: if the refresh request gets sent successfully (and then invalidated), but the reply is not received for any reason, then the authorization chain is broken. There's no way to get a new token. Is there a good 'standard' way to handle this problem?

On brief reflection, while writing this comment, it seems like the only solution is to fall back to some other (long-lived) identity (from which the original OAuth token was derived). But that can be an inconvenient fallback.

> The interesting property here is that if the authorization server sees the same refresh token twice, it means that the token was stolen: either the thief or the legitimate client already used the refresh token, and the other one is now requesting an access token too. In that case, the authorization server must revoke all current refresh and access tokens for this client.

That seems like an invalid conclusion to draw though. Multiple requests could simply be caused by failures (including race conditions). Should the refresh token really be single-use?

One alternative that I could imagine is that the refresh token can be used multiple times, but whenever it's used, then only the most-recently created tokens remain valid -- with all prior tokens (that were created from it) being invalidated. This would enable token refresh to survive failures, while also making any tampering evident (due to the appearance of unexpectedly invalidated tokens).

Edit: Another strategy might be to link together all access tokens into one "session": whenever a refresh token is used to create new tokens, those all count as the same "session" and the session is what's invalidated. (The 'session' would be established during the process issues the first tokens).
i enjoy the lighter ui, and spamfree ux
>...The sharp point caused by a distal fracture of the individual's right humerus points towards this theory of amputation. If the arm was amputated, this demonstrates one of the earliest signs of surgery on a living individual.

Deliberate amputation at 45,000 to 60,000 BCE! I suppose they could have immediately cauterized the wound, but it is incredible that someone would survive the procedure without succumbing to sepsis or blood loss. Would they have even considered a tourniquet?
A lot of longevity interventions (e.g. dietary antioxidants, sunscreen, reducing alcochol consumption) do slow DNA damage.

Getting people to take preventative measures is tough, but it's probably easier than reversing damage after it's done.
There's verbiage all over the site about a "new look" so maybe it is rolling out slowly to sections of the customers.

Mine currently looks like this: https://imgur.com/a/iFDVVwl
AI can pick top-performing private equity funds better than investors – study