MurphyA/hacker-news huggingface dataset:
by masternight | 2025-05-12 08:16:14+00:00
So what if it's using unbounded strcpy's all over the place? It has basically no attack surface. He wrote it for himself, not for criticism from the HN hoi polloi

I didn't point that out so I could be the smartest person in the room and I certainly don't subscribe to the whole rewrite-the-world in rust.

The sheer amount of time I spent debugging problems caused by buffer overruns and other daft problems is immense. It's literal days of my life that could have been saved had safer APIs been created in the first place.

It's a cool toy program and I encourage the learning but maybe let's try and avoid unnecessary problems.
by bound008 | 2025-05-12 08:16:34+00:00
I might do that at some point... this is the main part of it, just a swift data model and one file of views. Plus a bunch of example code for making widgets work.

``` import Foundation import SwiftData

@Model final class FocusItem { let created: Date = Date() var completed: Date? var theFocus: String = "New Focus" var details: String?

init(completed: Date? = nil, theFocus: String, details: String? = nil) { self.completed = completed self.theFocus = theFocus self.details = details }

}

struct FocusItemDescriptors { static let currentFocusPredicate = #Predicate<FocusItem> { $0.completed == nil }

static let sortDescriptor = SortDescriptor(\FocusItem.created, order: .reverse) static let currentFocusFetchDescriptor = FetchDescriptor( predicate: currentFocusPredicate, sortBy: [sortDescriptor])

} ```

``` import SwiftData import SwiftUI import WidgetKit

struct ContentView: View { @Query( filter: FocusItemDescriptors.currentFocusPredicate, sort: [FocusItemDescriptors.sortDescriptor]) private var items: [FocusItem] @Environment(\.modelContext) private var modelContext

@State private var isAddingNewItem = false @State private var newFocusText = "" var body: some View { NavigationStack { List { ForEach(items) { item in NavigationLink { FocusItemDetailView(item: item) } label: { Text(item.theFocus) } } .onDelete(perform: deleteItems) } .navigationTitle("Focus") .toolbar { #if os(iOS) ToolbarItem(placement: .navigationBarTrailing) { EditButton() } #endif ToolbarItem { Button(action: addItem) { Label("Add Item", systemImage: "plus") } } } } .sheet(isPresented: $isAddingNewItem) { AddFocusItemView(isPresented: $isAddingNewItem, addItem: addNewItemWithFocus) } } private func addItem() { isAddingNewItem = true } private func addNewItemWithFocus(_ focus: String) { withAnimation { let newItem = FocusItem(theFocus: focus) modelContext.insert(newItem) DataManager.shared.reloadWidgets() } } private func deleteItems(offsets: IndexSet) { withAnimation { for index in offsets { modelContext.delete(items[index]) } DataManager.shared.reloadWidgets() } }

}

struct FocusItemDetailView: View { @Environment(\.dismiss) private var dismiss let item: FocusItem

var body: some View { VStack { Text(item.theFocus) if let details = item.details { Text(details) } Text( "\(item.created, format: Date.FormatStyle(date: .numeric, time: .standard))" ) Button { item.completed = Date() DataManager.shared.reloadWidgets() dismiss() } label: { Text("Mark as Complete") } } }

} struct AddFocusItemView: View { @Binding var isPresented: Bool let addItem: (String) -> Void @State private var newFocusText = ""

var body: some View { NavigationView { Form { TextField("What is your focus?", text: $newFocusText, axis: .vertical) .lineLimit(3...10) } .navigationTitle("New Focus") .toolbar { ToolbarItem(placement: .cancellationAction) { Button("Cancel") { isPresented = false } } ToolbarItem(placement: .confirmationAction) { Button("Add") { addItem(newFocusText) isPresented = false } .disabled(newFocusText.isEmpty) } } } }

```
by erewhile | 2025-05-12 08:17:14+00:00
The ideas of these machines isn't entirely new. There's some research from 2002, where Liquid State Machines (LSM) are introduced[1]. These are networks that generally rely on continuous inputs into spiking neural networks, which are then read by some dense layer that connects to all the neurons in this network to read what is called the liquid state.

These LSMs have also been used for other tasks, like playing Atari games in a paper from 2019[2], where they show that while sometimes these networks can outperform humans, they don't always, and they tend to fail at the same things more conventional neural networks failed at at the time as well. They don't outperform these conventional networks, though.

Honestly, I'd be excited to see more research going into continuous processing of inputs (e.g., audio) with continuous outputs, and training full spiking neural networks based on neurons on that idea. We understand some of the ideas of plasticity, and they have been applied in this kind of research, but I'm not aware of anyone creating networks like this with just the kinds of plasticity we see in the brain, with no back propagation or similar algorithms. I've tried this myself, but I think I either have a misunderstanding of how things work in our brains, or we just don't have the full picture yet.

[1] doi.org/10.1162/089976602760407955 [2] doi.org/10.3389/fnins.2019.00883
by bruce511 | 2025-05-12 08:17:31+00:00
My point is that when you're reaching out it's helpful to articulate what you are looking for.

Since I've never met you, if you reached out to me using the post above, I politely decline since I don't see what I'd learn from you. I expect you're not Bill Gates or Steve Jobs etc (if you were you wouldn't be hitting me up).

Now it's possible you could learn from me, but (shrug) probably not. There's a million places you can go online to read much better things than I could say. (I most certainly am not Steve Jobs.)

I think you're suggesting we meet as "peers" - but you're giving me nothing to suggest er are peers. Since my default position is "nothing to see here", I'm just moving along.

I think if you want to make contacts you need to narrow down your search a bit.
by jbverschoor | 2025-05-12 08:17:46+00:00
Something went wrong. Oh, just remove and fix the underlying problem from weeks ago.

No git, version control, copy paste.

You need to a bigger crane? Ouch.

Rainy season causes some delay? Welcome to the domino effect.

Supply chain issues? Oh well.. you better have good contracts.

Most applications are a 2D problem space: carthesian products.
by johnisgood | 2025-05-12 08:18:58+00:00
I checked out bcrypt implementation in Hare, and I saw "errors::invalid" being used. It was not specified. What if I want to have more errors and in the documentation I want people to know which errors, say, my library may return from specific functions?

C3 had some weird stuff going on at some places, not exactly sure why. In my other thread someone else already went into it in more detail. I hope the developer will fix it. Needs to stay as close to C as possible and build on top of it, only some of the goodies.
by mike_hearn | 2025-05-12 08:19:02+00:00
The God Object needs to be referenced at least transitively by the wrappers you hand out, and its API surface needs to grow constantly to encompass any possibly security-sensitive operation.

Dependency injection doesn't help here much, at least not with today's languages and injectors. The injector doesn't have any opinion on whether a piece of code should be given something or not, it just hands out whatever a dependency requests. And the injector often doesn't have enough information to precisely resolve what a piece of code needs or resolve it at the right time, so you need workarounds like injecting factories. It could be worth experimenting with a security-aware dependency injector, but if you gave it opinions about security it'd probably end up looking a lot like the SecurityManager did (some sort of config language with a billion fine grained permissions).
by robocat | 2025-05-12 08:19:25+00:00
> It’s garbage pretend science

The scientists are not to blame for the appalling incentives of the grant system here.

Wait a few years and we'll get the same thing again except the titles of the bad science will be:

* An economic analysis of rehoming manufacturing to underepresented states

* a study of price inelasticity of Greenlander's real estate?

* benefits of the politically disenfranchised attacking the senate as compared to archaic senate law making.
by rustcleaner | 2025-05-12 08:19:40+00:00
... but you can be a bro and make sure that hardware is close to the surface somewhere for easy access, its presence isn't required to start and operate the car (either firmware check or the immobilizer performing metrics), and its removal does not cause an obvious and annoying alert during operation (IE removal should not make the car appear to be in a 'degraded' state per its indicators).

You are complying by installing it, the customers are the ones [easily] removing it [because you were a bro].
by _bin_ | 2025-05-12 08:19:40+00:00
I'll second the zed recommendation, sent from my M4 macbook. I don't know why exactly it's doing this for you but mine is idling with ~500MB RAM (about as little as you can get with a reasonably-sized Rust codebase and a language server) and 0% CPU.

I have also really appreciated something that felt much less janky, had better vim bindings, and wasn't slow to start even on a very fast computer. You can completely botch Cursor if you type really fast. On an older mid-range laptop, I ran into problems with a bunch of its auto-pair stuff of all things.
by nottorp | 2025-05-12 08:20:18+00:00
I would like a list of those companies making "software defined" vehicles so I can avoid them.

Not because of the shit infotainment systems - although the idiots could save money by just doing carplay and android auto, they'll never do something better.

But because I want physical only failsafes for stuff like brakes and cutting off the engine.

Also, use the savings in software to bring physical buttons back.

Besides the life threatening "software" features, don't forget that they could also adjust engine power in software. As in, include 75 hp in the selling price and sell you highway speeds for $999 for a week or $299 per month with a 2 year commitment...
by surgical_fire | 2025-05-12 08:20:26+00:00
Hard disagree, and I wonder how you can say that when we live during times when society in general is definitely is unable to handle "challenging ideas". Also, far too many times past societies accepted vile ideas as valid information with terrible results.

You are very optimistic that unshackled free speech will ensure that bad ideas are not given a free pass, but in reality bad ideas very often smother the discussion when people adopt a stance of "my ignorance is as valid as your knowledge".

By the way, you applied a suspicious change of rhetorical focus when the original terminology was "vile ideas" and you switched that to "challenging ideas". I'll consider that an accidental slip instead of malice.
by tarun94m | 2025-05-12 08:20:59+00:00
I'm excited to apply for the full-time Fullstack Developer role at Blotato. I admire your mission to help content creators go viral and appreciate your preference for simplicity over hype-chasing trends.

I’m Tarun Manjunath, a fullstack developer with professional experience in React, Next.js, Node.js, and TypeScript. I’ve developed robust, performant applications and REST APIs, improved UI responsiveness, and deployed scalable systems on AWS. I value clean architecture and pragmatic problem-solving, and I enjoy working in fast-paced, agile environments.

As requested:

Editor preference: vim

Favorite AI coding tool: GitHub Copilot

Looking forward to the opportunity to collaborate with your team!

Best regards, Tarun Manjunath tarun2m200@gmail.com | +91 96325 20648
by strogonoff | 2025-05-12 08:21:17+00:00
> why specifically are people allowed to build on humanity's past achievements, but not AI?

Let’s untangle this.

1. Humanity’s achievements are achievements by individuals, who are motivated by desires like recognition, wealth, personal security, altruism, self-actualisation.

2. “AI” does not build on that body of work. A chatbot has no free will or agency; there is no concept of “allowing” it to do something—there is engineering it and operating a tool, and both are done by humans.

3. Some humans today engineer and operate tools, for which (at least in the most prominent and widely-used cases) they generally charge money, yet which essentially proxy the above-mentioned original work by other humans.

4. Those humans engineer and operate said tools without asking the people who created said work, in a way that does not benefit or acknowledge them, thus robbing people of many of the motivations mentioned in point 1, and arguably in circumvention of legal IP protections that exist in order to encourage said work.
Show HN: I built ScoreMeIO to compare and rank any product
by yevhenms | 2025-05-12 08:21:27+00:00
Hi HN,

I’ve built ScoreMe.io, a tool that helps users score and compare products based on what matters most to them — from features and usability to price or even just vibes. It’s designed to give individuals and teams a simple scoring dashboard where they can:

Add and rate products based on custom or AI-generated criteria

Save and compare scores in one place

Get advice on what to pick (AI-assisted)

Share their scored products publicly or keep them private

Discover trending products scored by others

It started as a personal need to make smarter product choices without spreadsheets. Now it’s a growing platform with a clean UI and flexible scoring engine. Would love your feedback!
by troupo | 2025-05-12 08:22:45+00:00
It's not really a struggle, but when all you have is a string, how do you enforce certain rules and requirements?

E.g. classMap https://lit.dev/docs/templates/directives/#classmap

--- start quote ---

The classMap must be the only expression in the class attribute, but it can be combined with static values

--- end quote ---

So now you have to figure out which attribute this is called from, whether this particular call is allowed in this attribute etc.

So what they do is they parse (with regexes) their "close to HTML" code into a structure not dissimilar to React's, figure all this stuff out, reassemble actual HTML and dump it to the DOM
by aspenmayer | 2025-05-12 08:22:45+00:00
In the 80s and 90s, Japan was the vaguely menacing economic bogeyman but that seems to have been in stark contrast to all I read about how Japan had almost no growth in GDP through those years due to inflation or something I have already forgotten. Which is why I don’t really look at what China or the US is doing as being surprising. China has been the bad guy since they were admitted to the WTO, if I had to put a date on it. I mean, the Vietnam War didn’t help much either, but that war was China’s Vietnam war also. But economically, China is still treated differently than any other country. Actions against China like tariffs seem like a massive hedge against inflation, but I don’t know if it will put meaningful pressure on their economy or ours, but we get the government we deserve. I’m not sure if they have a saying like that in China, but it would be interesting if they did.

I think federalism in the US allows a kind of “freedom gradient” where the patchwork of overlapping legalities allows for uneven enforcement and a distribution of norms of business and in behavior. These gaps allow for growth and innovation but can lead to voter approved market failures in one jurisdiction that might as well be a world away from those who work in the state capitols or in D.C.

I don’t know why socialism, Marxism, or whatever is blamed for dictators doing bad things for good/bad/no reason. I don’t blame democracy for the bad policies of its adherents either. Any system of government can produce bad results.
by Go7hic | 2025-05-12 08:24:29+00:00
Planet Party Time is a family-friendly party game set in a fantastical galaxy, emphasizing multiplayer social interaction and development. The game boasts extensive content, having over 120 mini-games at launch with new games added each month.

It features various modes, including esports, calendar events, and user-generated content (UGC), supporting 4 to 32 players in a single match. Moreover, it perfectly combines party gameplay with social simulation and management, allowing players to participate in mini-games to gather resources and revitalize barren planets, blending the joys of partying and building!

Planet Party Time is officially landing! Get ready to revive your planet with endless parties! 120+ wild minigames 32-player chaos Your world to create, conquer & party on!
by jwalz | 2025-05-12 08:24:48+00:00
SEEKING WORK - Netherlands / US- Remote-only I'm a frontend engineer looking for projects to build on a freelance basis. I am experienced in JS/TS/React and Web3. Previously, I worked at Gemini (Crypto - four years) and Olio Apps (Agency - two years). Resume: https://drive.google.com/file/d/1ZzDGkA3PcTGPrafWNQ-1AtUpC__... LinkedIn: https://www.linkedin.com/in/jonathanwalz/ email: jon@jonathanwalz.com
by fc417fc802 | 2025-05-12 08:25:49+00:00
Scheduling, staffing, and tooling constraints all exist in the software world as well. If you're going to extend to the entire job site then you'll need to extend to the entire dev team plus associated management.

I don't immediately see an analogy to supply chain issues but then I hadn't intended this as a pissing contest to begin with.

It's interesting to me that I'm getting defensive replies when all I pointed out was the increased dimensionality of the problem space when writing code versus assembling a physical product. I don't think that observation can realistically be contested.
by myfonj | 2025-05-12 08:26:12+00:00
Am I the only one who (still) does not feel comfortable seeing JavaScript being intertwined into the so-called "vanilla" web in a way that seems more like a hard dependency and not the progressive enhancement we were taught should be the approach for serious public websites?

The page https://plainvanillaweb.com/pages/sites.html uses custom components for all code examples and embedded content. Without JavaScript, it merely shows "enable scripting to view ../XYZ.html" in place of all code examples and demos. Better than having no fallback at all, I suppose, yet still not "navigable".

The fact that it does not even bother to build these custom components on any native element with a similar purpose—like, say, a link that users could follow to see the text document (*), or a plain old iframe (**)—is grim.

Web components are indeed useful for prototyping and personal testing, but are they really beyond the threshold where it is safe to serve them in the wild, potentially harming some users?

(*) I know, view-source: links and embeds are sadly blocked by browsers nowadays. Makes very little sense to me. Someone likely managed to exploit it for some nasty purposes, so now we are "protected", I suppose.

(**) See? In the olden days even iframes were said to have a link fallback inside, for user agents that did not support them.
by fallingknife | 2025-05-12 08:26:24+00:00
> It would be a major setback for society for us to return to the pre-1940s days of "gentlemen scientists" where science and other academic pursuits were only reserved for the independently wealthy and for those who relied on patronage. Modern technological innovations are made possible through research, and it's important that research efforts are funded in a regular manner.

How much of a setback would this really be, though? The US government spent $200 billion of R&D in 2024. Of that $200 billion, $140 billion of it was military related which is probably not in danger. Including private spending, total r&d was around $900 billion. So even if the $60 billion of non-military government research spending was entirely eliminated, that would be only around a 7% decline in spending.

But still that would be bad. That $60 billion is a lot to replace from private funding. I don't know if it would be a net negative, though. It seems like privately funded research can seriously outperform government funding because when private actors fund research, they do it for the specific reason that they want the research done. Contrast this with public funding which has to meet a lot of political goals that have nothing to do with science. Look what SpaceX has been able to accomplish vs NASA. NASA has great scientists and engineers and a much bigger budget than SpaceX did, but the problem is that their rocket building program was more of a jobs program and a way to spread money to a lot of congressional districts than it was about building rockets. Whereas SpaceX had exactly one goal and that was to build rockets.

I also think that it's important to fund research in a regular manner, but is government a more reliable way than private patrons? It feels like its the opposite. If we had a government that really cared about science and committed to funding it in an effective way and never using it as a cover to funnel money to political causes I do think it would be better than relying on private funding, but when I read a list of cancelled grant like this it doesn't seem like we do. https://airtable.com/appGKlSVeXniQZkFC/shrFxbl1YTqb3AyOO?jnt...
by brahyam | 2025-05-12 08:27:36+00:00
Cursor. Good price, the predictive next edit is great, good enough with big code bases and with the auto mode i dont even spend all my prem requests.

I've tried VScode with copilot a couple of times and its frustrating, you have to point out individual files for edits but project wide requests are a pain.

My only pain is the workflow for developing mobile apps where I have to switch back and forth between Android Studio and Xcode as vscode extensions for mobile are not so good
by rustcleaner | 2025-05-12 08:28:04+00:00
Your privacy should not rely on the government's "trust me bro" and it's like we forgot about China owning SS7 last year lol. No, it is plainly obvious to me that the mandate for eCall and the lack of an owner off switch for it is for nannying and surveillance FULL STOP. No option to opt out must be treated the same as the violations to privacy they are attempting to pre-construct the conditions for.
by mytailorisrich | 2025-05-12 08:28:07+00:00
I think it's because they both agreed to cancel the latest round of tariffs and to both lower them to 10%, instead, however the previous 20% imposed by the US (so-called "fentanyl tariff") is not included, which brings effective levels to 30% and 10%.

This means a lower general rate that the US have imposed on Taiwan (32%), btw...
by fenomas | 2025-05-12 08:28:21+00:00
This is doing the same thing described in the GP of your comment.

If 1/few people are building a site so simple that the menu code is in "menu.js", then sure, separate your code and go about your day. But when 30+ FTEs are building a huge app with lots of tightly interconnected features, then the complexity is there no matter how you architect your code - it's part of the business requirements. Like GGP said, they're different domains, and stuff said about one doesn't necessarily apply to the other.
by arkh | 2025-05-12 08:29:07+00:00
And with the help of software your get: this algorithm works well to recognize signs using 2 cameras. We can alter it a little to make it work with 1 camera (huge savings) and losing like 10% accuracy. With a cheaper camera we lose again some accuracy but even more savings.

Now you get a shitty feature for savings while the people who implemented it can go cry in a corner thinking about their good version.
by soco | 2025-05-12 08:29:12+00:00
I am not sure through which lens I should read this comment. Is it sarcasm, or hope? Because as seen from my side, the wealth gets mainly transferred to a handful of billionaires, and that process is only speeding up. But maybe I'm just blind to the wealth transfer to the street sweeper or Amazon driver, in which case yes the future should be bright.