418 karma · joined Apr 28, 2017 (9y ago) · 112 submissions
comment 3mo ago · link · parent
It takes inspiration from Python, Rust, Go, and functional programming. It's oriented toward readability, safety, and speed.
I'm finishing up the journey of completely self-hosting. Then I'll be tidying it up for an initial release.
comment 4mo ago · link · parent
Taking a bit of a detour with self-hosting the language, now that the syntactic surface, standard library, and initial dependency strategy are on a decent footing.
With any luck, by the end of the week, I'll start prepping for a 0.0.1 release.
comment 5mo ago · link · parent
There's a lot of other differences -- it's a smaller language surface than Python overall.
comment 5mo ago · link · parent
Of course, blorp also allows local mutation in loops (even in pure functions, so long as the logic is contained to the function), so if there's a specific algorithm you'd rather express in a loop, you can.
comment 5mo ago · link · parent
But there can be many (small) applications where pure doesn't even matter, so I don't really want to force someone to write "impure" for the main function, for example.
comment 5mo ago · link · parent
comment 5mo ago · link · parent
comment 5mo ago · link · parent
What are the over-arching goals of your language?
comment 5mo ago · link · parent
comment 1y ago · link · parent
In general the value prop of koda-validate is that it turns validation into typesafe building blocks, which makes validators very re-usable -- and flexible. Some other notable differences from pydantic are that it doesn't `raise` on validation errors, you don't need a typing plugin, and it's fully asyncio-compatible.
comment 1y ago · link · parent
Focusing on ergonomics improvements. Just released an improvement to the __repr__ for Invalid types.
Potentially working on expanding the ability to generate validators from arbitrary typehints, ie `get_typehint_validator(list[str | int])`. It has good coverage, but I suspect I'm blind to some obvious holes. Would love feedback!
22.
Ask HN: What makes a programming language great for code generation?
3 points · by keithasaurus · 1y ago · 3 comments
comment 1y ago · link · parent
With types, the scope of the variation is clearly stated, and if you want to expand the variation, it should be clear how to do so, depending on the flavor (e.g. union types, sum types, generics, sub types).
comment 1y ago · link · parent
But there are many others. Not sure I understand the point of async rendering, unless you want to mix IO with rendering? Which feels a bit too close to old PHP+html for my blood.
comment 3y ago · link · parent
One potential benefit of mypy is that it comes with mypyc, a compiler that leverages mypy's evaluation of types. Since pyright and mypyc are not exactly equal, it makes sense to use mypy if you want to use mypyc.