MurphyA/hacker-news huggingface dataset:
by robmccoll | 2025-04-21 16:23:07+00:00
Generally, you would want to do one of:

a) Keep any code that you've pulled in from another project in its own directory structure with a license file indicating where it came from and its licensing terms.

b) If you intend to modify the code or integrate it more tightly with your own, copy the notice into each source file that was taken and perhaps put a pre-amble along the lines of "Portions of this file were copied from XXX under the MIT license as follows:". Ideally you would make a commit with the file in its initial state as copied, and then if you ever need to determine what came from where and how it was licensed, it shouldn't be too difficult.
by Izkata | 2025-04-21 16:23:18+00:00
It would have to be the other way around or be a (possibly major) breaking change. Just execute() with strings is already standard python that all the frameworks build on top of, not to mention tutorials:

https://docs.python.org/3/library/sqlite3.html

https://www.psycopg.org/docs/cursor.html

https://dev.mysql.com/doc/connector-python/en/connector-pyth...
by ygjb | 2025-04-21 16:23:32+00:00
I don't know why you are trying so hard to carry water for a team of engineers at a company that has the history to know better.

The team that built peerd had the good sense to consult with the author of Spegel before moving forward with their project. A simple note to their business line lawyer (or whatever they call them at Microsoft) at work to say "hey, we are going to use some of this code from this open source project, what do we need to do?" would have taken less time and effort than setting up the meeting with the Spegel person/folks. That is assuming there isn't an easy to find page on how to consume open source software on Microsoft intranet. Every major company I have worked for (HSBC, Mozilla, Amazon, Fastly, Cisco, to name some) has had this going back to 2005. This isn't rocket science.

You also don't need to be a legal expert to comply with most open source licenses, and the MIT license in particular is really easy to comply with. Just copy the code, and whatever file you copy the code into gets an attribution comment at the top.
by jakey_2 | 2025-04-21 16:23:42+00:00
While it's clear that the brain is more active whilst handwriting due to the fine motor control required to use a pen, I wonder if the "performance" benefits pertaining to learning some material are driven by the increase brain activation, or perhaps just by the increased amount of time spent with the material when writing something by hand. Does one encode a memory deeper by handwriting a set of words once, or by typing them 10x each?

Really interesting study, and I'm looking forward to the future study which extrapolates this to younger children and older adults.
by Workaccount2 | 2025-04-21 16:23:43+00:00
I question how much code and what kind of code is actually going to be needed when the world is composed entirely of junior engineers who can write 100 LOC a second?

Will it just be these functional cores that are the product, and users will just use an LLM to mediate all interaction with it? The most complex stuff, the actual product, will be written by those skilled in mech suits, but what will it look like when it is written for a world where everyone else has a mech suit (albeit less capable) on too?

Think like your mother running a headless linux install with an LLM layer on top, and it being the least frustrating and most enjoyable computing experience she has ever had. I'm sure some are already thinking like this, and really it represents a massive paradigm shift in how software is written on the whole (and will ironically resemble the early days of programming).
by zak-mandhro | 2025-04-21 16:23:59+00:00
One thing I’d love to hear from the HN crowd:

Are there real technical blockers to browser-native consent management?

* HTTP already has Set-Cookie, so tagging with a Category param seems straightforward.

* Browsers already manage permissions like location, camera, and notifications.

* GDPR/CCPA compliance should be stronger if browsers enforced consent upstream.

Is the real obstacle purely political (ad-tech resistance), or is there something deeper I'm missing on the protocol or standards side?

Also curious: if browsers did offer this, would major sites still try to layer their own consent dialogs on top (to push opt-ins harder)? How would we stop that?
by gizmo686 | 2025-04-21 16:24:17+00:00
Skipping brackets is incredibly useful for readability. Basically every language that relies on brackets has settled on a style convention that makes the redundant with indentation. Admittedly, the big exception to this is function application. But Haskell is much more function oriented, so requiring brackets on function application is much more burdensome than in most languages.

As to searchability, this should be covered in whatever learn Haskell material you are using. And if it isn't, then you can literally just search for it in the Haskell search engine [0].

[0] https://hoogle.haskell.org/?hoogle=%24&scope=set%3Astackage
by Thoreandan | 2025-04-21 16:24:17+00:00
It'd be a privilege to be able to disconnect from the feeds, but trying to rebuild in-person social interactions when you're old and have no family or local friends really sucks. Facebook's become:

* Who died this week

* Spammers liking your posts and asking for friend adds

* Gofundme's for ppl who will now spend the rest of their lives in medical debt

* Interesting articles maybe twice a week or so.

Nobody I know in town is on Mastodon or BSky.

The silence is deafening.
by chilmers | 2025-04-21 16:24:34+00:00
It also has barely seen any activity in years. It is going nowhere. The TC39 committee is utterly dysfunctional and anti-progress, and will not let any this or any other new syntax into JavaScript. Records and tuples has just been killed, despite being cited in surveys as a major missing feature[1]. Pattern matching is stuck in stage 1 and hasn't been presented since 2022. Ditto for type annotations and a million other things.

Our only hope is if TypeScript finally gives up on the broken TC39 process and starts to implement its own syntax enhancements again.

[1] https://2024.stateofjs.com/en-US/usage/#top_currently_missin...
Ask HN: What's the best way to become a 10x full-stack engineer in 2025?
by admingirl | 2025-04-21 16:24:36+00:00
I’m a junior in college studying math, physics, and CS. My goal is to become a world-class full-stack engineer who can build real-time systems, intelligent apps, and scalable infrastructure from scratch.

I’m currently working with React, Node.js, Vite, Python, PyTorch, Gymnasium, and exploring Rust for backend work. I want to go beyond tutorial land and learn how the best engineers think and build.

What are the best projects, open-source repos, books, systems to study, or skills to master to reach the top 1% of engineers in 1 year?

Bonus: What should I avoid wasting time on?
by alabastervlog | 2025-04-21 16:25:10+00:00
Even among the set of people who have something even semi-resembling a proper home theater—which is already a tiny group—I'd be 95+% would need to upgrade their gear quite a bit before they'd benefit at all much from quality higher than ~50GB-100GB blu ray rips.

(stream rips do often does look like dog shit, though—I find sub-10GB 1080p blu-ray downscales [to get the HDR from the 4k blu ray, but lower res and storage space] usually look better than raw 4K streaming rips)
by jonhohle | 2025-04-21 16:25:52+00:00
> Conservative opponents categorize it as an undesirable “immigration bill” and demand that adopted people with criminal records and the many dozen adoptees who have already been deported be excluded from the bill.

I’d also like to see a source for this claim. In the house there are 13 republican co-sponsors for the Adoptee Citizenship Act (including my rep). My personal experience is that adoptive parents are overwhelmingly conservative.
by linsomniac | 2025-04-21 16:25:53+00:00
Does this mean that "adaptive interrupt mitigation" is no longer a thing in the kernel? I haven't really messed with it in ~15+ years, but it used to be that the kernel would adapt, if network rate was low it would use interrupts, but then above a certain point it would switch to turning off interrupts and using polling instead.

The issue I was trying to resolve was sudden, dramatic changes in traffic. Think: a loop being introduced in the switching, and the associated packet storm. In that case, interrupts could start coming in so fast that the system couldn't get enough non-interrupted time to disable the interrupts, UNLESS you have more CPUs than busy networking interfaces. So my solution then was to make sure that the Linux routers had more cores than network interfaces.
by nikisweeting | 2025-04-21 16:26:04+00:00
This is pretty cool, if we're porting JS features do we get dictionary unpacking/destructuring next?

I just want this so badly, it's the main reason I drift back to JS:

>>> {a, b=45, c=None, **d} = {'a': 234, xzy: 32456} >>> print(a, b, c, d) 234 45 None {'xyz': 32456}
by skydhash | 2025-04-21 16:26:29+00:00
It's not building the whole architecture before coding. It's about getting all the answers before spending time coding things that will probably have hidden bugs.

Sometimes you don't have a way to get the exact answers, so you do experiments to get data. But just like scientists in a lab, they should be rigorous and all assumptions noted down.

And sometimes, there are easy answers, so you can get these modules out of the way first.

And in other cases, maybe a rough solution is better than not having anything at all. So you implement something that solves a part of the problem while you're working on the tougher parts.

Writing code without answers is brute-forcing the solution. But novel problems are rare, so with a bit of research, it's quite easy to find answers.
by flkiwi | 2025-04-21 16:26:41+00:00
I'm distinctly happier since I ditched Facebook and Twitter. It's not a radical change, because the world kinda sucks in general. And I'm a little sad that a few of my older family members are effectively invisible since they only communicate on Facebook, but, honestly, I didn't talk to my mother's first cousins pre-Facebook anyway so, net, I haven't actually lost very much.

I was never on Instagram or TikTok, but neither seems to be "social" media as much as a communal fire hose anyway.

I was on Bluesky for a minute, but it was 99.9% people trying to one-up each other with witty or ironic one-liners for clout, with most of the rest being ex-Twitter people trying to keep Twitter combat alive in an arena (blessedly) free of the people who have made Twitter unbearable. I got tired of witnessing a neverending improv open mic while being randomly assaulted by people I agreed with.

So now I'm just living my life, aware of the challenges of the world, but not bathing in them.
by pglevy | 2025-04-21 16:26:46+00:00
Not using Magic Patterns but absolutely +1 this workflow. I'm a designer working across multiple teams and it's so fast and fluid to get react prototypes out of an LLM. I put together a vite project to drop the resulting typescript files into. Much quicker iteration with PMs and then we capture spec from the prototype. I see this as a way to scale our design efforts across the org since we can get higher resolution iteration done faster.
by moralestapia | 2025-04-21 16:27:03+00:00
>Yes, but blue doesn't have a "Definitions of Blue" Wikipedia page.

Oh, I understand, so the criteria is to have a Wikipedia page like that?

You know what's interesting, I couldn't find neither of these:

* تعريفات المعرفة

* 知識嘅定義

* Définitions de la connaissance

* Definiciones de conocimiento

Should we add "and it has to be written in English" as a requirement?

I know this is arguing ad absurdum, but the point is, again, that if you choose to be that strict, you wouldn't even be able to communicate with other people, because your desired perfect 1:1 map of concepts among them doesn't even exist.
by lofaszvanitt | 2025-04-21 16:27:37+00:00
Crows are sneaky bastards. I often put out leftover meat bits around the window, so it wouldn't rot in the bin.

Crows are the first that come and after some tasting, stuff their peaks with meat and leave. The fuckers sit on the top of the neighboring house and watch if I'm at home. If they see I'm roaming around they fly to the window and start marching. Marching means they walk up and down on the galvanised plate-covered ledge signaling me, that they want some treats.

If you ignore them for too long or don't have any leftover cheese or meat for them they come over, pull out the fresh plants from the ground and leave. :D
by zeroonetwothree | 2025-04-21 16:27:37+00:00
The top 10% of drinkers consume the majority of alcohol. Their average consumption is over 10 drinks per day, which I think clearly suggestions a problem. I think it's hard to imagine that losing >50% of revenue wouldn't matter to sellers.

Gambling is also very skewed. Studies place it something like 5% of in person gamblers accounting for 50% of profits or 1% for online gambling. I would guess for sports betting it's similar.
by avidiax | 2025-04-21 16:27:56+00:00
> That’s fair, I guess, but _something_ has to coordinate things.

You don't need any coordination for basic scenarios like a wireless switch in a room controls the lights in that room.

Depending on whether the underlying protocol allows forwarding and can establish the minimum spanning tree, you might need a repeater if you want all-on/all-off kind of functionality in a large home.

The coordinator, which in Matter is a thread border router, translates between the Thread and WiFi networks, which is what allows app or cloud based control, including "automations" like reactions and schedules.

You generally don't need a Thread Border Router to combine one manufacturer's products together, e.g. Phillips Hue, but it will use Bluetooth instead of Thread/ZigBee.
by RHSeeger | 2025-04-21 16:28:19+00:00
> It's not about line breaks, it's about the order of applying the operations

For me, it's both. Honestly, I find it much less readable the way you're split it up. The way I had it makes it very easy for me to read it in reverse; map, filter, map, collect

> Also see how this still reads fine despite being one line

It doesn't read fine, to me. I have to spend mental effort figuring out what the various "steps" are. Effort that I don't need to spend when they're split across lines.

For me, it's a "forest for the trees" kind of thing. I like being able to look at the code casually and see what it's doing at a high level. Then, if I want to see the details, I can look more closely at the code.
by jpc0 | 2025-04-21 16:28:20+00:00
Because wanting to change is the first step.

If there is no external stimuli to push a desire to change it is unlikely a person will even want to change in the first place.

Hence the other comments, well done you just solved all drug dependency, just stop doing drugs.

Therapy isn't just about how to take responsibility and making changes. It's about learning how to build a support network and the mental resolve to actually go through with the change in the long term.

Blaming the person in addiction doesn't help much without actually taking steps to improve. But it's all too common to believe you have brought an issue to an addicts attention but it didn't quite sink in to them.

Sometimes a phrase like "this is a problem and if you don't seek help I am going to have to take action by doing x" can be a decent wake up call. But if it comes over as aggressive or happens during a fight of some sort you will still not get the response you were looking for.

Inter personal relationships are hard, sometimes it is beneficial for the person's effected be someone else addiction to seek therapy at the same time or even before the addict seeks therapy.

In this case it's even more true, a long term relationship with children is the one place you really do want all the support you can get to ensure the person that needs help gets it and the family as a whole doesn't suffer more than needed.
by Jensson | 2025-04-21 16:28:21+00:00
> Do you really think that clicking buttons through a GUI is the one true optimal way to use a computer?

There are some tasks you can't do without vision, but I agree it is dumb to say general intelligence requires vision, vision is just an information source it isn't about intelligence. Blind people can be excellent software engineers etc they can do most white collar work just as well as anyone else since most tasks doesn't require visual processing, text processing works well enough.
by krunck | 2025-04-21 16:28:32+00:00
Another problem is the social fragmentation caused by electronic social interaction being split among so many different platforms: Facebook, WhatsApp, Viber, iMessage, SMS, etc.

Even the device platform you choose segregates you. There are a few neighbor families our family is close to. They(neighbors and my family) all talk on iMessage. I've got an Android/eOS device so I am excluded from the chats. At least my wife shares them with me.

There was a time that people set standards for (landline) telephone communications for the sake of interoperability. We need the same for other technologies. I'm sick of trying to be social in corporate controlled gated communities surrounded by impassible walls.
by optymizer | 2025-04-21 16:28:36+00:00
They want you to be intimidated by their reputation because it's easier if you make concessions first hoping to get some benefit later. Keep in mind, these are business people and they're very good at it (otherwise they wouldn't be giants). The benefit will never materialize. Working for free just means it was an easy win and you left money on the table.

Do not work for free. Large companies have a shit ton of money. All you need to do is provide an economical argument in the form of your rate (which should take into account their expenses for having an employee / team work on it instead, hint: 2 x total compensation). Getting paid is just a matter of the guy who reached out to you to talk to his skip manager to get a verbal 'ok', and then the accounting department takes care of it. They're not going to pass on you just because you asked to be paid for your time - a business is used to paying for services. If they do pass on you without even negotiating your rate, then they were definitely not serious and nothing good would have come out of it for you.

Source: dev working at FAANG with 3rd party companies.
by alexdanilowicz | 2025-04-21 16:28:55+00:00
Mainly to narrow the problem space: there's a lot of logic in our backend that we call "post processing" which is cleaning up the code after the AI generated it to fix hallucinations. For example, the AI often gets import statements wrong or misspells icon names.

It's pretty interesting because every model seems to introduce a new set of hallucinations, so this is a problem that requires a lot of maintenance. We have this internal mantra to "use AI as little as possible" especially it's a problem that can be solved deterministically.

Also, because we are more focused on PMs, designers, and product leaders the code is largely an implementation detail. What they care about is being able to visually communicate their ideas, and React just happens to be a great way to do that because LLMs are great are outputting it + we have a pipeline to render it. (We are React developers ourselves.)
by zamadatix | 2025-04-21 16:29:16+00:00
It matters because the only thing which can be claimed to have been ignored here is missing the line "Copyright (c) 2024 The Spegel Authors" in the main license file. Now that it's brought up https://github.com/Azure/peerd/issues/109 that'll probably be fixed.

What remains after full compliance with the MIT license choince will be the bulk of the complaints in the article.
by vel0city | 2025-04-21 16:29:20+00:00
Maybe it has some kind of scale. But it probably mostly handles it by tracking humidity within the chamber. Some of these modes don't even bother showing a time when they start, they'll cook for a bit and potentially power cycle the magnetron for a bit until it then sets a time and finishes. It complains when you open the door.

I've used a number of microwaves with these modes which asked for a weight. Those were pretty untrustworthy on their results, because moisture content and starting temp can vary greatly.

I stumbled upon them, but I strongly think the mid-2000's era GE Profile are probably some of the best appliances ever made. They were at least the best dishwasher, oven, and microwave I've ever used.
by jrk | 2025-04-21 16:29:26+00:00
Simon Willison nailed exactly this 2 years ago:

> I've been thinking about generative AI tools as "bicycles for the mind" (to borrow an old Steve Jobs line), but I think "electric bicycles for the mind" might be more appropriate.

> They can accelerate your natural abilities, you have to learn how to use them, they can give you a significant boost that some people might feel is a bit of a cheat, and they're also quite dangerous if you're not careful with them!

https://simonwillison.net/2023/Feb/13/ebikes/
by dhosek | 2025-04-21 16:30:23+00:00
As the child of Italian immigrants to Argentina, Francis was quite fluent in Italian. He’s old enough that his formation would have included significant Latin instruction as well. I would guess that Benedict’s Latin skills were superior, but Francis was reasonably conversant in the language from what I understand.

The thing that I found interesting was during trump’s visit to the Vatican, he asked trump’s Slovenian wife if she was feeding him potica which indicated a surprising level of knowledge of the cuisine of a country which is largely insignificant on the world stage (as someone who’s half Slovene and has a loaf of potica on his kitchen counter, I think I can safely make that declaration).
by fsiefken | 2025-04-21 16:30:45+00:00
A written version of Bergoglio's talk is published in chapter 7 of "Generative Thought: An Introduction to the Works of Luigi Giussani" by Elisa Buzzi, 2003

https://isidore.co/misc/Res%20pro%20Deo/Giussani's%20errors/...
by asddubs | 2025-04-21 16:31:15+00:00
well, it's worth noting that since microsoft is also releasing the source code, the same thing could have happened with GPL. Though I suspect the author would be even less happy if they had done all the same stuff (minus removing the copyright notice, even) and then not released the source, so that's not me arguing against the GPL

I also think in practice microsoft would have been less likely to actually take the code, and probably would just have reimplemented the ideas in it if it was GPL
by mysteria | 2025-04-21 16:31:52+00:00
Sectional watermarking is always going to have a higher risk of detection using multiple rips but that's the tradeoff you get with computational power. As you said the best option is to watermark the whole thing but that's expensive.

Cinavia looks interesting as it's done on the client side, like how programs like Photoshop detect the watermarks in banknotes to prevent people from using it to create forgeries. If they managed to get it into the firmware of every television, AVR, etc. then it would be much more effective than just having it on Blu Ray players.
by opan | 2025-04-21 16:31:56+00:00
>I might not perfectly remember what I wrote, but I absolutely remember where I wrote it. That's lost with digital notes.

Digital notes are searchable, so I'd say this is a very fair trade-off. If all my notes are .txt files in a "notes" directory, even if I don't recall which file I wrote my pizza order from last week in, I can grep them all for keywords like "pizza" to find it immediately. (I can also manage the notes with SyncThing to have them on multiple PCs/phones at once)