skysight-inc/HackerNews huggingface dataset:
A couple of economics games I really liked were:

Capitalism Lab, which builds on the original Capitalism and Capitalism II by adding several more options (some through mods).

Wall $treet Raider, which you can learn a lot from about various big business dealings and economic trends. Different ways to use subsidiaries, holding companies, greenmail, liquidation, diversification, etc.

https://www.capitalismlab.com/

https://www.wallstreetraider.com/computer-simulation.html
It means there is special protection for string-data that is not available to anything else, and that library-authors get panic reports about immutable byte slices. To that degree, it's something that the specialized type exposes you to but the type system does not adequately protect or signal.

But yes, AFAIK this requires use of `unsafe`. Which does change things, and puts the blame for misuse squarely on the immutable-byte-slice creators.
I think "should" is a bit strong here. There are always tradeoffs. Having support for very long names can cause other problems, like the opportunity for abuse, making it hard to format UIs, making human inspection of data much harder, or even limiting algorithmic efficiency.

For example, US Passports have a relatively small limit for name length (I think it's around 20 characters each for first/middle/last).
they were thinking that it would draw your eye
> It also grows the intellectual souls

maybe only a byproduct, it's more of a means to an end system. people are at the universities they are in because going to college still means something to the job market as opposed to learning everything else where. The people who really grow there 'intellectual souls' are those who would grow it regardless of environment/circumstance.

while I do believe it is a great thing for people to desire to advance themselves intellectually I don't believe it should cost as much as it does. It's ridiculous.

> If a person is smart enough to receive it + many aren’t smart enough for it

the benefits of becoming educated in its most fundamental sense don't vary with intellectual ability.

the way educational institutions are currently structured is one of many ways of educating people, so the question becomes whether that way of educating is optimal for an individual.

----
(opinion)

universities should be purely for the pursuit of knowledge and shouldn't be there to provide relevancy to the job market. That should be the job of systems specializing in providing pathways to certain job market sectors.

currently universities conflate the two which has lead to most of the problems they have been ascribed with today
Seems likely, so I unvouched and flagged it. Thanks!
Non-paywall link: https://archive.is/7xMdY
Using ChatGPT to control a smart home
Boost libs circa Ubuntu (14 or 16.04) had JSON parser that allowed comments, while the newer Boost in Ubuntu 20.04 (and I think already in 18.04) had "updated" it and then it didn't allow comments any more.

Just a small anecdote of Boost changing behavior that broke some of my stuff.
As someone who has taught college, off and on, for many years, people should also be wary of romanticizing college.

The question is always "relative to what?"

Anyway, the move towards apprenticeships has arguably been underway for years: https://seliger.com/2017/06/16/rare-good-political-news-boos...
So wait, if a person fails to benefit from college, it's their own fault for not taking what was "handed to them on a platter" (as you mention in another of your posts" --- but if they fail to self-educate, it's only natural and thus a problem of not going to college?
Not at all, I'm saying that HN is coopting the word "hacker".
I think there is SOME truth to this. I remember being there and thinking if this could go beyond their confines but it never tookoff!:)
Any idea of how much faster we're talking here?
I lived in Chicago for 15 years. Tavern-style pizza in Chicago can be good, but Piece's pizza (New Haven style) is better than most Chicago-style pizza. My go-to before I left the city was Crushed Pizzeria, which is Neapolitan-influenced. The only place I can ever remember eating decent tavern-style pizza is at dive bars. The thin crust from places like Giordano's and Rosati's is a soggy disgusting mess.
> Slices (largely) behave like this in most languages

Only on assignment, not in appending.

> Go's contribution is mostly that slices and append are ubiquitous

Go's contribution is the conflation of slices and vectors, which in most languages are separate (or really most languages only have the latter and don't provide access to backing arrays, thus precluding this specific confusion).
I think this is something programmers intuitively learn pretty quickly (in fact I'm only just learning that there is actually a name for this idea), but it's an interesting principle to explain to non-developers.

Back when I was doing agency work, on more than one occasion I had clients question why modifying some entity to permit multiple related entities instead of one would be more work than they were anticipating.

The question was usually along the lines of "would it help if we were to limit related $foobars to three?". But of course, from a structural perspective supporting three related records is usually exactly the same amount of work as supporting arbitrary amounts. Yeah I could probably hack in some fixed amount of extra records, but that's just going to create an increasingly large mess when your business grows and you realise three...twelve...one hundred wasn't enough. Might as well do it properly from the start.
What's the scale at which you could turn a reasonable profit for the work involved?
Sounds like you attended a bad school. I earned a MS in CS at age 30 atop my BS in zoology and 6 years of work as a programmer. My MSCS program introduced me to many new and useful concepts and techniques that have informed all the nontrivial computing tasks I've undertaken since, now 33 years. That degree has proved to be the best investment of my life, by a large margin.
The FOSS courseware, Open Learning Server, will show a sneak peek of what they're building on Tuesday, Mar 21 at 7 pm eastern time at my user group.

Livestream URL: https://tinyurl.com/mtna663k
>There is literally nothing stopping a 20 year old human who lives in Western society from growing their intellectual soul through learning

Except for humans in general being utterly shite at pursuing learning without guidance or an immediate goal, both in regards to the learning effectiveness (i.e. how much you learn per amount of time or effort), and having the discipline to keep the grind

Most people are not, in fact, capable of just going to a library (or using the internet) every day and deeply learning a subject. They need an external force to actually keep grinding, even if they do want to do it by themselves
Your post appears oblivious to the distinction between a question of fact and a question of law. You, in fact, are judicially illiterate.

I don't care how it's done in France. This is all about the US. An appellate court here deals only with questions of law. "Societal customs" may have created our system, but that's the system we have.
The Killer Use Case for LLMs Is Summarization
Ask yourself where Lisbon and Portugal got the resources to build itself up in the way it has and it's the same story.
I've found that it's the other way around, Europeans want to call Americans refugees because they themselves use it as an insult. If I started introducing myself as a refugee/migrant worker at my tech job, people would think I'm making some kind of sick joke.
There are upsides, like a certain degree of pride from really feeling like you worked hard and going to bed truly tired. Those are the things I miss about that kind of job.

Going to bed as that particular kind of tired was just awesome.
what about that newer dictionary cannot be provided by a download?

your browser probably updates itself every week or so.

there is absolutely nothing about these kinds of services that require running them on someone else's computer, save for conspiratorial reasons.

see also: machine translation (apple offline translate, firefox translations et al work just fine on your machine).
That works until you need to recover from key compromise. As Bitcoin has shown us, "not your keys, not your life" is not a socially acceptable security model.
"Hey Telescreen, reorder trash bags and look up recipes for risotto."

Huxley's extrapolations were much more on-target than Orwell's. He realized people would line up to buy things that Orwell assumed would have to be imposed at gunpoint.
This is probably a rule I believed in as a beginner, and completely don't believe in anymore today.

Lets take a look at an exceptionally well designed system: single-error correction double-error detection codes. Also known as "ECC RAM". The implementation of this only works for *exactly* 64 bits + 8-parity bits.

Now sure, we can talk about how we can generalize SECED ECC to different numbers of bits or whatever. But I'll also point out that the only implementation in widespread use is ECC Memory, the 64-bits + 8-parity bits (72-bits total) implementation.
Should have gone to the Euro places that used dinars and you would've needed to buy pants with bigger pockets after visiting the bureau de change.
Two is quite relevant for relationships
I've read the article but I'm having trouble understanding the context of what this was in response to. The article quotes:

> I formulated it in the early 70s, when I was working on programming language design and annoyed by all the arbitrary numbers that appeared in some of the languages of the day.

Was it just an issue with languages in the 70's then? Because I'm struggling to think of any "arbitrary number" limits in modern languages.

Obviously we have numerical limits depending on if a variable is a signed 32-bit integer or whatever. But those aren't arbitrary.

Like would older languages just arbitrarily say there couldn't be more than 100 elements in an array, or something?
https://github.com/tloen/alpaca-lora
EXIF stripping won't necessarily catch it (but probably would in most instances - depends on how you do it), but reformatting or reencoding will.
lmk if you run into problems: I have Office 2010 running super stable in Arch on wayland in hidpi. It's a pleasure to use it: excel cold starts in about 1 second
We kept the Ruby forms engine as unmanaged code written in C/Win32/COM and tried to integrate it with Basic code compiled and running on the CLR, but it didn't work very well. There were a lot of problems back then (this was 25 years ago now, a couple years before .NET 1.0 shipped) with CLR/COM interop. One particular problem I recall was that the interop layer did not support calling event handlers via IDispatch which the Ruby forms engine required.
Only by the Democrats. Iowa is still first in the nation for Republicans, and most of those Iowa corn farmers are voting for them anyway.
If everything eventually gets buried, shouldn't the roof of every building be domed eventually, to prevent cave ins?
I seem to recall that there are certain languages (human languages) that have cases specifically for talking about pairs of objects, situated semantically between singular and plural. I think one of these is an archaic form of Greek, maybe ancient or Hellenistic.
If the CDC bought data showing the messaging performed worse than average in my zip code I'd consider that a clever use of public funds. If they bought data showing whether I followed the rules I'd be furious.

This article comes very close to implying the CDC bought individually identifying data without explicitly saying it. That's disingenuous when all they have is a purchase order with a dollar amount and vendor name.
Around 10% faster.

In D130810 the speedup is given as:

Performance linking some programs with --threads=8 (glibc 2.33 malloc and mimalloc):

- clang: 1.05x as fast with glibc malloc, 1.03x as fast with mimalloc

- chrome: 1.04x as fast with glibc malloc, 1.03x as fast with mimalloc

-internal search program: 1.08x as fast with glibc malloc, 1.05x as fast with mimalloc

In D133003 the speedup is given as:

Speed-up with mimalloc and --threads=8 on an Intel Skylake machine:

- clang (Release): 1.27x as fast

- clang (Debug): 1.06x as fast

- chrome (default): 1.05x as fast

- scylladb (default): 1.04x as fast

Speed-up with glibc malloc and --threads=16 on a ThunderX2 (AArch64):

- clang (Release): 1.31x as fast

- scylladb (default): 1.06x as fast
Using Markdown in Projects
Sorry if I offended your sensibilities. Feel free to downvote my comment if you don’t think it adds to the conversation.

I would appreciate, though, if you didn’t misquote my comment when replying to it. Neither of the things you have quoted are things I wrote. Worse, they are a misrepresentation of my comment.
There are some harsh truths in this situation that other commenters mentioned and plenty of good advice. IMO the most important one, move on - you seem like a very capable person and pretty sure you have great opportunities in front of you. Use this to start a new chapter and you'll be very content that this happened when you look back :)
Detroit-style is widely available in Chicago. Fat Chris's is decent. The chain Jet's is everywhere too.
Public key infrastructure in general is hell to support, especially given how long lived humans are.

Imagine trying to ascertain in 2100 if a particular will signed by a 20-y.o. using a 2022 digital signature is valid or forged.

We don't even know what is going to happen to the reliability of the algorithms themselves, much less cert issuers, revocation lists etc. Companies come and go. Certain files from the 1990s are already unreadable.
Somehow you think that your unselfish perspective will result in corps raising wages abroad? Maybe a bit but certainly they will be aware enough to control wage inflation there too. The benefits aren't going to accrue to the commoner.
I'm not rose tinted about anything domestically, I think all the shennanigans with private bankers acting as a leg of government will likely end with us all dead, or at least a vast majority of us.

As for the international concerns, its very hard to not be concerned when you have the chinese with so much history going against them including their own documents, coupled with intentional acts to interfere for that purpose.

You don't run illicit police stations out of your embassy, spying sure, but domestic police forces internationally for shadow ops is another thing. (https://www.bbc.com/news/world-us-canada-63671943)

Then there's other things like targeted blocking of access to accounts due to 'technical issues' when you try to sign up for continuing education (in the US).

For example, GeeTest is required to be used by all California Community Colleges to even be admitted. Of course if you just let it happen it just happens in the background, and there is some whitelisting, but you have CCCApply staff saying you have to run and send a intrusive fingerprint to china if you want to apply for college (in the US). Yeah its been reported to CISA.

Maybe you just don't work in a profession where you see these things on a day-to-day basis. Its pretty in your face everywhere you go, unless of course your living under a rock.

Unfortunately, you are wrong about the effectiveness of the campaigns, and with education you wouldn't have as many people locked into that cycle. The way the psychology works, if you know and can identify it critically, its less effective thanks to reversal.
>more education is almost always good

Yes, but we also need to be cognizant of the opportunity costs: 4 years of gainful, productive employment minus educational debt.

I don’t think university has a monopoly on education any longer. But they still maintain one on accreditation. As a society we need to take a hard look at what credentials certain degrees really need.
Dell has a better description of what’s done to the custom image and how most of those changes are later upstreamed. https://www.dell.com/community/Developer-Blogs/Dell-s-Develo...
If you promote it less you decrease its "acceleration" dangers, I guess.
I moved back to the NW suburbs after being in the city for 15 years, and good pizza is exceedingly hard to find out here.
Depends on the job I think. Every person I know who does any type of home contracting work that I know of is drowning in business and raising rates because of it.

- HVAC

- Plumbing

- Electrical

- General Contractor

- Drywall specialists

- Roofers
That sounds about right. We bought a '75 which was the first year they came into the US. It was a fun and versatile car. We drove it until it was literally falling apart. The portions of the floor pan where the front suspension wishbones (under the driver's and passenger's feet) had rusted away. I tied the two sides together to keep it on the road a little longer but it suffered from excessive toe in on acceleration. ;)

IIRC it was about $2700 US for a four door mid level trim. No power windows. No A/C. No power steering or brakes. None needed in a car that light.

And decent fuel mileage at a time when US cars all suffered from horrendous fuel mileage due to pollution controls. I had the feeling at the time that the big three US manufacturers were punishing us for demanding cleaner cars and VW came along to show us how it was done. And that was before they adopted fuel injection.
Full-Stack doesn’t indicate competence.
A good developer will write good software. When the task is building a nice GUI, he will. When it’s building a performant datalayer he will also.
Refusing to work on stuff outside ones comfort zone may indicate mediocrity.
Personally I always do what has the most positive impact for my team and my clients.
In the end frontend and backend is still just software - input-processing-output.
The technical details can be learned quickly. The proper mindset to learn effectively may not be acquired so easily tho…
Because nil is a special thing in Go.

nil is not a value, it's a predeclared identifier.

it represents zero value for pointers, interfaces, maps, slices, channels and function types, representing an uninitialized value

len(nil) feels like it should work if you think of nil as the same as "value of empty array"

but what should be:

var p *Struct
len(p)
???

There's no "length of zero-valued pointer".
Totally agreed. I think it's absolutely a best practice to set limits.

Code is generally designed to operate within certain "reasonable" performance boundaries, and when it goes outside those you need to think whether code should be rewritten to accomodate it.

Just a tiny example, but I regularly deal with long (800+ page) PDF's on my iPad, reading parts of them in the stock Books app. When I select text to highlight, the context menu unfortunately puts "select all" directly next to "highlight". Of course, every so often I accidentally hit "select all", and then I have to force-close the app because otherwise it just freezes for 10 minutes as it extracts and selects the text on every single page.

When really, it needs a limit to detect that, hey, if the PDF is over 20 pages long then just don't allow "select all" anymore, because this isn't the right tool for the job.
It was the biggest genocide committed against white people in recent memory. people in general dont' care about what happens to black people (beligan congo, rwanada), cambodians (kumir ruge), or palestinians (witheld to avoid being downvotes to oblivion).

closest thing we can get to a genocide/culturcide of a people currently that anyone in teh west cares about is the uighurs and thats mostly just a half hearted straw grasp to justify anti china sentiments.
No, there is no way to disable it via registry or group policy that I know of.
Computer nostalgia is neat for a little while and emulation is making it easier than ever.

As for the next generation - They won't go back to what we had but move forwards onto something completely different and new. Hopefully we will understand it, or just be the old folks yelling at clouds and children about how the world has changed!
Ask HN: How to Use GPT-3/4 Beyond the Immediate GPT Reply?
I feel like I’m missing something here and I’d really like for someone to help clear things up for me. As far as I can tell, GPT is really good for any chat based applications, but if you want to perform any sort of logic beyond returning whatever GPT replies with, it seems limited at best.

For example, let’s say I want to conduct a survey using GPT to “chat” with a user. But let’s also assume I want to collect answers to that survey using a simple scoring system (1,2,3,4,…) extrapolated from the answer. The conversation using GPT would be something like this:

User: Hello

GPT: Hello, would you like to start a survey? Im blah blah…

User: Yeah sure, whatever I guess.

GPT: On a scale of 1-5, how cool is AI?

User: I guess 4

So now I’d need to save the answer that the user provided, but “I guess 4” is not what I should write to my database. I need to write “4,” but accurately parsing that has two issues: 1. I don’t know at what point this specific question was answered, and 2. There could be multiple integers in the answer, but due to the conversational nature, picking the right one can’t be done accurately.

So I guess what I’m curious about is: how do I use GPT in a scenario where my code is reacting to replies rather than a human simply chatting with it?

I’ve used some system prompts to ask for specific reply structures, but even those are flakey at best and inconsistent. Aside from pushing replies back through GPT to extract intent, I’m not sure where to go at this point. I’m guessing as I tinker it’ll open up more possibilities, but I’ve always found asking those with more experience to help me “skip the line” in terms of head banging.
I've written up a tour of some of the RISC-V related changes in the LLVM 16 development cycle https://muxup.com/2023q1/whats-new-for-risc-v-in-llvm-16
> It also grows the intellectual souls, exposing people to far more depth of thought

It doesn’t uniquely do this. You don’t need college to have intellectual conversations or be exposed to new ideas.
Yup, I remember the Anarchists Cookbook, telling you how to make mortars, and napalm out of polystyrene & petrol.
Not quite true. The USDA regulates descriptions of all eggs packed with a "USDA grade shield" whether organic or not.

Not all USDA graded eggs are cage-free, and not all cage-free eggs are graded by USDA. But, eggs packed under a USDA Grade Shield and marketed as cage-free – or with any other production claim – must be source-verified by USDA through onsite farm visits, at least twice annually, to check that the laying hens are housed in the appropriate production system.

https://www.usda.gov/media/blog/2016/09/13/usda-graded-cage-...
I think it’s okay to talk about the core issue that leads to that. From the linked tweet it looks like there’s edit data stored in the image, allowing the original to be recovered?

Do you have a specific concern to warrant your comment?
Logs. jsonl is a popular streaming format.
It may be wrong, but it shouldn't "deeply offend" you. You're taking this way too personally.
Well, John Carmack is a game programmer, at least originally. In games one has strong upper limits on how long it can take to calculate the next frame. So, it may very well be that something can be said for this in this context. I am not sure in general, though. If one limits the length of the name of a person in some record one can start waiting until one day a person arrives that has a name that is one character longer and then a programmer needs to get involved to increase the limit. Okay, maybe there exists a ridiculously large maximum name length such that this problem is unlikely to occur. Then one may still have the problem that if all people would have names that approach this limit, the system still might get too slow as well. So maybe we should impose a limit on the sum of all the lengths of all the names in the system. Hmmm... Kind of gets a bit too complicated and arbitrary for my tastes. I think for many systems Carmarcks advice really is not very good.