HN user

jeswin

9,918 karma

Available for consulting (Architecture, Training, .Net/C#/F#, NodeJS/React/TypeScript). Email me at: jeswinpk@agilehead.com

Projects I maintain:

https://tsonic.org/ - TypeScript to native code compiler.

https://webjsx.org - A library for creating Web Components with JSX

https://tinqerjs.org - Type-safe, composable SQL query builder for TypeScript

https://bashojs.org - Lazy JavaScript Evaluator for building Shell pipelines.

github: https://github.com/jeswin

Posts83
Comments1,647
View on HN
chefkiss.dev 8d ago

Chefkiss Inferno: Open-Source Apple Silicon Emulator

jeswin
1pts1
github.com 5mo ago

Show HN: Write native binary web apps with TypeScript and Express

jeswin
14pts2
tsonic.org 6mo ago

Show HN: The Tsonic Programming Language

jeswin
62pts9
tinqerjs.org 9mo ago

Show HN: TinqerJS– LINQ-inspired QueryBuilder for TypeScript + Postgres/SQLite

jeswin
5pts0
github.com 9mo ago

Show HN: LINQ-to-SQL but for TypeScript – turn type-safe lambdas into SQL

jeswin
4pts1
github.com 1y ago

Show HN: Codebox – Let AI agents run project commands in Docker containers

jeswin
2pts1
github.com 1y ago

Show HN: Bloom – Build Web Components with JSX and Async Generators

jeswin
2pts0
webjsx.org 1y ago

Show HN: Bloom – Building Web Components with Asynchronous Generators

jeswin
2pts0
github.com 1y ago

Show HN: A browser extension for Claude/ChatGPT to edit your projects locally

jeswin
4pts2
webjsx.org 1y ago

Show HN: WebJSX – A tiny Web Components and JSX library

jeswin
26pts13
news.ycombinator.com 2y ago

Request HN: Please add a post-anonymously checkbox

jeswin
5pts0
releases.ubuntu.com 2y ago

Ubuntu 24.04 Noble Numbat

jeswin
180pts179
github.com 2y ago

Show HN: CodeSpin - Code generation framework and tools using OpenAI APIs

jeswin
7pts3
news.ycombinator.com 2y ago

Tell HN: Please stop sending AI-generated job applications (whoishiring threads)

jeswin
174pts188
github.com 3y ago

Show HN: Tankman – An Open Source User Management and Authorization MicroService

jeswin
7pts6
tankman.dev 3y ago

Show HN: Tankman – A Open Source service for User Management and Authorization

jeswin
1pts0
news.ycombinator.com 3y ago

Ask HN: Which is the best Linux distro for kids under 10?

jeswin
4pts7
twitter.com 3y ago

FlightRadar24 crashes due to surge in users tracking SPAR19

jeswin
200pts223
github.com 3y ago

Show HN: Mimic Ubuntu keyboard shortcuts on macOS

jeswin
2pts1
gadgets360.com 4y ago

India to introduce Right to Repair framework

jeswin
2pts0
www.wsj.com 4y ago

Biden Says U.S. Would Intervene Militarily If China Invaded Taiwan

jeswin
7pts3
www.nytimes.com 4y ago

Singapore about to Execute Man with Mental Disability

jeswin
2pts4
www.dpreview.com 4y ago

Sony adds a 1“ stacked CMOS sensor to Xperia Pro-I

jeswin
2pts0
www.scmp.com 4y ago

China’s top universities told to stop slacking off on Communist Party ideology

jeswin
7pts0
sports.yahoo.com 5y ago

Spanish politician suspended by Twitter for saying 'a man cannot get pregnant'

jeswin
43pts19
www.buzzfeednews.com 5y ago

Renwei Electronics' prisoner surveillance tech wins Amazon Innovation Award

jeswin
4pts0
forgojs.org 5y ago

Show HN: Forgo.js – a 4kb React alternative based on plain JS and DOM APIs

jeswin
110pts119
www.scmp.com 5y ago

Alibaba says Uygur-tracking facial recognition violates company values

jeswin
39pts12
retransmit.io 5y ago

Show HN: Prism - An API Gateway for Node.js Microservices

jeswin
1pts3
news.ycombinator.com 5y ago

Ask HN: How about a “Validate this idea” thread every month?

jeswin
1pts4

All you saw on that page was the revenue?

For a potential customer deciding whether to trust a relatively small app (compared to Google and Apple) with their memories, these are useful numbers. 50% increase in paying customers this year. Nearly half a million registered users, with a 40% growth in the last 6 months. 5% of their users are paying customers. Revenue topping a million. That's stuff I want to know if I'm subscribing and uploading all my pics to their servers. I want to know if they'll be around, and my stuff is safe.

So for folks that don’t know better, this is a very cool thing ente is doing. For folks that run businesses and know better...

Oh please. Perhaps work on not jumping to conclusions too quickly.

TypeScript 7 14 days ago

Thanks. The idea is that many projects (including tsts itself) can be run unmodified on a JS runtime, or as a native binary via NativeAOT/C# or Rust.

TypeScript 7 14 days ago

Congrats on launch. The code is beautiful, and the test suite is quite solid.

Over the past year, I've been working on porting the v7 tsgo compiler back into TypeScript - https://github.com/tsoniclang/tsts

It's fully functional now, but 2x slower than the original tsc and 10x slower than tsgo. But hopefully in a month or so, we'll get to C# and Rust targets and it should be able to compile itself to become nearly as fast as tsgo.

They're everywhere. But if you're short on time, buying the postcard is often easier than getting stamps and dropping it in a postbox.

One petty complaint - generally across the world, stamp design has nosedived. Compared to old postage stamps, they have terrible typography and gaudy colours. I've generally been disappointed when buying stamps to put on postcards. Old stamps were truly works of art.

Thoughts[^0] from Theo, who had early access:

I looked at his YouTube, and found a stream of industry gossip and beginner content like "web dev tutorials". I have nothing against such content and it may be useful and good fun to watch.

But does that say anything about this particular model? People have been using models effectively for web code since Gpt 3.x.

The problem with ORMs is that they look kludgy without language support - which is why Hibernate in Java looks painful, while DotNet's EF looks like magic. I wrote something similar called TinqerJS - https://tinqerjs.org, which is like Entity Framework but for TypeScript.

There's immense value in everything being typed from the API down to the DB queries.

  // EF-inspired type-safe API in TypeScript
  const query = (q) =>
    q
      .from("users")
      .where((u) => u.age >= 18 && u.email.includes("@company.com"))
      .orderBy((u) => u.name)
      .select((u) => ({ id: u.id, name: u.name, email: u.email }));
Of course, ORMs are not for all queries in your project, and may not be a good fit for some projects. That goes without saying. The problem with the article is that it's dismissing ORMs by looking at specific implementations.

I would not trust AI on images. But I once had ChatGPT tell me that an MRI report was very likely to be incorrect based on the text, and offered a different diagnosis. Since it was semi insisting, I visited another doctor who made me do a retest. Long story short, ChatGPT was correct.

Again, this is just one single person's experience. So not worth much.

Om 26 days ago

I was an avid reader during the web 2.0 days. Quite sad that his kind of tech journalism vanished; one could feel the decline of independent blogs month over month, while Facebook and Google were taking over the entirety of the web's traffic control.

But the old internet still exists in pockets. I found this via Om - glass.photo. https://glass.photo/cm/LCGjX2IqUWtK288zq5dSt

Unrelated to the particular code above. There's a difference between writing code about or adjacent to a proven idea vs writing code in uncharted territory. I suspect that is what happened here. It's the same thing with say music and art. A lot of people today can play Chuck Berry.

Stop Using JWTs 1 month ago

Not the same. HttpOnly/Secure cookies were added much later and was not the default. They should have been inaccessible to JS by default from the beginning, and this policy has been a source of countless attacks.

Stop Using JWTs 1 month ago

utility is of a standard that creates affordances for the insecure defaults

You could make the same argument about Cookies.

as opposed to just designing it right from the beginning

And generally, it's quite difficult to design it right from the beginning because one would often start with the wrong assumptions. Most standards evolve, and it should be acceptable.

Lenses are only tested on bodies which are available at the time of manufacture. They might focus hunt on newer bodies, because of tweaks to AF algorithms (for example, the speed at which instructions are transmitted). Sometimes in ways that can potentially cause damage long term.

at this point a lens for a mirrorless camera will have a USB-C port

Ideally, camera bodies should support firmware updates via the body in a non-discriminatory way, but until then I wish manufacturers support firmware updates via USB-C.

Looking at you Samyang Lens Station. I think users have been sufficiently upset, and they're adding USB-C to newer lenses.

I’m always amazed by human’s capacity to devalue conscious in things they don’t fully understand

What?

We devalue things we fully understand too. For example, veal = take a baby cow away from the mother, and fry it into cutlets. Or turn the mother into steak. We are well aware that animals have emotions; happiness, sadness and the full range.

Humans are just inhumane.

strict, deterministic subset of TypeScript

I'll add that page, thanks. Today, almost all of idiomatic TS is supported including most of its utility classes. Dynamic JS-style code is not supported, for example adding a function or a field into an object, prototype-based class modifications etc. I'll compile a list, and include it along with the large docs cleanup planned before v1.

Also, what's an "ambient surface" in this context?

The idea is that when JS gets transpiled into C# (or Rust, upcoming), JS globals and built-ins are invalid. The native "surface" is C#, meaning the string is .Net's string type and the methods that you expect on JS strings would be missing. But when you opt in to a surface, such as the "JS surface", the compiler applies surface defined translations such as substring becoming SubString, either directly or via a companion helper class. This allows you to write against standard JS and Node APIs, instead of relying on the stdlib/builtins of the target framework (currently CLR). And you get the JS "stdlib" - console, JSON, Date, Map, Set etc.

For example, all the projects you see under this use the JS surface: https://github.com/tsoniclang/proof-is-in-the-pudding/tree/m...