MurphyA/hacker-news huggingface dataset:
by vbalasu | 2025-05-03 15:54:17+00:00
# Mermaid Magic

An IPython magic extension for rendering Mermaid diagrams in Jupyter notebooks.

## Installation

```bash pip install mermaid-magic ```

## Usage

1. Load the extension in your Jupyter notebook:

```python %load_ext mermaid_magic ```

2. Use the `%%mermaid` cell magic to create diagrams:

```python %%mermaid graph TD; A[Start] --> B{Is it working?}; B -- Yes --> C[Great!]; B -- No --> D[Fix it]; D --> B; ```

## Features

- Renders Mermaid diagrams directly in Jupyter notebooks - Automatically loads the Mermaid.js library when needed - Supports all Mermaid diagram types (flowcharts, sequence diagrams, etc.)

Create mermaid diagrams in: - Jupyter Lab and Jupyter notebooks (classic) - Databricks Notebooks - Notebooks (.ipynb) in VS Code - Notebooks (.ipynb) in Cursor
by throwup238 | 2025-05-03 15:54:18+00:00
The feature proposal was called HTML Imports [1], created as part of the Web Components effort.

> HTML Imports are a way to include and reuse HTML documents in other HTML documents

There were plans for <template> tag support and everything.

If I remember correctly, Google implemented the proposed spec in Blink but everyone else balked for various reasons. Mozilla was concerned with the complexity of the implementation and its security implications, as well as the overlap with ES6 modules. Without vendor support, the proposal was officially discontinued.

[1] https://www.w3.org/TR/html-imports/
by HarHarVeryFunny | 2025-05-03 15:54:20+00:00
> Short of invading China, we can't fix their labor issues but we can stop paying for it.

If there were better jobs available in China, don't you think those "slave" laborers would be applying for them?

Yes, we can take away their jobs, by killing the demand for what they are making, and this is going to help them exactly how?
by bee_rider | 2025-05-03 15:55:06+00:00
> So net net the chances of success from passive angel investing are only slightly better than playing the lottery.

Is this right? An organization running a lottery—their whole job is to run a lottery, they’ve staked their reputation on the fact that they pay out to winners. The one with a reputation to defend is the one paying out.

The company angel investor is dealing with a company that, ultimately, wants to either get into position to sell some service, or wants to get bought. Their raison d'etre isn’t being a reliable payer-out of winners. I’d expect the lottery to be much more honest.
by lizard | 2025-05-03 15:55:14+00:00
Sorry, that's the point I was making to which I may have got off track. Marriage can't be ended by one party "calling it quits on frivolous grounds" because its a legal contract between two people.

Both parties must come to an agreement about how to break the contract, including conditions they may or may not have realized they agreed to, otherwise the must demonstrate how one has already broken the contract.

If you want a relationship you can just walk away from, or believe your parter does, you should not get married.
Show HN: Comp AI – An open source alternative to Drata and Vanta
by carhartlewis | 2025-05-03 15:55:44+00:00
Hey HN,

We’re the founders of Comp AI (https://github.com/trycompai/comp), an open source alternative to Drata & Vanta.

Our goal is to help 100,000 companies get compliant with frameworks like SOC 2, ISO 27001 and GDPR over the next five years.

To support that goal, we’re trying to make the platform as self serve as possible - so founders who’ve never been through the process can start to get compliant at any stage.

Any feedback is appreciated
by yusina | 2025-05-03 15:56:33+00:00
> A smart enough attacker will use the gap between spec and implementation and target those errors.

"Formal verification" literally means that the implementation is proven to satisfy the formal specification, so by definition there won't be any gaps. That's the whole point of formal verification.

But you have a point in that there will still be gaps -- between specification and intent. That is, bugs in the specification. (Or maybe you mean "specification" to be some kind of informal description? That's closer to intent than an actual specification which in the formal verification world is a formal and rigorous description of the required behavior.) Though those bugs would likely be significantly less prevalent .. at least that's the expectation, since nobody has really been able to do this in the real world.
by rpaddock | 2025-05-03 15:56:40+00:00
I thought they might have been talking about QM Power's technology. They are talking about something else.

I don't know anything about QMP claims other than I came across them a couple of days ago.

"Q-Mag is a breakthrough brushless electromagnetic machine with both permanent and electromagnets on the stator with a magnet-free rotor."

https://qmpower.com/technologies/
by marssaxman | 2025-05-03 15:56:51+00:00
I don't really ever find myself having to do that. I guess it's been a long time since I worked in an environment which did not use an "only merge to main after passing CI" workflow, and back then we weren't using git, anyway.

There was one git-using startup I worked for which had a merge-recklessly development style, and there was one occasion when I could have used `git bisect` to disprove my coworker's accusation that I had thoughtlessly broken the build (it was him, actually, and, yuck - what a toxic work environment!), but the commit in question was like HEAD~3 so it would probably have taken me longer to use git bisect than to just test it by hand.
by paganel | 2025-05-03 15:56:57+00:00
> Worldwide practice.

For sure we don't do that sociopathic thing here in Romania. Ok, I get it, the regulations were set in stone, but after shredding (again, what the flying fuck?!?!) the first animal hasn't any of those Dutch employees just stopped and ask themselves: "What the hell are we doing here?". It certainly explains Anne Frank, after all she was violating the regulations that were in place back then in that desolate and sad country.

> 2. These are also human traits! Maybe not so much humane traits.

We're talking about mammals here. Not that what happens with chicks is the correct way to do it, and God knows we deserve everything that comes our way as a species for doing that, but there are degrees in all this madness.
by catlikesshrimp | 2025-05-03 15:57:26+00:00
Unfortunately, toddlers (not toadlers) don't know that bleach and amonia are toxic, and that colored pills are not for swallowing en masse. They do learn about some, when they survive. People's tastes are truly varied.

Some adults inject chlorine thinking it provides health benefits.

TLDR: Learning what to consume by Trial and error works for bats, but not for humans.
by HDThoreaun | 2025-05-03 15:57:36+00:00
when fixed costs are high you want to invest more to raise the final price. The lower the fixed costs the less sense it makes to build the most expensive thing you can.

there are only so many people looking for those units. As more units are built the competition to sell those units will heat up. Either prices drop on those units, or theyre replaced by units that are cheaper to build. Right now they can sell all the luxury units they build so no reason to build anything else. So removing the barriers doesnt itself make luxury less appealing for developers, but it increases the number of units built and that makes luxury less appealing for developers. It will still make sense to build luxury, but it wont make sense to build only luxury.

There are other reasons too. Personally I would not mind living in communist style blocks and I know some others agree. If it was legal to build those they might be created because you can fit so many more units on a plot compared to luxury housing.
by seadan83 | 2025-05-03 15:58:07+00:00
> That's only in your head. Inventing claims so that you can pretend other people are wrong isn't a good move.

I'm not the only one that interprets a statement as "Math is Language" to be of the form "A = B" where "math" is A, "language" is B, and "is" is the equals operator, see: https://news.ycombinator.com/item?id=43874322

Seems kinda simple.. You're engaging in a almost pure personal attacks. Care to address the substance of how the 3 word long statement is not of the form "A = B", but is of some other different form? In which case, perhaps you can guide the conversation for why it is an interesting statement or not? If you want to change all the givens and use your own definitions, please provide those. Without common ground, this remains uninteresting.
by farlow | 2025-05-03 15:58:18+00:00
The mod is ultimately just C code that is called from hooks installed into the game engine. Concretely, we overwrite an instruction in the game engine's render function with a jump to one of our C functions. Then we jump back to continue the render function when we're done.

The C code can do anything at this point. The remaining work is to crawl through Ghidra to find interesting addresses to read/write to and useful functions to call to affect the game engine. That entails some combination of reading through function and variable names, setting breakpoints in the Dolphin debugger to check values, and writing the mod code and testing if it does what I expect.
by 1vuio0pswjnm7 | 2025-05-03 15:58:31+00:00
Note there are some web search engines that only block exhaustive searching when the computer user is not "signed in". This could be a coincidence, not an attempt to force computer users into submitting to increased surveillance and data collection foor coommerciall purposes. 0x is written for a computer user who did not "sign in" to websites in the 90s, 00s, 10s and as a matter of habit does not do so today.
by djoldman | 2025-05-03 15:58:42+00:00
> Our developer brains scream at us to ensure that we’re not copying the exact code three times, we’re creating the header once then “including” it on the three (or a thousand) other pages.

Interesting, my brain is not this way: I want to send a minimum number of files per link requested. I don't care if I include the same text because the web is generally slow and it's generally caused by a zillion files sent and a ton of JS.
by rendx | 2025-05-03 15:59:14+00:00
A bit difficult to quote statistics from varying sources without defining what constitutes "violence" (or discussing the wide spectrum of possible definitions).

Leaving an interesting quote:

"For violence to take place, there must be a cognitive process of dehumanisation of the ‘other’ backed up by the narcissistic rage of the traumatised self, in addition to the neurophysiological manifestations of a disrupted attachment system. […] Violence is not an innate biological instinct: it is the manifestation of both our disrupted attachment bonds and our shattered self."

-- Felicity de Zulueta: From Pain to Violence: The Traumatic Roots of Destructiveness (2006)

https://www.traum-und-verantwortung.de/zitate/from-pain-to-v...
by tialaramex | 2025-05-03 16:00:45+00:00
> due to tree-like implementation of HashMap.

Exactly, this data structure has to provide counter-measures to cope with the fallout from this other poor choice.

The fast data structures for this work don't need a tree here, they're open addressed instead, but this would mean they can't cope if your attacker can arbitrarily collide input, so, too bad.
by bionhoward | 2025-05-03 16:01:00+00:00
One thing I thought was funny was remembering these AI services all have the customer noncompete clause and this morning realizing they can actually sue you (not just rug pull you, actually bankrupt you with legal fees) if you use em to develop competing stuff

Does that imply using OpenAI/Anthropic/Gemini API/Grok/Copilot for anything but the most trivial jokish personal uses ought to be considered a serious breach of fiduciary duty because it exposes your business to potentially massive legal costs?
by theGeatZhopa | 2025-05-03 16:01:28+00:00
While this 8% are limited to "sorts of" and may not include "CRISPRed" or "chlorine-bleached".

Just a thought from me, as European, in case someone asks for the thinking behind strict import EU rules:

We just don't want to eat things that we believe may cause (abstract) harm, and, sorts of liability of the state and society to care for you and (God beware) your kids if some adverse effects are pinpointed to food/imports or misregulation. I think it's ok like that.
by ryandrake | 2025-05-03 16:02:28+00:00
Yea, wow. The very first thing I do on most websites is CMD-+ to make the text larger and to make it fit my browser window horizontally, and somehow this site managed to be so bad that it prevents even that. I don't know how we keep furthering this trend of having a web site be a 5 inch wide strip of tiny font text down the middle of the browser window, with double that in whitespace on either side.
by schiffern | 2025-05-03 16:02:50+00:00
>This is what the Nazi's, and many other destructive and evil regimes have done. Supporting this, making light of it, is the same as supporting one of those camps.

I can't tell anymore. Is this allusion to silly irrational Godwin's Law arguments (in a thread about online debating) supposed to be intentionally or unintentionally this funny?

If it's parody, absolutely pitch perfect. Well played.
by yusina | 2025-05-03 16:03:31+00:00
I suppose you are vegetarian? Cause the amount of suffering that the majority of animals have endure which are killed for meat is on a similar level. (Transport to slaughterhouse and subsequent death by suffocation or boiling, depending on species.)

Or rather, vegan? Since average dairy cow or hen endures quite some suffering over their whole life too. In addition to then experiencing a similar death to what animals mainly used for meat production endure.

This is meant to point out that the shredder is a terrible machine, buy not categorically worse than how the typical production animal is treated at some point of their conscious life.

(To clarify, I'm personally neither vegan nor vegetarian so am not trying to elevate myself morally above you.)
by _dark_matter_ | 2025-05-03 16:03:34+00:00
I want one thing - tell me people's names. I have the unholy ability to say your name several times and have an hour long conversation, and still not remember it next time I see you. People take this so personally that I've started avoiding some social gatherings where I only lightly know people! I'd love to "know" the name of everyone I've met because I'd be so much more comfortable seeing and talking to them again!
by fb03 | 2025-05-03 16:03:41+00:00
I found that design decision a bit odd as well, as the author states multiple times that he's interested in cycle-accurate emulation. When people go for a cycle-accurate emulator, they are purposely eschewing performance for accuracy. e.g. the Higan emulator which focuses on accuracy/code readability, but it's one of the slowest SNES cores out there (and it's fine)
by quectophoton | 2025-05-03 16:05:14+00:00
> Something I’d like to see in browsers is native support for text/markdown [...]

Sadly, I can see why it's unlikely that we'd get this.

First, browsers would need to agree on which flavor of Markdown, what extensions, and so on. After all, Markdown is almost like the CSV of text formats, with everyone doing their own thing ("almost" because you can still assume that some basic things work as you'd expect).

Only with that, I can already see the backlash no matter what they choose to do here. Too minimal, and get complains about not being too useful. Choose some extensions, get complains about being bloated. Make any attempt to have a thoughtful discussion about pros and cons (short and long term), get shut down with "don't let perfect be the enemy of good".

If we can get past that and finally agree on one specific set of features, there's still the question of whether it's actually worth it or not. The difference between Markdown and PDF is that reading PDFs directly in the browser is a common enough activity, but reading Markdown directly is only going to benefit the tiny audience of the small percentage of software devs that exist in the world, and maybe 5 weird people. Everyone else with a blog would just use the WYSIWYG from their CMS.

That's why I wouldn't be surprised if I don't see native Markdown rendering during my lifetime.
by berkes | 2025-05-03 16:05:17+00:00
I agree that much clearer constraints and less wiggle room would be better.

But imposing technical solutions in laws has hardly ever worked. Because these are almost always much easier to circumvent.

E.g. your suggestion to "honor browser headers" would be easy to circumvent by not having a browser - native apps, alt clients, etc. Google would easily track almost everything they do now through android, play services, email, docs, etc. And such implantation details inevitably get outdated. E.g. in The Netherlands we have a law that forbids, with severe punishment, that you read people's paper post. If only lawmakers hundreds of years ago had abstracted this to "correspondence" rather than paper mail in envelopes, it would've applied to email and probably all network traffic.
by sleepybrett | 2025-05-03 16:05:34+00:00
I've now seen your sources...

under age: https://www.ssa.gov/pubs/EN-05-10085.pdf

"over age" (i can only assume you mean 150 year olds or whatever, dead people are getting checks): https://apnews.com/article/social-security-payments-deceased...

"future birthdays": assuming you mean that there are records in the database, according to elon and 'BIG BALLS' that are assigned to someone who has yet to be born. However I can find no stories to support this. I expect it's typical elon musk puffery.
by qwerpy | 2025-05-03 16:06:12+00:00
Agree. Now I watch the rat racers with bemusement while I put in just enough to get a paycheck. I have enough time and energy to participate deeply in my children’s upbringing.

I’m in America so the paychecks are very large, which helps with private school, nanny, stay at home wife, and the larger net worth needed (health care, layoff risk, house in a nicer neighborhood). I’ve been fortunate, so early retirement is possible now in my early 40s. It really helps with being able to detach from work, when I don’t even care if I lose my job. I worry for my kids though. It won’t be as easy for them. AI and relentless human resources optimization will make tech a harder place to thrive.
by jasonjmcghee | 2025-05-03 16:07:17+00:00
I think distraction is doing a lot of work here. Many people could play video games 24/7 with no issues. The urge to be productive and/or make personal progress is something a lot of people feel, (which is fantastic), but video games do a really good job of replacing those feelings along with other emotional experiences.

Many shows and movies can play a similar role.

I think we would/will see a lot more of that. Even in transitional periods where people can multitask more now as ai starts taking over moment to moment thinking.
by hsial | 2025-05-03 16:07:23+00:00
Helpcare AI (YC F24) | Fullstack Engineer | REMOTE | Full-time| https://helpcare.ai - Mission to improve the world's capacity for care

- To 3x the care Americans get today.

- Built true Autonomous Agents for Care Coordination

- David (Data Agent) to analyze patient records and find people that need care

- Angelica (Admin Agent) to call & schedule those patients

- We are already live and you wont believe the amazing responses we get from patients (especially non-english speakers)

Who we are:

- Respectful, intelligent, positive team

- A-players that are excited to build the best

- Well funded, YC- Company with incredible customer demand

Simple Apply Here: hhttps://docs.google.com/forms/d/e/1FAIpQLScpzOyP_mk3muEpbKrn...
by kamranjon | 2025-05-03 16:07:24+00:00
I am curious if anyone knows if the neural cores in apple silicon based machines are at all useful in training? I’ve been using the MLX framework but haven’t seen them mentioned anywhere so I’m just wondering if they are only useful for inference? I know whisper.cpp takes advantage of them in the inference context.

Edit: I changed llama.cpp to whisper.cpp - I didn’t realize that llama.cpp doesn’t have a coreml option like whisper.cpp does.
by lelandfe | 2025-05-03 16:07:45+00:00
It kinda sucks for both! Dropping in a box of text that flatly does not resize to fit its contents does not fit the definition of "fine" for me, here.

You can do some really silly maneuvers with `window.postMessage` to communicate an expected size between the parent and frame on resize, but that's expensive and fiddly.
by LegionMammal978 | 2025-05-03 16:08:39+00:00
As it happens, the major browsers still can do XML 'includes' to some extent, since by some miracle they haven't torn out their support for XSLT 1.0. E.g. this outputs "FizzBuzz" on Firefox:

<!-- fizz.xml --> <?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet type="application/xslt+xml" href="style.xslt"?> <fizz>Fizz<buzz/></fizz> <!-- style.xslt --> <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="buzz"> <xsl:value-of select="document('buzz.xml')"/> </xsl:template> </xsl:stylesheet> <!-- buzz.xml --> <?xml version="1.0" encoding="UTF-8"?> <buzz>Buzz</buzz>

You can even use XSLT for HTML5 output, if you're careful. But YMMV with which XML processors will support stylesheets.
by eloycoto | 2025-05-03 16:08:39+00:00
This is very cool project I need to say. I really like all the things that you build on top of that. I had no idea about the BMA550 accelerometer usage to detect speech and silences, it's very very cool.

Regarding the IMU, it mentioned the MM-FIT for workouts, but I checked the code and it's not used at all, no?

Good job, awesome product :-)
by rocqua | 2025-05-03 16:09:16+00:00
You hit uppon an important difference between the US and most of Europe/the UK. An system for tracking who your citizens are. In the Netherlands, where I live, the municipalities cooperate to keep track of all citizens, and their address (or lack thereof). This means that you never need to convince any beaurocrat that your identity exists. You might need to authenticate that you are indeed who you claim to be, but that is normally trivial (Show government photo id).

This simplifies the process massively.
by m348e912 | 2025-05-03 16:10:06+00:00
Vibe coding is definitely problematic for someone who isn't a strong coder, aka me. Recently for fun, I used ChatGPT to code a python script to scrape another news site and render it in the style of HackerNews.

It took 21 iterations of code updates to get a working version. It isn't bad but doesn't pull the latest articles (I don't know why) and hell if I could debug it.
by sensanaty | 2025-05-03 16:10:27+00:00
The very first word you see on the .NET foundation page [1] is "INDEPENDENT" in giant lettering. Also, at least on my screen, funnily enough Jetbrains has a bigger logo at the bottom than MS does, so surely the docs should also talk about Rider & Junie or whatever their AI stuff is called, right?

To be clear, I'm being facetious, I think everyone is aware MS has their slimy tentacles very deeply dug into .NET and that's the whole issue.

[1] https://dotnetfoundation.org/
Ask HN: Building AI Manager – 1 person $bn company manager/vibe management
by OZC | 2025-05-03 16:11:04+00:00
I'm building AI Manager, a "vibe management" tool for the emerging class of one-person billion-dollar companies.

The idea is to give solo builders and founders an AI manager that helps track goals, manage context, make decisions, and keep momentum—not just with tasks, but with vibes. Think of it as your co-pilot for product strategy, energy, and execution.

It's more than a to-do list or chatbot—it asks questions, pushes back, and even helps you zoom out when you're stuck in the weeds.

Curious if anyone else is thinking about tools like this, or building similar AI-first support systems.

Happy to show a demo if you're interested—reply here or reach out.