MurphyA/hacker-news huggingface dataset:
by unilynx | 2025-04-02 09:46:23+00:00
We did this for a long time for our CMS - although we did simulate a filesystem structure. We also set up a git-like system to store versioning information and set up WebDav to mount it all and allow direct source code editing. It worked pretty well for years.

We eventually stopped because we were relying much more on external tools (eg npm, webpack) which had all sort of issues over webdav mounts. Maintaining all this code management infrastructure in parallel wasn't worth it in the end, and we moved the code back to disk, switched to git, etc.

And photoshop silently ignoring webdav I/O errors when saving designs didn't help either.

You already have tagging by type on the filesystem - the file extension. That allows you to limit file searches. Add extra metadata to extensions if the same extensions have different roles (.backend.ts, .frontend.ts, .html.template, .text.template)

These days I prefer to structure for easy removal of code - everything for eg. a widget (frontend, backend, css) goes into a folder and I only need to remove that folder when the widget is retired, and linting/validation will show me the few remaining path references I need to cleanup.
by Muromec | 2025-04-02 09:46:56+00:00
There is a spectrum between giving citizenship to everyone born in a country (US) and not giving it at all (e.g. Thailand) and every country is somewhere inbetween with some kind of a qualifier and a procedure. Sometimes it's enough that both parents are in the country legally or have a residence there, sometimes you have to wait it out until you are 18 without hiding from reach of the state.

Practically, there is no point for the state to deny you citizenship if you went to school there and can do some kind of a job and pay taxes, because they can't even deport you to a country of origin if you are stateless and born there.

Technically even the US has the jurisdiction qualifier, which the orange clown wants to abuse.
by __loam | 2025-04-02 09:47:20+00:00
That or we're completely ignoring principles like DRY and producing a head spinning amount of tech debt.

I can't really imagine producing that much code in that short amount of time and holding any amount of it in my head. I'd bet money there's code in there that does the same thing but different, leading to all kinds of little inconsistencies that make this code worthless in any serious context.
by tanaylakhani | 2025-04-02 09:47:26+00:00
I just released Lexical JSON Converter, an open-source tool for working with Facebook's Lexical Editor format. If you use Lexical Editor in your projects, you might find this useful.

What it does:

- Converts Lexical JSON to HTML - Converts Lexical JSON to plain text - Generates images from Lexical JSON (preview functionality) - Provides a clean, simple interface for testing your Lexical content

Why I built it:

Working with Lexical Editor's JSON format can be challenging, and I wanted a simple way to visualize and convert the output. This tool makes debugging and integrating Lexical into your projects much easier. I also needed an API to convert lexical JSON to an image screenshot

Tech Stack: Built with ExpressJS and Typescript.

The tool is completely free and open source. You can try it out at https://convert-lexical-json.vercel.app/ or check out the GitHub repo to contribute or self-host.

Looking forward to your feedback and any feature suggestions!
by nizarmah | 2025-04-02 09:47:41+00:00
Not right now. There are applications out there that do p2p off-grid messaging.

Some of them might require you open the application the first time ever while on internet.

There are many out there (on the App/Play store) that support both use cases you mentioned, I just can't list any off the top of my head because it's been a while since I used one.
by oliviergg | 2025-04-02 09:47:49+00:00
Currently working with salesforce, where code is stored in the database ... to put it simply it's not a really good idea because they never decide to go full db or full files. SO you have to manage files in git and deploy to database. So multiple source of truth : sf db, disk, you git, git of other dev, and central repo. Welcome in 1990 when you work as a team. ie ask your collegue if they already work on component if you need to change it ...
by visajapanthrow | 2025-04-02 09:48:35+00:00
The immigration system in Japan is quite open and straightforward on paper, but can be far more challenging in real life.

I know someone who tried to start the naturalization process but was instantly shot down for his Japanese skill (he speaks Japanese well). I know others who have lived in Japan for decades but cannot apply for permanent residency because they only receive short visas, making them ineligible.

Immigration officers have ultimate discretion and will not explain themselves to applicants. I assume this is by design so that particular 'standards' can be subtly applied without being reflected in statistics or receiving any criticism.
by vanderZwan | 2025-04-02 09:48:41+00:00
You accidentally included the array initialization in the benchmarked code ("setup block" vs "boilerplate block"), dwarfing everything else. If we're talking about an already allocated array the difference is pretty big:

https://jsben.ch/FgDA6

… but in a way you're correct that this is rarely the actual bottleneck in the surrounding code. Still, "death by a thousand papercuts" and all that. Plus having old-school for-loops as a habit makes it easier to spot the true botllenecks.
by voodooEntity | 2025-04-02 09:49:36+00:00
So i get your point with date/time - while i may be an oldie with still preferring just having an integer seconds - but thats subjective to me.

Tho the quote for string argument i can't fully agree on. While sure in for example a json i would have to quote the values if i want them "typeless as string" - tho json is far supported everywhere and i'm able to interpret the parsed string values in whatever way i want to.

Adding a new dependency (confetti parsing) to spare out quotes doesn't seem to be worth the convenience to me.

Tho - both probably very subjective things to me.
by udev4096 | 2025-04-02 09:49:56+00:00
The current situation incentives advertising as the only way to monetize something so it's no wonder you want advertising to exist. The fundamental way is always going to be a peer-to-peer network, where you can contribute in so many different ways apart from paying. The majority of the web is filled with people who has no idea on what the original web stood for and frankly, they couldn't care less which is why we are in such a bloated mess
by zobweyt | 2025-04-02 09:50:54+00:00
I understand your perspective, and it's a valid concern. However, this library is designed to support not only simple use cases but also more advanced scenarios, providing a comprehensive solution for various needs. Additionally, it has zero dependencies, which helps keep your project lightweight. This way, you can benefit from the library's features without adding unnecessary complexity to your dependency tree. Thank you for sharing your thoughts!
by MarceColl | 2025-04-02 09:50:54+00:00
I implemented something similar for Common Lisp: https://github.com/marcecoll/rekishi

The idea was that you don't have files, just functions that you can bring in and out of scope while editing. You have branches per-function. This all worked more or less transparently to the user using the normal emacs Sly Common Lisp flow.

It was implemented overriding the +DEFUN+ macro, so function re-definitions automatically serialized and created a new entry in the DB.

The Proof-of-Concept used SQLite, but I also envisioned a postgres backed version for jamming on programs with your friends in real time.
Show HN: I made Open Agents Builder open source for building agents for business
by pkarwatka | 2025-04-02 09:51:14+00:00
The idea came out of the YC RFS—New era ERP, AI Agents for enterprises. I realized the Chat UI may not be the best option for all business cases. I mean, folks used to work with tables, orders, invoices, bookings, etc. They can feel pretty overwhelmed with all kinds of tech workflows, etc. So the idea is to bring the agents closer to the business, filling the "UI gap."

Open Agents Builder is MIT license, has a lot of features for business including: product management, orders management, booking management, attachments/knowledge base, multi-agent flows, etc

Github: https://github.com/CatchTheTornado/open-agents-builder Docs: https://docs.openagentsbuilder.com/ Cloud-hosted demo: https://www.openagentsbuilder.com/
by pasc1878 | 2025-04-02 09:51:22+00:00
Like most things in democracies this relies on the judicialk system being able to enforce and make correct rulings.

But Trump is calling out 'Corrupt Judges' and giveing pardons to all. So how would thins be enforced.

Also in US judges are elected usually as members of a party, will they take action against members of their own party.
by hilbert42 | 2025-04-02 09:51:37+00:00
Right, if you live where duty is applied to ethanol then it's expensive. In Australia, where I am ethanol is available as a denatured product. That is, it includes a very small amount (much less than 1%) of denatonium (aka Bitrex) which renders it undrinkable (it's the bitterest substance known). As such, excise tax is not levied.

Here, one liter bottles of denatured ethanol are available in every supermarket everywhere, and up to 20 liters available in hardware stores (at bulk rates it's even cheaper).

For comparison, here denatured ethanol costs about $5/l [in US dollars] versus isopropyl at between $25 and $30/l.
Show HN: Create Custom Bitcoin Banknotes with Your Own Portrait
by SalmaChan | 2025-04-02 09:51:43+00:00
We built HongbaoBTC, a web app that lets you design and print Bitcoin paper wallets styled like traditional banknotes — but with a twist: you can add your own face (or someone else's) in the portrait area.

It’s a fun way to make crypto gifting more personal and tangible. Inspired by cultural traditions like hongbao (red envelopes for gifting money), HongbaoBTC lets you gift Bitcoin with a personal touch — perfect for birthdays, Lunar New Year, or any special occasion.

Features: Upload a portrait , choose style

Pick a theme (e.g., Ghibli, Marvel, Simpsons etc)

Automatically generate:

QR code linked to a Bitcoin address

Printable banknote-style PDF

Space for the public address and private key

We’re a small team experimenting with ways to bridge digital assets and physical experiences. Feedback and ideas welcome!
by nizarmah | 2025-04-02 09:52:19+00:00
I have not, yet. Right now, it's more of a "signaling life" tool.

Improvements are definitely needed with location, but the signal loss as you mentioned is higher priority and restricts what can be used for location.

I'm planning to do my homework about alternatives to help mitigate the signal loss. And from there, the options for location might be clearer.
by Lutger | 2025-04-02 09:52:28+00:00
You don't have to store things in a database to do this. Code is almost almost read from disk into some kind of in memory data structure that is amenable to such analysis, maybe even more so than a generic database. Doesn't matter if you use vscode or vim, most developers have some kind of tool that does semantic analysis and which affords navigation and organization of code.

Its just that the main way code editors present navigation follows the path hierarchy, also because its often intimately tied to how programming languages shape modules. Most editors have at least some alternative navigation however, and most people are using at least some of them: outlining by declaration symbols, search, changes, unittests, open files, bookmarks, etc.

So in a way, this is already how it is done, except the 'database' part is really tied to the code editor and its storage component nicely decoupled (in the end, databases are usually also just a bunch of files).

I think any real improvements on this model can only come from a new programming language design, and as others have pointed out, this hasn't caught on in the past. The reason for this is probably not that file oriented modularity is the best thing there is, but rather the escape velocity needed to get out of the vast ecosystem of tooling around files, like the OS, git and existing code editors and whatnot.
by shetyemanasi | 2025-04-02 09:54:22+00:00
SEEKING WORK | Europe | Remote

Location: Europe

Remote: Yes

Willing to relocate: No

Technologies:

Design: Figma, Adobe Illustrator, Adobe Photoshop, Adobe Experience and Miro

Presentation: Keynote, InVision, Microsoft PowerPoint

Project Management: Jira, Kanban Boards, and Trello

Prototyping Tools: InVision, Axure RP and Figma

Programming: Basic HTML & CSS

Résumé/CV: https://drive.google.com/file/d/1stXm3PbP-_20SKp-RK-KEPfINGO...

Email: shetyemanasi18[at]gmail[dot]com

Introduction: I am a UI/UX designer with a background in graphic design, art direction, and more than six years of experience in the design industry. I am proficient in creating digital products in agile environments for the consumer and healthcare markets. With my strong analytical, research, and teamwork skills, I have successfully led a variety of projects from conception to development in both office and remote settings. I have extensive experience crafting personas, qualitative analysis, user journeys, user flows, user interface design, low and high fidelity prototypes, stakeholder presentations and design systems for UI components.

I am looking for full-time contract or freelance/consulting opportunities at the moment (up to 40 hours/week) in UI UX Design

Portfolio: https://www.manasishetye.com/

Linkedin: https://www.linkedin.com/in/manasi-shetye
by shetyemanasi | 2025-04-02 09:54:31+00:00
Location: Europe

Remote: Yes

Willing to relocate: No

Technologies:

Design: Figma, Adobe Illustrator, Adobe Photoshop, Adobe Experience and Miro

Presentation: Keynote, InVision, Microsoft PowerPoint

Project Management: Jira, Kanban Boards, and Trello

Prototyping Tools: InVision, Axure RP and Figma

Programming: Basic HTML & CSS

Résumé/CV: https://drive.google.com/file/d/1stXm3PbP-_20SKp-RK-KEPfINGO...

Email: shetyemanasi18[at]gmail[dot]com

Introduction: I am a UI/UX designer with a background in graphic design, art direction, and more than six years of experience in the design industry. I am proficient in creating digital products in agile environments for the consumer and healthcare markets. With my strong analytical, research, and teamwork skills, I have successfully led a variety of projects from conception to development in both office and remote settings. I have extensive experience crafting personas, qualitative analysis, user journeys, user flows, user interface design, low and high fidelity prototypes, stakeholder presentations and design systems for UI components.

I am looking for full-time contract or freelance/consulting opportunities at the moment (up to 40 hours/week) in UI UX Design

Portfolio: https://www.manasishetye.com/

Linkedin: https://www.linkedin.com/in/manasi-shetye
by aronishchal | 2025-04-02 09:55:08+00:00
SEEKING WORK | Europe | Remote

Location: Europe

Remote: Yes

Willing to relocate: No

Technologies: Java EE, Spring, Spring Security, REST, HTML/CSS, JavaScript, JQuery, Node.js, Python, Jaspersoft Studio, Eclipse, Tomcat, MySQL, Oracle, Git

Résumé/CV: https://docs.google.com/document/d/1lMjbMfEHKdCETFNXcV3Q4dRu...

Email: nishchalaro[at]gmail[dot]com

I am a senior developer and consultant with over 11 years in the industry. My expertise is in building robust, secure and scalable backend services and enterprise applications.

My expertise includes data visualization, business intelligence and analytics. I have extensive experience with the TIBCO Jaspersoft BI suite - Jaspersoft Studio, JasperReports Server and Jaspersoft ETL (Talend Open Studio and Server).

I am looking for freelance/consulting opportunities at the moment (up to 40 hours/week).

Website: https://www.nishchalarora.com/

Linkedin: https://www.linkedin.com/in/nishchal-arora
by aronishchal | 2025-04-02 09:55:26+00:00
Location: Europe

Remote: Yes

Willing to relocate: No

Technologies: Java EE, Spring, Spring Security, REST, HTML/CSS, JavaScript, JQuery, Node.js, Python, Jaspersoft Studio, Eclipse, Tomcat, MySQL, Oracle, Git

Résumé/CV: https://docs.google.com/document/d/1lMjbMfEHKdCETFNXcV3Q4dRu...

Email: nishchalaro[at]gmail[dot]com

I am a senior developer and consultant with over 11 years in the industry. My expertise is in building robust, secure and scalable backend services and enterprise applications.

My expertise includes data visualization, business intelligence and analytics. I have extensive experience with the TIBCO Jaspersoft BI suite - Jaspersoft Studio, JasperReports Server and Jaspersoft ETL (Talend Open Studio and Server).

I am looking for freelance/consulting opportunities at the moment (up to 40 hours/week).

Website: https://www.nishchalarora.com/

Linkedin: https://www.linkedin.com/in/nishchal-arora
by jdietrich | 2025-04-02 09:56:05+00:00
A few companies do make ultrasonic cleaners that are designed for flammable solvents, but they aren't common.

The easiest option is to just fill a plastic food bag with solvent, throw your part in, seal it with a clip and float it in your ultrasonic bath. The bag contains the vapour for safety, and it's easy to switch between different solvents and solutions.
by PeterStuer | 2025-04-02 09:57:19+00:00
That top 10 was for childhood deaths from air pollution per capita and included mostly poor nations with less healthcare.

When you look at consumption based accounting for e.g. CO2, the list is very different, namely for 2022:

!. Singapore 2. United Arab Emirates 3. Qatar 4. Saudi Arabia 5. Kuwait 6. Brunei 7. Malta 8. Belgium 9. United States 10. Oman

source: https://ourworldindata.org/grapher/consumption-co2-per-capit...
by nizarmah | 2025-04-02 09:57:26+00:00
There's a higher chance a person/company can do something valuable with this than Apple buying it or hiring me as an employee.

I will also try to create a monetized version for specific use. Maybe that can help fund building a solution that's publicly available.

Both of those will increase the chances of it being adopted by smartphones, like Google and Apple. That's why I switched from GPL-3.0 to MIT.

I appreciate the kind words and the awesome suggestion. Thank you!
by pjc50 | 2025-04-02 09:57:30+00:00
> Levels of asthma in London are highest among kids in the vicinity of the docks

Someone else pointed out that there's very little shipping in central London now. It's all cars and buses causing this pollution.

> In fact if you try to do anything about inner city pollution you can pretty much guarantee an angry pushback.

See how bonkers people got over the ULEZ: https://www.bbc.co.uk/news/business-66268073
by hayst4ck | 2025-04-02 09:59:03+00:00
Part of due process is determining if you are are protected by the law and if people are robbed of due process then the constitution already constructively doesn't apply to citizens.

When a judge blocks a federal action, that's not the judge blocking the action, that's the judge ruling the law is stopping the action.

The constitution is very much "just a historic document with little present day meaning" right now.
by r24y | 2025-04-02 09:59:13+00:00
That's basically what an LSP is. It's true that it's built on top of the file system, and most IDE users will navigate using the folder hierarchy, but it still stores information about the name, type, and connectedness of the codebase, and allows querying. Your idea about arbitrary tags (feature, environment) would be useful but does not seem to be supported by the spec [^1] yet.

[^1]: https://microsoft.github.io/language-server-protocol/specifi...
by mickael-kerjean | 2025-04-02 09:59:39+00:00
I have been playing with the exact opposite, representing a database as a file structure where databases show up as top level folders, tables are subfolders, and each row appears as a form like file automatically generated from the schema. You can see a screenshot of such form in [1] which you can edit and save back, effectively enabling anyone familiar with Dropbox to edit data on a database as it just look like a form to fill

The project is oss [2] and the storage connector is "mysql". It even handles foreign key by creating links to another folder with a search query to find the table row it's associated with

[1] https://i.imgur.com/OBJGIeg.png

[2] https://github.com/mickael-kerjean/filestash
by samus | 2025-04-02 09:59:50+00:00
> Java doesn't even have a security model any more, so what are you protecting?

That security model was obsolete and didn't fulfill its original purpose anymore. Most applications have never enabled it.

> Programmers from their own mistakes? That's fine, but this is about cases where they set the "I really mean it and this isn't a mistake" flag.

Not at all, the vast majority of code using this feature is part of libraries. Application developers are often not aware that this even happens. Anyway, it will also in the future be possible for developers to shoot themselves in the foot with this feature if they really want. They just have to work a bit harder for it.

> The JVM's optimized code from programmers? Plausible, but aren't there already many cases where things get deoptimized based on run-time state changes?

This is not a good thing because interpreted mode is terribly slow. The JIT exists to make Java fast, and developers should not made this harder than necessary.

> It feels like someone just said "final means final!" without really thinking about the purpose of a JVM. Will there be a proposal to enforce checked exceptions, too?

Do people really write `final` and are OK being aware that the field's value could still change after all?

Checked exceptions are already enforced. If you mean changing all exceptions to be checked: no, that would be a catastrophic backwards compatibility break, with no good upside.
by troupo | 2025-04-02 09:59:58+00:00
> Svelte team also switched to JS with JSDoc a few months back

1. They still use types via JS Doc

2. They only switched to that for their internal development

3. User-facing code has all the type support and TS support you'd expect

> Rich Harris (Svelte team) even had a comment on this on HN[3].

And here's literally what he said:

--- start quote ---

Firstly: we are not abandoning type safety or anything daft like that — we're just moving type declarations from .ts files to .js files with JSDoc annotations. As a user of Svelte, this won't affect your ability to use TypeScript with Svelte at all — functions exported from Svelte will still have all the same benefits of TypeScript that you're used to (typechecking, intellisense, inline documentation etc). Our commitment to TypeScript is stronger than ever

--- end quote ---

Compare that to Nue's author's take
by AndrewDucker | 2025-04-02 10:00:16+00:00
In order to uniquely reference one piece of code from another it needs to have a unique name/namespace/reference. Whatever organising principle you use for that will tend to become the hierarchy that your code is stored by.

This doesn't stop you from also accessing it in other ways. And with modern IDEs you can search across a fairly chunky codebase near-instantly, which would allow you to treat it as if it's in a database.
by cowboylowrez | 2025-04-02 10:00:33+00:00
according to my understanding UB mechanics says "k < 16" is always true because its used as an index into d[16]. obviously my understanding is wrong because of your correct code allows it, so I'm just looking for the takeaway here. why is yours not UB when original is? Is there some magic going on that the compiler knows that the value 16 will be used as an index?

is the compiler doing a loop unroll and study that parallels your analysis?

aside from trying to understand this, it also seems a bit nuts that these c guys remediated that behavior by allowing an out of bounds index access with their change (?). so are they saying somehow that in this one case, the out of bounds should be allowed?