skysight-inc/HackerNews huggingface dataset:
SmolOS brings a Linux-like command line interface to ESP8266 microcontroller
> The easiness or difficulty of a domain or discipline is always in relation to some individual context; and that context includes variables that the learner controls

> But nothing is hard unless you are in a great hurry or you don’t really want to do the thing.

I got told this many, many times in my life, and it was incredibly frustrating when it was something I really wanted to do. I discovered after 34 years that I have ADHD, which makes a lot of stuff that can eventually become easy/easier with patience and perseverance to in practice be extremely hard.

I'm bringing this up because a lifetime of guilt and shame for not being able to accomplish something when it was deemed easy, that it "just requires some discipline", said by someone else pushed me away from a lot of things I'm interested in but wasn't able to keep motivated to do them after shame set in. It can spiral if you feel inadequate, and if you live with this you feel inadequate and "catching up" a lot of times.

Specifically, one of those things was music. I tried learning instruments when I was younger but the motivation was not in learning the instrument itself, it was music as a whole. I wanted to understand how it worked and how I could create it, not plow through guitar strumming exercises for months and months, then fingering techniques, then be able to play a few songs, and maybe in some years actually start to create something. To me what worked, in my natural branching way of thinking/learning, was to start producing electronic music some 4 years ago. Just some stupidly cacophonic basic loops in the beginning, which pushed my interest to learn the basics of music theory, learning the basics cleared to me a map I could guide myself through skills I was missing: rhythms, harmony, active listening, etc. After I started understanding what skills I needed to achieve what I wanted then it pushed my motivation to learn an instrument, the piano, and then learning the mechanical skills of the instrument made sense.

I bring this up because since I was diagnosed I had multiple conversations with people that suffered through the same as myself: being called undisciplined, inpatient, disinterested when they couldn't muster the motivation to plow through a structured path when it got boring to them. And that is not under my control, ADHD is much more about lacking motivation control than being hyperactive or actually having an "attention deficit", I get obsessed by things I'm interested in (music is an example), it's just that most of the resources to educate oneself on a discipline/domain is not tailored for people who needs to branch out, find pockets of skills that are interesting and motivating to learn, and putting the puzzle back together after acquiring some skills in a haphazard way than the usual structured learning path.
I recall seeing that at the time and thinking "ha trying to send a message with a spreadsheet, silly." and moved on with my life.
Yeah typed allocator would be my guess but those aren't zero cost either. They increase memory usage since if your program allocate an array of 100 ints, delete them, and then allocate an array of 100 floats, unless you allocate more ints on the heap that memory isn't getting reused.
I've never used any other language that has this property, and I've used C, C++, C#, Haskell, Java, Javascript, Rust, Python, Mathematica. All of them have easy to use dynamically sized arrays
Your code is fine. Now you've got a decent sample, in future just respond to any other takehome requests with a link to this above, since it already shows you're competent and know how to reason.

No need to waste another 4 hours per company (a ridiculously large task).
Use Brave Search. It's way better.
Or you are working with a language like JavaScript where math primitives are GC objects and thus quite costly. In those languages if you do not reduce object creation via reuse in this way, it can be very slow.
Memory management is trivial if your problem is trivial. In the real world you have network connections that fail, third party libraries with other conventions than yours, multiple threads with their own lifetimes, memory mapped files, etc.
True, here in Spain WhatsApp is practically a basic utility. Nobody is not on WhatsApp.
Easily one of the best dramatised documentaries ever made.
Generational-indices also help to secure system boundaries. The memory is always owned and manipulated by a system, and the system only hands out generational-index-handles as "object references".

Arguably that's even a good idea in memory safe languages, it avoids tricky borrow checker issues, and also prevents the outside world to directly manipulate objects. Everything happens under control of the system.
I am confused on the relevance of this question
This is either performance satire, or you genuinely do not understand how democracy - and more importantly, percentages, actually work.
you're equating it to string interpolation. It isn't. It's a compiler directive which disappears when compiled, which is why it is expressed as a brace expression rather than a tag.
Right, I remember an Apple keynote back in the OS X 10.1 era where the presenters were proud of the drop shadows because they provided a sense of depth, contrast, and clarity. You never hear that kind of talk anymore.
It looked to me as if she had something like 'fortune' to pop random tags into the heading.
I thought it was excellent. A good critique of the loops people get stuck in, but also very funny. And the comic timing was on the nose.

I feel like the humour is quintessentially British (I doubt Harold Shipman is well known on the other side of the duckpond, let alone the cultural subtext of an OBE). Maybe it's not as funny in America.
Python Bindings for Llama.cpp
Show HN: HTime, a clock to find the best time to meet and eliminate email tennis
hTime is a hobby project turned into a product after hearing what people think about it. It started as a clock combining UTC and all time zones in one clock face to eliminate time zone calculations - a pain I had to deal with when scheduling meetings across time zones. Here is an older discussion around hTime on HN (https://news.ycombinator.com/item?id=28928550).

The problem we're solving is when you schedule a meeting with 2+ attendees where you don't have access to one or all of their calendars. It gets worse when they are spread across different time zones. Here is where email tennis starts and time zone confusion kicks in. It takes up to 20 minutes to finally find a good time to meet.

After listening to initial users' feedback, we turned hTime from a clock-only into a scheduling tool that helps you schedule with multiple users, multiple time zones, and multiple calendars per user in less than 10 seconds. No email or messaging tennis, calendar checking, or time zone math anymore.

It's still early stage. I'd love to hear the community's thoughts. hTime works best for teams. So to try Schedule, ideally, you'd have 2+ users that you know on it.
You can't justify censorship by across the board smearing censored people as "raving lunatics" or "trolls". The "scaring off" excuse for censorship works for forums like HN, but it doesn't work for social media sites, since on those you choose whom to follow yourself, and even in the replies to posts (of yourself or people you voluntarily follow, and whose followers are likely similar in opinion to yourself!) you can selectively mute or block people. So individuals do not actually need any additional censorship.
I don't think that's the issue.

The problem is that YouTube/google want "le beurre, l’argent du beurre, et le sourire de la crémière".

They want to (and are managing) to distort the openness of the web: they provide free access to a service, the way the web intended to be; but don't want people to use the tools in the way they are meant to be used.

If they want to charge for the service, fine, it's their prerogative but don't blame the users for using the tools as they are meant to be used.

Why don't they stop free aceess? They can, no one is stopping them from doing business that way.

Because they want everything, that's why. When will their "business" stop? What's the end goal?
Having very briefly looked into this problem a few years ago, my impression of the primary challenge was that of re-implementing a large OS API surface in a non-infringing way.
You say “we get it” but seems like you don’t actually get it
> ... found Reddit Homelab community to be a source of inspiration.

I've joined r/homelab based on your suggestion. I love their content. Thank you for the suggestion and your response.
Well, geographically local has never been a particularly good division anyway - neighbor disputes are a story as old as time, and "don't know your neighbors too well" is sound advice.
We are having the same difficulty. It works better with OpenAI but Claude is very bad at hopping off from tool to tool and combining the results. Did you give a try to router chains to set up multiple agents perhaps?
What are the chances that the mineral drops contain PFAS?
I read “the last straw” as being the final bad decision among many (which I think is what the idiom means). A tipping point. Usually you can’t remove “the last straw” to fix the camel’s back.

If the linking policy was the sole issue I think that tweet didn’t convey his meaning. However, I actually think that, like many people, he returned despite some remaining issues he had.

Also, I get it, social media is made to be addictive. Even more so when you have a following. My original point was that I think moving through a long chain of alternatives on moral grounds is not a common pattern.
amazing app, nice UI/UX, thank you.

One minor thing, I didn't understand the behaviour of Pick button:
https://webm.red/view/mUVG.webm
Obligatory TVTropes link: https://tvtropes.org/pmwiki/pmwiki.php/Main/EveryoneOwnsAMac

Mentioned therein: Apple won't allow their products to be used by bad guys. Hence the number of movies and TV shows where you can always tell the bad guy because they're the only person not using an Apple product.
You are right, and there's historical records to back you up. ;) Phrack touched on it back in 1996, at http://www.textfiles.com/magazines/PHRACK/PHRACK48 :

> First, some words on Macintoshes. Steve Jobs and Steve Wozniak, the originators of the Apple and the Macintosh were busted for phreaking in college. The Apple IIe was used almost universally by hackers. So why has the Mac fallen out of favor for hacking? Simple. Because it fell out of favor for everything else.

before listing some of the few hacking resources available for Mac.

Still, if you go by movies, Hackers, also from 1995, has Macs: https://www.youtube.com/watch?v=IESEcsjDcmM

A year or so later (1996), our hero used a PowerBook 5300 to help save the Earth in Independence Day.

Brought to you by Apple marketing. https://www.youtube.com/watch?v=QEMJzSVpdJM and https://web.archive.org/web/20080927051545/http://www.inform... .

FWIW, http://www.starringthecomputer.com/computers.html lists computers used in films.
I wasn't aware of https://briefs.video. Now I am. And it's hilarious!
Dunno, this seems like you're violating the java memory model and then then fully expected weird shit happens. If you're mutating a shared state between threads without proper synchronization, and there is no way for String to do this on its own, the CPU is permitted to do stuff like out-of-order execution as there is no happens-before relationship between the write and the read. The JVM is further permitted to optimize the code with the assumption that the data stays the same in the absence of volatile/synchronized/other synchronziation primitives, as long as the observable outcome is the same "as if serial" execution.

The understanding 'It first tries to encode the characters as latin-1 using StringUTF16.compress. If that fails, it returns null and the constructor falls back to using UTF-16. ' is incorrect in unsynchronized code. The reality is that it's permitted to do all these things at the same time in any order (or speculatively do both at the same time) as long as the observable consequences are the same. This relies on the assumption that the data stays the same. If you violate that assumption, you get bizarre and often unpredictable behavior.

I don't think this is a bug in String. It may be a security vulnerability in the JVM, in a log4j-esque "it's working as we intended but holy crap did we ever not intend on this interaction" manner.
It is also there just the icons MS uses are in a stupid spot in the top or bottom row, labeless and hard to discern.
It's also an extraordinary expectation that your friends will use the messaging system you dictate.
I believe the GP is referring to the entire computer architecture, not the instruction set architecture. I seem to recall that it had three distinct heterogenous processors that had to be coordinated to get the most out of the system, so porting from, say, PC to PS5 wasn't necessarily straightforward, without leaving performance on the table.
Can you tell me in words the value (V1) or values that you're filtering for with this life choice? And whether there are other values (Vall) that you hold and would like your friends to hold. And talk to me about the correlation between V1 and Vall.

Because my opinion is that my friends willingness (or preference) to use a non secure messaging app owned by a giant tech corp has very very very low correlation with whether I'd like them to be a friend.
Alerting: The Do’s and Don’ts for Effective Observability
> You can just install Linux on them and put them in your wardrobe.
But they might not be silent enough to not disturb you when sleeping.

Agree 100%.

> Another con is that they aren’t rackmountable. So if you want to stack them you need to use some non-standard solution for that. And if a HDD/SSD fails, you need to order a replacement yourself, etc etc.

> It’s totally doable. But is it worth the hassle? That’s up to you.

Thanks for your unique take. HDD / SDD failing is definitely worth considering if it's worth the hassle. +1
Some Complex Prometheus Queries
I really despise all the "why you should care about math" takes.

The question is never asked about any other school subject and only mathematics has to justify itself that way. I had to learn about categories of plants and animals, interpret 20th century literature, learn about events from a thousand years ago, I did presentations on the demographics of European countries, how certain chemicals react and much, much more. I never used any of that knowledge for anything, certainly not in my career or in university.

But somehow mathematics is the one field which needs to justify its own existence? Mathematics needs to bend itself over and "be relevant" so that people will actually learn about it? Why? Why not ask the same of any other subject.

Justifying mathematics is easy, especially such a universally applicable subject as calculus. But I see no reason why it should have to justify itself in any way.
Lots of animations are generated by code partially or fully. But I read the question here as whether this is rendered in real time on the browser via custom code rather than a video codec. This is because the sharp black and white graphics appear almost vector like. However it’s a normal video.
He's also just genuinely made Twitter a worse platform. The vast majority of Twitter's social cachet was based on people viewing tweets, or hearing about things happening on Twitter, without having an account there - Twitter's actual user-base was tiny compared to it's influence.

Now, if people can't view tweets without being logged in to Twitter, there's absolutely no reason to share them at all (i.e. this has led to r/worldnews switching to Mastodon links to share Ukraine war news, which in turn is a convoluted path of telegram and cross-posting from various sources).

The attempt to monetize the blue checkmarks showed very fundamentally he has absolutely no idea what Twitter's value actually was.
I am a staff engineer with 10 years of experience who has recently gone through the hiring gauntlet and dealt with something similar.

I interviewed for a company in May that gave me a takehome that was very vague and probably would have taken my entire weekend to do it. So I declined and moved on.

My rule of thumb though is to spend no more than 2-3 hours on a takehome challenge. If you think it will take any longer, don't do it. And lack of any feedback from the company pass or fail is ridiculous to me.

As for your submission it LGTM. I'd bring you in and probably ask about how you'd want to improve it if you had more time, expecting the usual best practices and scalability things. I'm not sure your Python experience, but given the context of the problem space, I'd ask why you wouldn't consider other approaches like adding the url metric logic in a decorator or some other modularization that could be reused to "performance test" future API calls. I'd ask about your submission's lack of tests (getting at unit tests here) and how you could refactor your solution to facilitate better test coverage if you had more time. Deepdive about the tradeoffs of using Python coroutines as opposed to other concurrency methods.

Unfortunately there's always going to be a desperate developer out there who will spend every waking second overengineering a solution that will set a high standard for everyone else to be compared against.

Wishing you the best of luck!
Is there a particular part of the GDPR that you find challenging?

I can see a few clear problems with this plan in general:

If you do this successfully at scale, and have any EU customers, the EU will eventually make a very good go at fining you - they fine lots of people (https://www.enforcementtracker.com/). If you attempt to actively refuse to pay fines from a governmental organization at this scale, there's a good chance you will personally get in legal very hot water. I would not recommend it.

Even ignoring this, GDPR is not just an EU thing. The UK, Switzerland, Canada, Brazil, Israel, South Korea, Argentina, Japan, New Zealand, Indonesia, Uraguay all have substantial data protection laws that are at least equivalent to the GDPR's requirements & penalties (i.e. formally recognized as providing GDPR-adequate protection by the EU). There are many other data protection laws elsewhere too that might not match GDPR, but do still include very significant requirements, e.g. in California & China.

You mention Lusha - notably they explicitly claim to be GDPR compliant (https://www.lusha.com/legal/gdpr/) and they're formally registered as a data broker in California under the CCPA there. I can't comment on whether they're right, but they certainly aren't trying to ignore GDPR & data protection entirely. Time will tell whether that works.

To be honest, I think you're fighting obvious prevailing strong currents. Even if there's technically a way to run a business ignoring data protection now, the direction of travel is clear and consistent globally (albeit at different speeds). Any loopholes are going to be steadily closed up, and blatantly collecting private data to profile & track people is going to be illegal for businesses everywhere in the not too distant future. It's not a good foundation for a business.

I would prioritise finding a way to build your business without using other people's data without consent. It's rarely impossible, it mostly just requires a change in mindset, and once you're used to it it's often not even particularly challenging.
I'm just saying that Fediverse solutions aren't automatically better than centralized ones.
> We let our juniors write our feature flag code in less than a day using very simple ORM/SQL and it's just worked.

Feature flagging itself is not that hard, it's all the surrounding features that are hard. I can whip up a database engine in a couple of days, but to make it reliable, full of features, and whatever else, will take years.
It Takes Two, lava lamps, Raymarching in Godot 4.1 [video]
Wouldn't sortition be game-able by creating a lot of wallets with tiny amounts in?
Typically that slot is disabled on overflow, so that no more objects can be created at that slot / memory location, which avoids the handle collision. The slot could be recycled at specific points in the code when it is certain that no more handles for this slot are out in the wild (not sure if Vale does that)

(Or possibly the whole region could be discarded once it was running full, and the physical memory recycled at a new virtial address. There's plenty of virtual address space to burn through when not limited to 32 bits)
You can alway setup a kafka or message queue consumer on these sort of hardware. I'm testing my RTX card for some offloading of free-tier volume as well
Could you provide a link to the documentation to proof it's a bug?

The author could call it 'probably bug' or 'misleading String constructor documentation' but instead they state it's a bug without any proofs.
Is it less "safe" than your own restricted definition then... maybe?
Exactly - a microservice architecture in python is an idea architecture for any small business!
I didn't understand that blog post very well, but it made me think of "generational arenas"[0], and I'm curious how they compare? Generational arenas sound similar because they involve passing an index around instead of a pointer, are designed to handle many small self referencing "objects", and are popular in games, so in my mind they seemed similar.

[0]: https://docs.rs/generational-arena/latest/generational_arena...
People aren't doing it because they think they should. They are doing it because they want to.
Google's Urs Holzle to step down from executive management
Don't need to convince me ;), but I mean this is for the very average person who argues like "why do I need more math than adding two numbers"... and even just "allow you to reason over the structure of a problem you're interested in, while throwing away all the superfluous details" and "learning to do abstractions correctly" would not seem more approachable to them than the calculus description I gave above? imo. Is there a simple real-life problem or model everyone should know or has touched in school this can relate to? I'd be curious, because as you frame it I may even need to revisit my faded memory, hm.
> Anytime you give someone freedom to create (anything), you will end up with a penis drawing

Well yes

https://www.snopes.com/fact-check/giant-penis-coronation-par...
In my way in interacting with HN, I generally avoid referencing sibling comments when adding my own comment to a discussion. If a person recommends a book, and a second person describe the content of the book, if I were to also write a comment about the content of the book I would put it under the second person even if the comment could also fit directly under the first post.

The threading system of HN has both benefits and drawbacks. In this case a chronological ordering might had been better. As a side note, I fully agree with your take that the book isn't likely about the sex lives of eight legged critters. When I saw the title I was suspicious about the content, and the excerpt provided further evidence to back up that suspicion. As such it was a very helpful excerpt.
(Disclosure: I work at supabase but this applies to any Postgres host that has the pgvector extension)

Here is a guide/notebook using the model above, pgvector, and a python client:
https://supabase.com/docs/guides/ai/quickstarts/text-dedupli...