News for hackers. Stuff that matters.

emykhailenko

thanks ;)

Show HN: Ts-polyglot – Call C/C++ or Rust functions directly from TypeScript

https://ts-polyglot.dev

Hi HN,Experimenting with new Content Mappers feature in TypeScript 7.1 beta, and come up with one usefull idea:Why don't we try to import C, C++, Rust files directly into TypeScript and call native functions without manually writing all the bindings?Super simple and stupid implementation, but let's see how it goes.Technically, something similar was already possible with Volar.js, but TypeScript...

( Read More... | 2 comments | on HN )
I recently noticed how much code is spent simply producing an enormous amount of Zod schemas and unit tests around them. Yeah, I know someone will say that people don't read code anymore anyway. But I do. I still like code, and I still have doubts about the quality of coding agents, but that's another topic ;)

Long story short, I experimented with the TypeScript compiler and built a small playground showing how I imagine runtime types could work in TypeScript.

https://nola.sh/playground/?example=types

Re:Laya the open source version of Jev on Monday September 21, 2026 @10:14PM (#49796030)
Re:Ask HN: What are you working on? (September 2026) on Thursday September 17, 2026 @11:55AM (#49742650)
Hi all builders,

I've been building Nola for the last 3 months. Even slept a bit sometimes.

Finally released it a week ago and got 4 GitHub stars. Yooohooo

It was worth it. 4 f*king stars.

I'm living proof that sometimes we overcomplicate things. Start smaller, release sooner, and don't try to build everything at once.

But I keep going

This 4-star legend: https://github.com/nola-lang/nola

Show HN: Nola – a TypeScript superset where LLM inference is a language feature

https://nola.sh/

Hi HN, in a world where 100% of code is written by AI (phew, sometimes even 200%), there might still be a small percentage of us who want to write code in a more efficient way, especially when it comes to LLM interaction. I honestly tired converting my existing TS types into JsonSchemas or wrapping a function into tool object with all this bells and whistles around arguments.And I started...

( Read More... | 2 comments | 2 points | on HN )

Show HN: AI Agent and HTTL – Generate an OpenAPI Spec for Any Project

https://httl.dev/vscode

Hi all,There aren’t many real-world examples of how to use an agentic approach with GitHub Copilot, so I wanted to share one!This project shows how HTTL, combined with a GitHub Copilot Agent, can automatically analyze any codebase and generate a complete OpenAPI specification. It’s a lightweight, developer-friendly setup that brings real value to API projects.Would love your feedback or ideas...

( Read More... | no comments | on HN )
Re:Show HN: A Fast HTTP Request CLI Powered by HTTL on Thursday February 27, 2025 @09:38PM (#43201105)
Oh yeah, that’s awesome! Thank you. You guys created a really great tool, it’s so motivating!
Re:Show HN: A Fast HTTP Request CLI Powered by HTTL on Friday February 21, 2025 @01:59PM (#43131469)
Great point! Actually, it's already part of the parser but not fully implemented. However, it's coming very soon!
Re:Show HN: A Fast HTTP Request CLI Powered by HTTL on Thursday February 20, 2025 @02:13PM (#43118819)
Thank you so much :)
Re:Show HN: A Fast HTTP Request CLI Powered by HTTL on Thursday February 20, 2025 @08:49AM (#43114596)
It was funny that when I was in the middle of the project, I discovered Hurl. It was cool, especially since it's written in Rust and uses libcurl under the hood. However, the lack of OpenAPI support and VS Code integration forced me to continue working on HTTL project.
Re:Show HN: A Fast HTTP Request CLI Powered by HTTL on Thursday February 20, 2025 @08:43AM (#43114525)
Yeah, I agree. Bruno is a great tool, but it's missing one key component that I needed (maybe it's just me) – it can't run multiple requests in a chain. Also, constructions like: get { url: .... } feel too verbose to me, I wanted something clearer, like: get /users ;) But in general, thank you guys for your interest, my goal is to gain that 30k+ starts )))
Re:Show HN: A Fast HTTP Request CLI Powered by HTTL on Thursday February 20, 2025 @08:30AM (#43114408)
Thank you all for showing interest in this project. You described exactly what motivated me to create this language – support for OpenAPI specs. I just wanted to have a language where I could import an OpenAPI spec and leverage the intelligence, because, like you, in all my projects the specs were autogenerated.
Re:A New HTTP-Focused Programming Language for Developers on Saturday February 01, 2025 @08:34AM (#42898166)
I'm so glad you liked it! Thank you for the feedback. Yes, I'm working on adding CLI support as well as support for other IDEs. Regarding the query string, you could just use a regular form: `get https://reqres.in/api/users?page=2` or (if you already specified a base url) `get /users?page=2`