skysight-inc/HackerNews huggingface dataset:
Corollary. The 30 most disappointing under 30 [1]

[1] https://www.newyorker.com/humor/daily-shouts/a-selection-of-...
https://archive.ph/me55a
Optimizing text is hard because you seldom up front know how much memory will be needed and allocations are slow.

Another way to do it is to use:

typedef struct{
size_t allocated;
size_t used;
char buffer[];
}String;

This lets the header and the string be the same allocation. Thats a huge saving. Its also useful to store the allocation and use size separatly so that you can reuse / modify buffers. The used field lets you use memcpy without looking for string termination.

You can make it even more complex by adding flags if the string is on the stack or on the heap. That way you can do things like:

String buffer = MACRO_TO_CREATE_STRING_BUFFER_ON_STACK(256), *b;
b = &buffer;

b = do_processing_with_buffer(&b); // allocates on heap a larger buffer if needed

string_free(b); // frees buffer if its on heap.
The fact that none of his policies were socialist, however, made him not a socialist.

Not only was he not a socialist, and opposed the name change from DAP to NSDAP but didn't yet have the power to prevent it, but he so detested the "left" of NSDAP, which wanted to merge some left wing economic policies with far-right social views, that as his control over the party tightened he got them progressively expelled, until he was finally able to have the rest arrested and/or murdered during the Night of the Long Knives.

That's how much he hated any hint of lifting socialist ideas.

More importantly, nobody contemporary to were in any way confused about their position. It was right wingers like Von Papen and Hindenburg who let him form a government. It was only the right wing parties who voted with NSDAP. It was only the right wing press, both in Germany and abroad, who expressed support for him. This attempt at trying to conflate NSDAP with socialism first started after the war.
I learned about the protest on TikTok from scrolling, probably because I have shown interest in content about China.
Puter apps are just iframes that point to a web address. I claimed the name "Puter" to point to Puter's own web address. If you open the app, it will load Puter again inside, which will restore your session that contains the app, loading another Puter inside, which will again restore your session that contains the app...
I mean, take it with my best intentions, "No shit Sherlock"? Audience of AoC knows that Aoc 2022 just started.
Can I ask a question about these massage guns? Why are some of them so expensive?

I wanted one but balked at paying $500 for what seemed to be little more than a battery powered reciprocating saw with a foam ball were the blade normally is.

So I bought a knockoff for $35, just to see if it was any good… and it was! Bought it at the start of the pandemic and it’s still working fine.

I’m sure the theraguns and hypervolts are better than my cheapo, but there’s just no way they are ten times better (like their price suggests).
Say that outloud and often and some people will use it against you.
In fact bettercap is a very obvious pun on the venerable ettercap, I suppose.
Re #3:

A big downside is that you you can't easily take ownership of an existing buffer and treat it as this string type.

string s;

char some_buf[];

string_take(&s, some_buf, some_capacity);

Also you would of course never dynamically allocate string structs, just the data member if needed.
Snowden was specifically charged with stealing the information as well as releasing it.
I’m glad you did.
The DoD already had something like Starlink. SpaceX is trying to sell a lower cost version of the same thing, but cost savings isn’t that compelling for congress who sees costs as much as a feature as a bug.
You say that another entity deciding what you, as an adult, can interact with is unacceptable. But the government has many laws that prohibit interactions with many things. You cannot trespass in many places, for example, to make things easier and safer for everyone.

I am not as libertarian as you, and many people are not. It's not that they don't think ideas through enough to have a well-founded opinion, as you say. They disagree with you.
"Worse, this isn’t even intentional. It’s happening because ministers have not really thought through the implications"

It might be right that the ministers/politicians have not really thought through the implications. But someone else surely has and is making censorship (of the things that challenge their power) a matter of policy. The actions of big tech are a matter of their internal policies. Which "populist" opinions politicians respond to (and which they ignore) is a matter of policy. In an age when populist opinion is manufactured through control of content and media, politicians are no longer moved by the opinions of their constituents but rather by those holding onto that control. Instances of bipartisan support in the US, for example, are merely instances where the topic is important to the elite and need bear no relationship to the opinions of the people.
> After a month at a Zen silent-meditation retreat, Heller went back to his job at Goldman Sachs as a commodities trader in oil and gas.

That sounds pretty successful to me.
> The trick is the size is hidden before the adress of the buffer.

That is how strings use to be stored before C made the choice of using null-terminator. Pascal stored the string size before the string data. The advantage of relying on a terminator symbol is that the string size can be any length where as storing the size at the start forces the string to not exceed certain size.
It’s really easy to exhaust the free photo storage and then pay an iCloud storage fee for the rest of time so I see a clear way in which the camera brings in revenue.
We need more of this in the world. Less bragging, more humility.
True, but those are just the conditions on which Xerox accepted to be copied.

Xerox' acceptance to be copied doesn't change the fact that the whole concept of GUIs and LANs were alien to Apple.

Please note that I used the term "copied", not "stealed".
I have, when it came out, though I can’t say I’ve heard of anyone being excited about enhancements to it since.
Transparency would go a long way. The fact that all of this is happening behind closed doors means that the process is just begging for abuse.
“You’ve read your last free article.”

So off putting. I feel like I’m now ready to face the jury.
I am not aware of anything revolutionary going on in science at the moment, would you care to elaborate?

What advances in computing? As we approached physical limits we've seen cpu and gpu stopped scaling for a couple of years already [1]. The new models just run on higher frequencies and consume unpropornally more wattage.

Quantum computing is a joke [2]. AI is just a overhyped rephrasing of machine learning.

This is rather hinting about the next decade of no technological progress.

And don't get me started on the effects of recession.

1: https://arstechnica.com/gaming/2022/09/do-expensive-nvidia-g...

2: https://www.youtube.com/watch?v=b-aGIvUomTA
Find a large multi-national company that isn’t in tech, get a job in IT or doing software of some kind and move up into management. You really want to be in a cost center and get into middle management, I still can’t fathom what those people did for the company, complete waste of space. So go do that, LOL. Or do the opposite of all that and feel connected to and enjoy your work by seeing that it has an impact on your customers.
Yes, I've mentioned it also in my original blog post. What do you mean though by "paid dearly for it"? I was not aware of anything particular happening.
That’s a bizarre policy if differentiates between hacked and leaked sources.

If, for example, some hacker found out the President is a spy for China they’d suppress it but if a CIA agent breaks the law and leaks it’s fine?
I’m not saying they’re good. Just that they’re (mostly) following the rules and aren’t just thematically random.

https://ibb.co/RpSxcV8
https://ibb.co/883GpHY
Slacker! I woke up and ate breakfast.
I’m honestly not sure which side it’s satirizing. Both?
Crazy (your last link):

> The reality is that waterboarding is not a form of torture and is in fact used in the training of US forces. Much of the debate surrounding the use of torture stems from politically motivated individuals who do not understand the techniques themselves or the complex nature of military operations.
That’s what I’m seeing too. I had a problem with some Hashicorp Packer scripts and posed it to ChatGPT. It did have an idea of the shape of the problem. To solve it the bot just hallucinated syntax. It spoke with great authority that this was the solution and provided a beautifully syntax-colored excerpt of something that wouldn’t have even compiled.

This was perhaps a very hard problem for an LLM, as the Packer tool’s nature is to manage layers of context. Environment variables passed through templates then passed to scripts which themselves might be in other frameworks. So in this case it to be confused about what was Ansible syntax and what was Packer.

So the bot seems to have different failure modes than humans. Distinguishing context layers seems to be a weak point. And an answer that is a wild guess looks as authoritative as a solid answer. But it’s still extremely impressive.
Why all the resources concentrated on IITs then if you’re not looking to groom the next genius?
I think this may just be a weird autocorrect, but on the chance it’s not, FYI the guy’s first name is (/was) Al, and his last name is Capone. Al Capone.
+1 for just using Argos or a similar store instead. It takes too long on Amazon to weed out the AliExpress tier stuff and ordering certain things like high value electronics from there is just way too risky.

The mere curation of products has become a highly valuable service, saving you money and time.
It can be impossible to tell conspiracies apart from many people independently wanting the same things.
I use a lib like this, but a few changes.

printf("The string is %"PRIstr"\n", PRIstrarg(mystring));

Simpler: printf("the string is : %.*s",mystr.size, mystr.data)

But that's tedious to write. So create a small macro

#define ls(x) (x).size,(x).data

And then printf becomes as simple as :

printf("the string is : %.*s", ls(mystr));

Though OP's macro is possibly doing more.
I'm 14 and this is profound.
Honestly, I think that's one good thing. I believe that isp's should provide more content controls and allow fine grained controls for account owners to block content in categories. And they should have at least adult content blocked by default with an opt out.

It's insane to me that parents have to be network admins to be able to make even do basic content filtering for their children in the US.
I was playing around with ChatGPT yesterday and what I found was:

- Ask a straightforward question like what are business models for open source software or what are the advantages of GPL vs. AGPL vs. MIT and the answers were pretty shallow and boilerplate but they were correct as far as they went.

- But ask a question like "Why didn't large SMP systems become more mainstream?" (which basically requires synthesizing a lot of knowledge about the last 25 years of computing history) and it spewed out an explanation that basically got enough right to be dangerous and got at least one thing pretty much entirely wrong. But it was coherent enough that someone who didn't have any background would probably think their question was answered.
And it’s precisely that sniveling, sanctimonious attitude that makes someone like Trump attractive.

Liberals almost never fail to be utterly unlikeable & unrelatable.
They don’t even need to be threatened with closure. You just need to be able to eliminate the “it wasn’t us it was our partner merchant” defence for liability on their site and the whole thing would collapse like a house of cards.
You're hitting the right point in that it's focusing on the first type of cleverness, but that's because that's the type of cleverness that society and social networks find to drive "engagement" and therefore it's treated as far more important than your second definition of cleverness, which is the type that provides progress to technology and society and politics and so on - but it's boring because society's issues that need solving are so deep and complex and niche that any cleverness in the solution is lost to anyone but experts in the same field.

And so what the layperson sees, because it's what's chosen by the engagement maximising algorithm, is only ever type 1 cleverness. Hence it's the topic.

Which is ironic in itself, a well written article about the focus being wrong because the focus is wrong.

(My pithy summation is also such an example, it's clever but adds or solves fucking nothing, welcome to my career).
I think the solution is to hire both, because there is also the Peter principle: "promoted to incompetence".

The professional managers should be in a deputy position to the promoted ICs. This way they can bring their skills and expertise in management and empower the promoted ICs who understand the business or problems deeply.

The professional managers can be pretty useful if they don't have people reporting to them and help with processes, compliance, planning, making presentations and excel tables and yet the capacity for damage will be limited as the promoted ICs will need approve anything.

DEC apparently had "administration" instead of management, implying it didn't rule but rather assist, but I don't know the exact details.
The postal service is a governmental entity, you do see the difference between it and Twitter, a private company, don't you?
Which religions?
Mind explaining the “Eufy leaks” issue?
EmacsConf 2022
The author mentions the Visual 6502 project in the credits section at the end of the page, which is (was) a long-running reverse-engineering effort to map the chip at the transistor level: http://visual6502.org/
Those delistings notably had a great impact. This has a good assymetric cost for the abusers.

So either the copyright laws are "in practice" more getting in the way than actually helping anyone, or Amazon is missing punishment for abusers of copyright-related stuff.

Amazon allowing good-ratings buying, personal info scavenging etc puts Amazon's credibility in question, and I believe that this will eventually take it's toll.
Walmart is reliably trashy though, not everything has to be top of the line.
I've had better luck with Stable Diffusion using impressionist/surrealist/etc. styles because you don't really expect the results to be "right" in a literal sense.
Aaron Sorkin made the most concise counterargument to this in Steve’s biopic:

“Musicians play their instruments. I play the orchestra.”

https://youtu.be/-9ZQVlgfEAc
Given the uncertain job market in ML/AI, I would recommend taking a few online classes aimed at practical applications. If you are a full stack developer working at a company you like then perhaps there are opportunities to add value writing simple models with available data that would be valuable to your employer?

Sorry if I sound jaded in those comments, but I have mostly been employed as an AI practitioner since 1982 and I have seen severe cycles of plentiful AI work and little available work.

I really recommend having a generalist’s mindset, and adding data prep/model building/deploying models as yet another skill.

I mostly use deep learning now, and Andrew Ng’s online classes are very good. If you just want to have fun, you can read all of my recent AI books on my https://markwatson.com site, but to be honest I do less teaching of fundamentals and more just offering fun small programming experiments. In addition to Andrew Ng’s classes (still on Coursera?) I have found https://www.edx.org/ classes really useful and most can be taken for free.

I also recommend signing up for OpenAI’s APIs. I spend very little money for a lot of use, and I have all but given up writing my own NLP code, something I have been doing off and on for over 30 years.

I have a difficult time imagining what the future AI work landscape might look like for you but my guess is that tooling and applying new theories will keep getting easier and more people will at least have ML on their resumes. This is why, for both employability and work enjoyment, I recommend the generalist mindset.
Spot on.

I am so tired of the competitiveness in engineering to make the next pay band.

You cant rely on a portion if teammates because they are jockeying for position and in other situations your opinion isnt valued because you are not high enough on the engineering ladder.
Supabase if you was a managed solution. Great free tier IMO.
No I'm not changing my comment. I get the feeling you'd shift the goalposts no matter how much proof I show.

Posted today:

https://twitter.com/JoanneRansing/status/1598963377984135183

"Hunter Biden had sex with his niece Natalie. His dead brother's underage daughter - he was also banging her Mom. Will they manage to keep this video secret forever? Lots of people have seen it including me."

https://twitter.com/kuckieman/status/1598895748636372992

"One question, Are you ok with the pictures of Hunter Biden and clearly underage girls? You and Hunter are the problem."

https://twitter.com/wokeantag0nist/status/159901527380973568...

"Hunter had sex with underage girls and used his dad to broker deals against America’s best interest, “ what’s the big heal lolz” congratulations you’re dumb and pathetic enough to be Biden’s next diversity hire"
Meanwhile there were a lot of failures: Apple Newton, Lisa, Copland, G4 cube, Pippin gaming console, the Nokia-iTunnes fiasco, ...
Supabase provides a free tier Postgres. There are of course limits to the size, and they will pause your project if it is inactive for 7 days.

https://supabase.com/pricing
Towards Fair Trade for FOSS
I feel really bad for this seller. This, btw, is why I go straight to merchants and suck up the longer delivery and delivery costs. The effort of dealing with rip-offs on Amazon was made the experience of shopping their so terrible.

Also, if this seller got really successful, Amazon would have noticed and created an "Amazon Basics" massage gun anyway.

I do still regularly buy certain things on Amazon still (a certain kind of socks, a certain protein powder, etc...). I haven't been able to find a good source for those. Ironically, the protein power is something I used to get at Whole Foods, but they don't carry it there anymore.
That is not true, an urban myth.

Leaders who don't want to be leaders are bad leaders.

I lead a guild once, because I wanted to decide how my time was spent and didn't want other people to decide for me.
I didn't want to be a leader. I don't want to tell people what to do. I don't want to give orders everyone else has to follow. I like the team approach.
But people are conditioned to follow.
Except they aren't following... when you apply too much pressure.

I set up a website to plan raids. Paid for a domain. Went through the hassle to configure it and a discord server and a bridge between those and all I wanted was that people fucking sign up or off from raids.
I asked them when they're available and made a plan most people are comfortable with.
Only 5 out of 30 people did even register on the site.
They joined the guild because it was advertised as a raid guild with social spots but raid being the main theme. A RAID GUILD.
After 2 months I was so stressed out that I simply abandoned the guild and left the game.

I can't do everything alone. When I said that I never felt so stressed out in all my life 2 people offered to help with leading raids but at that point it was too late. Some players joined from other guilds, got spell upgrades for free, then left the guild. Some people joined from other guilds to cause drama and distress.

This is of course not real life. But it's close. You don't pay your members money for work and can't expect they follow guidelines. But holy crap, can you at least expect some interest in the main theme of the guild and them to sign up on the site and sign on and off of raids?

I never wanted to be leader. I feel well in the role of an advisor, someone who helps lead. But not the sole person responsible for everything. I'm not perfect. No one is. I was overwhelmed because every piece of the hierarchy in the end asked me what to do. And if I postponed answering things would get worse.

In software development I can be agile and change things around, but people demand stability. They want a bed already made but are not willing to do the effort to build that bed.

In retrospect I should've continued and "fired" 90% of the members even if that meant the end of independent raiding. But I was too stressed out and losing key people, because that game was designed around key roles being present in a raid.
I didn't make the necessary decisions because I didn't want to lose anyone and not piss anyone of. But in the end key people left regardless.
So lesson learned if you do something, focus on just doing that one thing and don't get ballast on board in the first place. It's better to have a small, dedicated group, seeing eye to eye, than a large group where the majority doesn't care about success.

Anyhow, see I wasn't a good manager, despite me not wanting to be a manager.
I woke up today, and why you should, too.
How often you need something shipped the next day? Yeah, use amazon as a convenience store once in a while but do your shopping elsewhere
>The interesting conclusion that follows from that is that if you are going to operate a shady CA, it behooves you to find some large clients to make cost of revoking your trust higher.

...Which in essence means CA's probably shouldn't exist as a standalone thing, and everyone should learn to build their own trust networks. None of this vouch nonsense, or Trust theater.
I'm trying to use it to generate Elixir code, and it's getting ~80% there.
Compared to huge datasets of other languages, I'm still surprised by the quality of code it generates.

While I did say 80%, the 20% is most crucial and without it, the code is useless.
For example, it doesn't understand scope and assignment in Elixir. Getting it to write in more pure functional style is close to impossible (or I just haven't found a good prompt).

I spent a good 30 minutes trying to get it to generate a working code for Day 1 Part 1. No nudging, just errors and AoC answers (too high, too low) and it never got there. Even after I started to correct its mistakes, like "your Enum.reduce/3 return is not assigned anywhere", it couldn't get a solution and started reverting to previous answers.

I think what's going to happen here, is that these models will shift a meaning of "boilerplate". If I can write the scaffolding and basic architecture easily, I'm happy to use them.

Also, I do wonder how is all of this going to play out if it has access to Input, REPL and just learns.
Indeed. I asked it to implement quicksort in x86 assembly, but increment each element by 5. It made a mistake: instead of incrementing by 5, it replaced it with a 5 (mov insted of add). I pointed it out, it agreed with me, elaborated on what is the proper solution and provided it. Its weird.
I don't intend this meanly, but do you read much non-technical nonfiction? New yorker articles, memoirs, things like that? This one is not particularly an outlier, but also not a ton of that stuff gets posted to HN.
Yeah that sounds like a more plausible hypothesis. Although the line is very blurred about how you defined “specific problem”. Everything I started programming with was specific problem I was having at the time (writing a media indexer to dedupe my music library, writing a presence simulator to fool those early “pay you for browsing your computer” adware) rather than just playing around for the sake of playing around. From one respective I was picking problems randomly and seeing if I could solve them so I guess that’s more playing around. But it’s not like playing around with graphics where you try to see what kind of effects you can create.