skysight-inc/HackerNews huggingface dataset:
Show HN: Diagify – CLI to convert natural language into technical diagrams
Hello HN,

I've created Diagify, a CLI for converting natural language to technical diagrams. There are a bunch of diagram-as-code tools out there and I had the idea that it should be possible to use LLMs to generate the diagram code based on a natural language description, execute it, and return the generated image. This is essentially what Diagify does.

More specifically, Diagify generates code for the Mingrammer library which is specifically for technical diagrams. It also uses the OpenAI API to generate the Mingrammer code from the natural language description.

The workflow is first OpenAI generates the Mingrammer python code based on the description, then it does some basic error checking. It was found that often the generated Mingrammer code had incorrect imports so this is checked. If incorrect imports are found, OpenAI is called again for correction with the incorrect imports identified and also some suggested imports to replace them with. Then the Mingrammer code is executed. If it is executed successfully the corresponding image is generated. If there is a runtime error then OpenAI is called again with the identified error in an effort to correct it. It's become somewhat reliable at this point.

My reasons for creating Diagify are two-fold 1) to see if it even would work and 2) creating technical diagrams by hand or even using diagram-as-code tools can be tedious so using a simple natural language interface could be helpful.
Evaluating Emerging AI/ML Accelerators: IPU, RDU and Nvidia/AMD GPUs
DisplayPort->HDMI was the only way I could get my PC to control the TV it was attached to over CEC, since (apparently) the CEC pins aren't enabled on most consumer GPUs, but the DisplayPort aux pin can be used as an alternative.

So the linux DisplayPort driver at least supports the feature, whether or not it's fully standardized/required.
What I want is a display standard that allows (or legally forces) a monitor to detect the signal within 100ms.

Waiting for a monitor for 5 seconds (often without knowing what it is doing or on which input it is looking) is such a bad UX.
I've really never understood this objection. Users that need multiple actual versions of Python (as opposed to separate venvs) are usually more technically sophisticated; Python for Windows comes as an installer and Linux is generally dependent on it already (and a usable dev environment is only `python -m venv` away). But more to the point, writing an application in another language - or at all - isn't relevant to solving that problem. There's no reason you couldn't have a downloadable freestanding Pip package that comes with its own Python - just have the user unpack a zip archive or whatever, and have all the needed files in the right place. That just doesn't happen because it seems backwards.

There's been an initiative to standardize portable Python binaries that would facilitate that sort of approach (and make them installable from PyPI), called PyBI (https://peps.python.org/pep-0711/). Yes, you still have to do that installation. But at least in principle, you don't need an installer for it; you could download from the PyPI website and unzip the wheel.
What issues did you have with FTS5 that made you switch to Tantivy? Does using Tantivy mean you have to load the entire Sqlite db into memory?

I ask because in my own project I have my own search query grammar [0] written in Lezer that more or less "transpiles" [1] to SQL+FTS5 that's been uh, tedious to build.

[0] https://github.com/AlexErrant/Pentive/blob/main/shared-dom/src/language/query.grammar
[1] https://github.com/AlexErrant/Pentive/blob/main/shared-dom/src/language/query2sql.ts
This might also be burnout, not necessarily midlife crisis.
It is kind of, isn't it? One thing you can do is try and support businesses that are in it for the long haul, although that is hard to discern in the moment.
Well, are you?
I uploaded an image of a 6-panel hand-drawn cartoon I created and it very accurately described the scene and overall theme of the joke, even pointing out that it was hand-drawn, used no colors, and that the text in the speech bubbles was very legible. I did not expect that level of detail.
The service is end to end encrypted with local AI for indexing.

I tried it a few months ago however and the upload/encryption was so slow from their desktop app it would have taken weeks to migrate my photos to the service.
Where is the difference in trust level between google and openai coming from?
Robots are hardware, AI is software, so in principle you can put any AI in charge of any robot.

A quick google got me this list of current uses, I'd suggest you can skim the first part as it will be clear when you get to the actual examples: https://builtin.com/robotics/humanoid-robots

(But disregard Atlas, IIRC Boston Dynamics don't sell that, only the robot dogs? But you didn't actually ask for a humanoid, so you can have the dogs as a replacement).

I've seen demos from Agility before this: https://agilityrobotics.com/

Likewise Figure being tested in BMW: https://www.figure.ai/

And are you really sure about what it means to be an IQ 80 human? Because that's where people start having problems reading plans, safety instructions, timesheets etc., or following multi-step instructions, handling unexpected situations.
Sounds like a hack to me. Does the USB-C protocol allow the use of another protocol over the same connector?
Terrible search without AI is a bit of a stretch. Also Google does not have a monopoly on object/face recognition in photos. There are self-hosted solutions that readily provide you with that without feeding a faceless AI with your photos while boiling the ocean.
Aux is its own channel. And one I seriously wish for better used! It seems to only be USB2 capable but even that is rarely implemented!! So sad.

But one of the neat things about DisplayPort is that it's a a packetized protocol, that many streams can go over. Which is why there can be multiple daisy chained monitors!

So hypothetically the computer could stream out all manners of high bandwidth data. It's been neat to see a USB4 adaption, where DisplayPort tunnels USB4 for data coming from the computer, and the aux channel is used as the 480mbit return channel.

I don't really have any knowledge of why the aux channel is regarded as not capable of multi gbit/s, and maybe that's not even true.

Given what a terrible inflexible trash porting of the past HDMI is though, sure makes me wish folks would do more with all the possibilities DisplayPort has. And it makes me really really wish consumer electronics would please please please offer some DisplayPort. Given that usb-c mandates DisplayPort as a required alternate mode video system, maybe possibly hopefully this will be some leverage that starts prying these HDMI rent seeker's stranglehold open.
Linux 6.6.66 LTS Kernel Released with New Hardware Support and Many Fixes
The Gilded Age of Medicine Is Here
Are you suggesting that all photo printing labs secretly keep copies of their clients photos (including professional photographers selling prints worth thousands) and reselling them as their own? I don’t think that any website terms are going to make that okay?

I understand this in how Instagram and Facebook terms read, that they can sublicense your images, and I’m not a lawyer, but sublicense doesn’t mean resell as their own? It’s still your copyright.
To young people: the truth is somewhere in the middle. Don't spend your youth chasing money, but don't ignore money either, because while money doesn't buy happiness, it could make a lot of miserable things much less miserable.

Also, in a typical old-boomer-says-do-as-what-I-say-not-as-what-I-do fashion... do exercise regularly. One day you will wake up and find out your right arm will not go up higher than Heil Hitler position. And it takes a year to get it back to somewhat normal.
Yeah, when I made the comment, the post was up for over 12 hours.
As wise Red from the Shawshank Redemption said:

https://tenor.com/4bSA.gif

> This complaint makes little sense because it mixes and matches things from different categories.

It makes all the sense, because I don’t want or have to give a shit about all of this crap.

> `pyproject.toml` isn't even a tool, but a config file

And how many of current tools understand it? Can I make pip save dependencies in it out of the box? No? Then it stays in bullshit list. Arguably it became much better these days, but I remember constant friction when pyproject.toml was just introduced.

> Poetry and Rye are specifically trying to do the same thing uv is - in fact, Rye is uv's predecessor. Pyenv is for making separate installations of Python - it works alongside venvs, not as an alternative. Pip is just an installer; it's not meant to be compared to full project workflow tools or even to just "package managers".
Expecting one tool to work for everyone is a mistake because of the sheer variety of use cases out there. At the very least, people who only want to install Python applications and libraries are very different from those who seek to distribute their own work. (People in the first group might not even write Python code!)

Mistake is having thousands of disjoint tools that are stitched together with sticks and shit. I’m glad most modern programming communities got fed up with this crap and lean towards new generation of tooling that can do everything.

I’m absolutely fed up and loathe stitching together billions of half working shite to get semi decent working environment.

Environment management, testing, formatting, libraries and building in one tool should be a minimum requirement.
No and no. I just enjoy Swift and SwiftUI.
Danke. I wonder about making one's business dependent on such services however.
This is vs them talk is honestly pointless. You don't speak for anyone but yourself.
Only a brief nod to Girmay's breakout performance at the Tour de France.

He must've barely beat out Hawk Tuah Girl.

Cheers
It is a hardware feature, but it does basically nothing without its software in flash....

The only code that is inside the silicon is a 128K bootrom that literally just sets thing up for the real firmware to run.
Being the rare American Android person, I use it, Signal and Telegram to communicate with Iphone people since IMessage SMS integration is badly crippled.
Hi, co-founder here (OP went to sleep lol). We are looking for companies with 50-100 devs where we can deploy our product and develop the product based on their feedback.
Had not heard of them, had to google it:

https://en.m.wikipedia.org/wiki/Leroy_Merlin
Charge here is just one thing that has to be conserved. Baryon number is a property of quarks and must also be conserved, and this prevents a neutron turning into an anti neutron as that would have opposite baryon number.

There are others such as isospin, lepton number…

These types of conservation laws are what limits the possible particle interactions.
Well, I'm glad that BigContent hasn't taken control of our CPUs yet.
Classic bayesian error. The population in question here isn’t the globe, but rather people who have already died from caffeine related causes. Naturally the rate of increased caffeine sensitivity amongst those folks will be different from the population at large.
El Salvador has been mismanaged for centuries. The only good example it provides is what not to do.
It is possible to use antimatter directly but it sounds like that only uses the pions with magnetic nozzle.

The main use of antimatter is to heat reaction mass. The advantage over nuclear rocket is that the "temperature" of antimatter is really high so the specific impulse can also be high. One advantage is that can change the amount of reaction mass to get more thrust or better efficiency.
I do think it would be nice to let me back up to even a janky keyboard input?

not sure if anyone has good mapping for that.
I would add as an indirect reply to the poster you’re replying to, that most people know about VPNs because of exactly the point you make. Loads of VPN businesses are out there and they’re advertising in the mainstream about how they protect you from hackers, your ISP, ambiguous WiFi shenanigans, etc. Those businesses have made VPNs fairly common and point-and-click easy to use. Even where they use the same protocols (IPsec, OpenVPN, WireGuard, et al) that you’d use as a technical person, they’ve wrapped them in mom-and-pop GUIs to make them accessible to the masses.
As far as I understand it, the goal is to frontrun other counties from doing the same exact thing.
It wasn't even enforced though. Charged only after a year, but you could reinstall and get another year free.
> It looks like your account is using HN primarily for political battle.

No I'm not. There's no way to interpret that statement as true unless you stretch multiple terms past the point of reason.

I mention the genocide the US is funding, arming, and providing diplomatic cover for about once or twice a month, among many other comments, most non-political. If you feel the need to ban my account for that, go ahead dang.

I'll say it again, if that helps: Vouaobrasil speaks the truth here. Their inspiration is all about spying to enforce the destructive nature of western civilization and global capitalism, and the assertion they 'use nature for inspiration' is an insult to all that is good: [0], [1].

It's not 'starting a flame war' or 'damaging the intellectual garden' to say so, nor is it starting a 'political battle'. It's directly related to the central 'point' of this post. The US military is a bigger polluter than 140 countries combined [2].

This green-washing puff-piece is a twisted insult to the intellectual curiosity you claim to stand in defense of (and are right now attempting to use to subjugate). If people can't rightly call it out as such, any claim to HN being an 'intellectual garden' is perverted.

0 - https://en.wikipedia.org/wiki/Holocene_extinction

1 - https://en.wikipedia.org/wiki/United_States_involvement_in_r...

2 - https://theconversation.com/us-military-is-a-bigger-polluter...
Entropy isn't subjective, but it is relative to what you can measure about a given system, or what measurements you are analyzing a system with respect to. In quantum mechanics there are degenerate ground states, and in classical mechanics there are cases where the individual objects (such as stars) are visible but averaged over. You should take a look at the Gibbs paradox.
> because last I checked it only works for a single GTFS feed.

(minor) fyi: It works with multiple, comma separated GTFS files.
I was surprised when I returned to the US that not everybody uses WhatsApp. I was also using WeChat a lot in Asia. What has become very powerful in my opinion, and it used a lot by larger groups is Telegram.
I don't buy it. Google just followed iMessage, only two years later, I don't see why carriers would suddenly have an issue with that. Plus Hangouts has never been a mainstream mobile messaging app, and I was a big user at the time. I worked at Samsung then and I'd bet most Android users never launched Hangouts nor even noticed it was preinstalled.

Google killed the integration in 2017 when they started betting on RCS and Google Messages more seriously.
Past performance is no guarantee of future results. Today, Nayib Bukele is clearly changing things up.
Tell me I have autism without....
Downtown San Francisco experiences first tornado warning in recorded history
I used to think like you do... up to around 2015 or so. Then I had to answer the question "how can this possibly be happening?" over a hundred times since. I now ask, "why wouldn't it be happening?" Uncle Sam has the deepest pockets in history.

Every piece of commercial software is indeed hoarding anything it can get on you. Your employer is probably selling your pay stubs. The world has changed.

Anyway John Oliver had a funny piece on data brokers if you'd like a ten-minute primer. United States of Secrets by PBS Frontline is a two-hour extravaganza.
That sucks.

I hope it brings you peace to know just how much all of the hospice workers I know care. Everything they do is about comfort and dignity, and there are chaplains, and medical workers that can help you with these concerns.
This is absolutely not true and would immediately trigger lawsuits across the globe. WhatsApp and Meta data separation is extremely strict. Source: I work at WhatsApp and also https://faq.whatsapp.com/1303762270462331

> We need your contacts to provide the service, but don’t share your contacts with Meta.
How do you ask someone to give you a Unicode character from the private use area?
Maybe with:
1) Unicode escapes in strings.
2) Indentation support for multiline string literals, like in Rust, but even better.
3) Reading with "concrete syntax tree" (make the order of map elements, the comments, whitespaces, etc representable, so that one could write an EDN file with the same formatting as it was read, e.g. after patching it). Not sure if the spec changes are needed / will be helpful for that or better to just implement it in specific parsers.
?

Economics research is a series of cults who all predict different outcomes for the same series of inputs based on how the original founder of the cult, I mean school, felt about the king and his ability to tax the wealthy several centuries ago.

There are several trillion social sciences more rigorous than economics.

As far as I can tell economic researchers actively discourage experimentation because the results of an actual well-run valid experiment would ruin everyone's career.
Totally agree.

At the same time, we have a lot to go. "Tooth infected? Just drill it out!" which is kinda like "Hand infected? Just chop it off!"
> consider google’s vision API. No way I’d ever trust OpenAI’s apis for this.

lol?
One company has the capacity to maintain HIPAA compliance and the other is best known for vacuuming up the entire web and users prompts. For something as sensitive as family photos, I know which company/product I'd prefer for this potential project.
I'm in a place where WhatsApp is everywhere - "call/text me" is basically assumed to mean call or send me a message on WhatsApp.

But, somehow I don't view it as a "cultural force" the way other social media sites are.

I guess because it's just people talking/chatting/sending-pics with their contacts, so there's no algorithm driving/changing peoples' behavior. It's like the cultural force of everyone having cell phones with free (and improved) SMS (which of course is a big change in society).

I've also never used WA to meet people, engage with strangers, or try to impress strangers. It's just people I've met in real life.

Although, a lot of this article is about the broadcast and "channels" features that I don't really use.
Probably I am the wrong audience but does this privacy scaremongering style actually work on anyone?
No way. I know a local photographer who has his own printer and store and makes prints and would never sell my prints away.
It's mostly terminology and conventions. On the standard system setup, the linux kernel running in a special processor mode does these things. Linux userspace asks the kernel to do stuff using syscall and memory which both kernel and userspace can access. E.g. the io_uring register followed by writing packets into the memory.

What the GPU has is read/write access to memory that the CPU can also access. And network peripherals etc. You can do things like alternately compare-and-swap on the same page from x64 threads and amdgpu kernels and it works, possibly not quickly on some systems. That's also all that the x64 CPU threads have though, modulo the magic syscall instruction to ask the kernel to do stuff.

People sometimes get quite cross at my claim that the GPU can do fprintf. Cos actually all it can do is write numbers into shared memory or raise interrupts such that the effect of fprintf is observed. But that's also all the userspace x64 threads do, and this is all libc anyway, so I don't see what people are so cross about. You're writing C, you call `fprintf(stderr, "Got to L42\n");` or whatever, and you see the message on the console.

If fprintf compiles into a load of varargs mangling with a fwrite underneath, and the varargs stuff runs on the GPU silicon and the fwrite goes through a staging buffer before some kernel thread deals with it, that seems fine.

I'm pretty sure you could write to an nvme drive directly from the gpu, no talking to the host kernel at all, at which point you've arguably implemented (part of?) a driver for it. You can definitely write to network cards from them, without using any of this machinery.
For kids with rare genetic disorders, customized CRISPR treatments offer hope
No. There are many ideas that go into the Paleo diets which have many variations from vegan to pure carnivore, but mostly it is a reaction to some modern engineered foods not being ideal for human digestion. Marshmallows fried in Crisco is not a traditional food and eating such things has unknown effects. The we don't know exactly what people ate or how they cooked it argument has at best meager relevance. We actually have quite a bit of information about that as well as what foods have been recently engineered using modern technology.
Is it incorrect?
I brought every bit as much data to the conversation as you did.
Apple Photos in iCloud can also be E2E encrypted (though not by default: you have to explicitly enable that), are indexed locally, and Apple's pricing for storage is about half of this service.
Rabbit hole: designing flight controls that fit everyone turned out to fit no one
I've written code on a phone before and it's not nearly as uncomfortable as it used to be. Especially with the cloud.
But C did not disappear, now you need C and Rust.

If Python was based on Rust, I guess I would not mind, but it is not. Also C is also supported everywhere! And personally I don't see why Rust would be more easy to understand than C. C is really straightforward compared to Rust.

All of that being said, for something as basic and important as a package manager I would except that it is implemented in pure Python so it might easily be hack, modified or fixed without requiring any compilation...
Like most of pip and setup tools were.

Just wait for the moment that you can't update some libraries in your code because UV will not work without being updated, but an updated version binary is not available or you need to fix/backport something, so you need to build it. But unfortunately rust devs will not care supported older systems/os, so you are fucked. And you need to upgrade your whole system just to be able to update a simple application library.
> It's either going to 0 (highly unlikely)

There are multiple scenarios where Bitcoin becomes valueless, especially if people continue building on L2 chains instead of working systems.

1. Difficulty spiral where miners protest due to [Taiwan crisis/compute sanctions/Moore's Law dying, etc.] that causes miners to protest resulting in ballistic TX fees and latency.

2. Complexity spiral where the ledger becomes too large even if compute keeps up, necessitating special aid to keep the ledger moving even when it's unprofitable and excessively wasteful to do so.

3. Proof of work is imperfect and miners are already incentivized to conglomerate around cheap energy. If an adversary like China figured out the 51% attack, nobody could save their investments from going to zero.

4. Fraud and crime already jeopardize Bitcoin's legitimate applications, and if it continues the Justice system will inevitably be forced to regulate it or even outright ban it to protect consumers.

Bitcoin relies on a variety of cooperating elements on the social layer that have changed significantly since it's creation. People that earnestly believe society will change to suit Bitcoin rather than the other way around need to actually read the Bitcoin whitepaper and come to terms with how it failed today. It's going to zero, and it's been heading there since ~2013 if you're being honest with yourself.
March 2024. Paper is referencing quite outdated hardware in a very fast moving space.