Better HN
topnewbestaskshowjobs
Log inSign up

posix_monad

148 karma · joined Jan 16, 2024 (2y ago) · 75 submissions

Submissions

comment 2y ago · link · parent

With mergeMaps, you don't have to write out all of the properties.

comment 2y ago · link · parent

MLs require a lot of ceremony modelling simple record types.

What we want to express here is an object with a map of properties (name to type):

    string Type map
For the OOP minded:

    Map<string, Type>
And also compose those:

    type Foo = { "_foo", int }

    type Bar = { "_bar", string }

    type FooBar = mergeMaps Foo Bar
But at compile-time, of course.

Have any languages achieved this? I know TypeScript can do some of these things, but it's clunky.

comment 2y ago · link · parent

Building a language is too hard.

You need to create:

- Grammar, parser, compiler, interpreter (delete as appropriate)

- Editor plugins for nice syntax highlighting

- Language server

- Packages for common things

- Nice website (or no one will use it)

- etc...

So the pressure is always to shoe-horn a big existing language into you problem. Maybe you can build a nice library if your language has decent syntax (or little to no syntax). If you have an AST representation, you probably dump it to JSON etc.

I am curious if any projects are trying to make this easier.

4.

WebCrawler – search engine operating for 30 years(en.wikipedia.org ↗)

7 points · by posix_monad · 2y ago · discuss

comment 2y ago · link · parent

Does MongoDB have serious market share compared to DynamoDB (and similar clones from Azure, GCP) at this point?

comment 2y ago · link · parent

Yes, this is a reasonable approach, but how are certificates deployed and managed?

How do we deploy a list of certificates that a service should accept?

How do we do certificate rotation and revocation?

7.

Ask HN: How do you approach service-to-service authentication?

1 points · by posix_monad · 2y ago · 4 comments

comment 2y ago · link · parent

https://archive.is/8cEHA

comment 2y ago · link · parent

Vast majority do not have the disposable income to invest in stocks.

comment 2y ago · link · parent

Nah, that was Postgres vector extensions

11.

Economic impacts of mortgage credit expansion policies(sciencedirect.com ↗)

2 points · by posix_monad · 2y ago · discuss

comment 2y ago · link · parent

https://archive.is/yzqkJ

13.

Brown's golden shot was not the miss his critics would have you believe (2015)(thetimes.com ↗)

1 points · by posix_monad · 2y ago · 1 comment

comment 2y ago · link · parent

There is a value in living in a society that is culturally rich, not just GDP rich.

The last era where we had this kind of society, was probably the 70s and we are still recycling the cultural artefacts of that time.

comment 2y ago · link · parent

https://archive.ph/WrZ5L

comment 2y ago · link · parent

That solution doesn't work for Meta. Who on earth would choose to opt-in?

comment 2y ago · link · parent

Copilot (and so on) are simultaneously incredible and not nearly enough.

You cannot ask it to build a complex system and then use the output as-is. It's not enough to replace developer knowledge, but it also inhibits acquiring developer knowledge.

comment 2y ago · link · parent

Not sure what you mean here - Microsoft are actively working on F# and the .NET Spark and Torch bindings.

comment 2y ago · link · parent

https://archive.ph/Uu6YC

20.

UK's Right-Wing Reform Party Floats Overhaul of BOE's QE Program(bloomberg.com ↗)

1 points · by posix_monad · 2y ago · 1 comment

comment 2y ago · link · parent

I don't think the ML community has an appetite for learning a different language.

There are Microsoft-backed F# bindings for Spark and Torch, but no one seems interested. And this is despite a pretty compelling proposition of lightweight syntax, strong typing, script-ability and great performance.

The answer will probably be JavaScript.

Everyone already knows the language - all that's missing is operator overloading and a few key bindings.

comment 2y ago · link · parent

Python's dominance is holding us back. We need a stack with a more principled approach to environments and native dependencies.

23.

Static single assignment for functional programmers (2011)(wingolog.org ↗)

8 points · by posix_monad · 2y ago · 2 comments

comment 2y ago · link · parent

Rough news for the LSE, which was already trying to make that play.

comment 2y ago · link · parent

Blank Street is eating their lunch

comment 2y ago · link · parent

> build a extremely minimal kernel (i.e. ditch Linux entirely) and link your application against necessary bits of code

It would be nice, but this is really hard to do when modern software has so many layers of crud. Good luck getting say, a PyTorch app, to work doing this without some serious time investment.

comment 2y ago · link · parent

You can publish across platforms with modern .NET

comment 2y ago · link · parent

Cross compilation story in C# is very good actually.

comment 2y ago · link · parent

> Tools like this do the deployment, they aren't generally deployed themselves.

It will have to be executed on many different developer machines (or even your own machine several years in the future) so a simple, reproducible build process, including fetching pip dependencies, is critical.

123