frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

AlphaGenome: AI for better understanding the genome

https://deepmind.google/discover/blog/alphagenome-ai-for-better-understanding-the-genome/
284•i_love_limes•7h ago•83 comments

Launch HN: Issen (YC F24) – Personal AI language tutor

201•mariano54•7h ago•177 comments

Memory Safety Is Merely Table Stakes

https://www.usenix.org/publications/loginonline/memory-safety-merely-table-stakes
36•comradelion•2h ago•19 comments

Kea 3.0, our first LTS version

https://www.isc.org/blogs/kea-3-0/
13•conductor•1h ago•6 comments

Starcloud says 1 launch, $8M but ISS tech says 17 launches, $850M+

https://angadh.com/space-data-centers-1
20•angadh•1h ago•23 comments

A Review of Aerospike Nozzles: Current Trends in Aerospace Applications

https://www.mdpi.com/2226-4310/12/6/519
57•PaulHoule•6h ago•24 comments

Matrix v1.15

https://matrix.org/blog/2025/06/26/matrix-v1.15-release/
57•todsacerdoti•1h ago•12 comments

The time is right for a DOM templating API

https://justinfagnani.com/2025/06/26/the-time-is-right-for-a-dom-templating-api/
23•mdhb•2h ago•4 comments

Alternative Layout System

https://alternativelayoutsystem.com/scripts/#same-sizer
9•smartmic•2h ago•2 comments

Introducing Gemma 3n

https://developers.googleblog.com/en/introducing-gemma-3n-developer-guide/
220•bundie•4h ago•96 comments

"Why is the Rust compiler so slow?"

https://sharnoff.io/blog/why-rust-compiler-slow
84•Bogdanp•2h ago•100 comments

SigNoz (YC W21, Open Source Datadog) Is Hiring DevRel Engineers (Remote)(US)

https://www.ycombinator.com/companies/signoz/jobs/cPaxcxt-devrel-engineer-remote-us-time-zones
1•pranay01•3h ago

Snow - Classic Macintosh emulator

https://snowemu.com/
171•ColinWright•12h ago•64 comments

Show HN: I built an AI dataset generator

https://github.com/metabase/dataset-generator
100•matthewhefferon•6h ago•21 comments

Shifts in diatom and dinoflagellate biomass in the North Atlantic over 6 decades

https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0323675
24•PaulHoule•4h ago•1 comments

A new pyramid-like shape always lands the same side up

https://www.quantamagazine.org/a-new-pyramid-like-shape-always-lands-the-same-side-up-20250625/
598•robinhouston•1d ago•146 comments

Robots that learn

https://openai.com/index/robots-that-learn/
25•ulrischa•1h ago•8 comments

Puerto Rico's Solar Microgrids Beat Blackout

https://spectrum.ieee.org/puerto-rico-solar-microgrids
324•ohjeez•22h ago•186 comments

Low Overhead Allocation Sampling in a Garbage Collected Virtual Machine

https://arxiv.org/abs/2506.16883
7•matt_d•3d ago•1 comments

Typr – TUI typing test with a word selection algorithm inspired by keybr

https://github.com/Sakura-sx/typr
26•Sakura-sx•3d ago•4 comments

Show HN: Magnitude – open-source AI browser automation framework

https://github.com/magnitudedev/magnitude
21•anerli•3h ago•8 comments

Lateralized sleeping positions in domestic cats

https://www.cell.com/current-biology/fulltext/S0960-9822(25)00507-X?_returnURL=https%3A%2F%2Flinkinghub.elsevier.com%2Fretrieve%2Fpii%2FS096098222500507X%3Fshowall%3Dtrue
63•EvgeniyZh•3h ago•27 comments

-2000 Lines of code (2004)

https://www.folklore.org/Negative_2000_Lines_Of_Code.html
512•xeonmc•1d ago•222 comments

The Business of Betting on Catastrophe

https://thereader.mitpress.mit.edu/the-business-of-betting-on-catastrophe/
52•anarbadalov•3d ago•23 comments

US economy shrank 0.5% in the first quarter, worse than earlier estimates

https://apnews.com/article/economy-tariffs-trump-gdp-shrink-86d1f15e66c646ac4ce88ffc0a956942
194•Aloisius•2h ago•64 comments

Muvera: Making multi-vector retrieval as fast as single-vector search

https://research.google/blog/muvera-making-multi-vector-retrieval-as-fast-as-single-vector-search/
79•georgehill•11h ago•6 comments

FLUX.1 Kontext [Dev] – Open Weights for Image Editing

https://bfl.ai/announcements/flux-1-kontext-dev
108•minimaxir•6h ago•29 comments

Access BMC UART on Supermicro X11SSH

https://github.com/zarhus/zarhusbmc/discussions/3
50•pietrushnic•7h ago•8 comments

Ambient Garden

https://ambient.garden
269•fipar•3d ago•51 comments

Writing a basic Linux device driver when you know nothing about Linux drivers

https://crescentro.se/posts/writing-drivers/
406•sbt567•4d ago•57 comments
Open in hackernews

Structured Output with LangChain and Llamafile

https://blog.brakmic.com/structured-output-with-langchain-and-llamafile/
39•brakmic•4d ago

Comments

dcreater•8h ago
People still use langchain?
owebmaster•8h ago
No
anshumankmr•7h ago
Its good for quickly developing something but for production, I do not think so.We used it for a RAG application I built last year with a client, ended up removing it piece by piece, and found our app responded faster.

But orgs think its some sort of flagbearer of LLMs.As I am interviewing for other roles now, HRs from other companies still ask for how many years of exp I have with Langchain and Agentic AI.

zingababba•7h ago
What should be used instead?
Hugsun•6h ago
I gave up after it didn't let me see the prompt that went into the LLM, without using their proprietary service. I'd recommend just using the API directly. They're very simple. There might be some simpler wrapper library if you want all the providers and can't be bothered to implement the support for each. Vercel's ai-sdk seems decent for JS.
halyconWays•3h ago
>I gave up after it didn't let me see the prompt that went into the LLM, without using their proprietary service.

Haha, really?

ebonnafoux•6h ago
httpx to make the call yourself, or if you really want a wrapper the openAI python https://github.com/openai/openai-python.
codestank•6h ago
i do because i don't know any better since i'm new to the AI space.
nilamo•5h ago
My experience, as someone who is also new and trying to figure things out, is that langchain works great as long as everything you want to do has an adapter. Try to step off the path, and things get really complex really fast. After hitting that several times, I've found it's easier to just do things directly instead of trying to figure out the langchain way of doing things.

I've found dspy to work closer to how I think, which has made working with pipelines so much easier for me.

screye•3h ago
It is useful if you keep swapping things out. Langchain's wrappers stay stable and up-to-date because of their popularity. In production, it's ideal startups that undergo a lot of flux.

I would suggest against using their orchestration tooling, DSLs or default prompts. Those components are either underbaked or require deep adoption in a way that is harder to strip out later.

We change models, providers and search tooling quite often. Having consistent interfaces helps speed things up and reduce legacy buildup. Their stream callbacks, function calling integration, RAG primitives and logging solutions are nice.

One way of another, it is useful to have a langchain-like solution for these needs. Pydanticai + logfire seems like a better version of what I like about langchain. Haven't tried it, but I bet it's good.

reedlaw•8h ago
The use case in the article is relatively simple. For more complex structures, BAML (https://www.boundaryml.com/) is a better option.
pcwelder•7h ago
```

try:

    answer = chain.invoke(question)

    # print(answer) # raw JSON output

    display_answer(answer)
except Exception as e:

    print(f"An error occurred: {e}")

    chain_no_parser = prompt | llm

    raw_output = chain_no_parser.invoke(question)

    print(f"Raw output:\n\n{raw_output}")
```

Wait, are you calling LLM again if parsing fails just to get what LLM has sent to you already?

The whole thing is not difficult to do if you directly call API without Lang chain, it'd also help you avoid such inefficiency.

moribunda•6h ago
I don't get the langchain hate, but I agree that this "blog post" is bad.

Langchain has a way to return raw output, aside "with structured output": https://python.langchain.com/docs/how_to/structured_output/#...

It's pretty common to use a cheaper model to fix these errors to match the schema if it fails with a tool call.

crystal_revenge•2h ago
> It's pretty common to use a cheaper model to fix these errors to match the schema if it fails with a tool call.

This has not be true for a while.

For open models there's 0 need for these kind of hacks with libraries like Xgrammar and Outlines (and several others) both existing as a solution on their own and being used by a wide range of open source tools to ensure structured generation happens at the logit levels. There's no-need to add multiples to your inference cost, when in some cases (xgrammar) they can reduce inference cost.

For proprietary models more and more providers are using proper structured generation (i.e. constrained decoding) under-the-hood. Most notably OpenAI's current version of structure outputs makes use of logit based methods to guarantee the structure of the output.

Hugsun•6h ago
The version of llama.cpp that Llamafile uses supports structured outputs. Don't waste your time with bloat like langchain.

Think about why langchain has dozens of adapters that are all targeting services that describe themselves as OAI compatible, Llamafile included.

I'd bet you could point some of them at Llamafile and get structured outputs.

Note that they can be made 100% reliable when done properly. They're not done properly in this article.

halyconWays•3h ago
>Don't waste your time with bloat like langchain.

Amen. See also: "Langchain is Pointless" https://news.ycombinator.com/item?id=36645575

kristjansson•5h ago
It's right there. In the screenshot in the blog post. Grammar > 'JSON Schema + Convert'. That's what structured output is.

... it's going to be september forever, isn't it?