Hacker Newsnew | past | comments | ask | show | jobs | submit | vmfunction's commentslogin


> I do wish that Typescript would offer some tools to make it more ergonomic to write performant unifying code (I kind of despise conditional types

Maybe give https://gcanti.github.io/fp-ts/ a go?


I use fp.ts quite a lot! I think it's _extremely unfortunate_ that the API docs don't include top-level examples for basically anything, though. So when people hit a problem that fp-ts or io-ts can solve, I have to basically write a disclaimer about the slight impenetrability before suggesting it.

I really think that TS itself should offer syntax more or less matching what that lib does at the type level, but this is a bit of a maximalist request.


effect-ts is nowadays the de facto successor of fp-ts and has better docs.

As for fp-ts all APIs have examples/tests that show their usage.


Thanks for the effect-ts suggestion! Looks pretty compelling...


IMO Zod is much easier to understand than io-ts, the counterpart to fp-ts: https://zod.dev/


It’s been a while since I looked deeply at them, but IIRC the primary difference is that io-ts returns Result types. It’s trivial to wrap that to produce a value or throw if that feels more comfortable.

It’s possible there are other aspects of the APIs that differ in meaningful ways, but last I checked virtually all of the libraries with similar functionality (and there are many) have roughly the same concepts until your schemas themselves get deeply complex.


Zod can also return result types: T.safeParse(x)

It’s not a very full featured Result, but you can wrap it with your own type.


On mobile world, that would be cordova or capcitor or phonegap.


Isn't it possible to used JIT for JSC in WebView?


WKWebView and SafariViewController do, but they run the browser engine and JIT in another process so that the app still doesn’t have the ability to execute unsigned pages.


Interesting! How are unsigned pages determined this case?


App store is NOT needed! It is another AOL type of walled garden. There is no reason why PWA can't replace most apps.


There’s even less of a reason to need to ask apple for permission to make my own custom app.


The analogy between AI and Adult Diapers is not too far off.


>For years Google lied about consent users supposedly gave for some types of location tracking, but after they got found out (and the authorities got involved) they changed their tune.

And I will never trust google again after that with my person important data! No matter what day do now!


> so even if they nominally represent the founder they’re not going to do anything that would jeopardize their prospects for future business with the private equity firm.

Ouch! Seems like there should be some 'unionised' legal representation for founders. Seems like representation for founder and VC to be a conflict in interests.

This seems to be much heavily emphasised on capital vs talent.


> Seems like there should be some 'unionised' legal representation for founders

Just pick a lawyer who works for founders. (Any competent firm will also find this in conflicts.)


You’re the only one who reliably can work in your best interest, and even then it’s hit and miss sometimes.

Always ask questions, figure out others actual and stated interests, and look for incongruencies.

And look to be as educated as possible.

Easy to say, hard to do. There is no ‘sure thing’ in this world.


How is the state of IndexedDB on Safari IO now days? Last heard that it is pretty bad with unexpected wip if it is not used for a while.


Why do companies use system that rely on other system (like analytics). The platform should just run by it self and gracefully degrade if other external system doesn't work. Like a banner on top "Crowdstrike" out service on top or console log.


Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: