Better HN
topnewbestaskshowjobs
Log inSign up

derw-lang

6 karma · joined Jan 22, 2022 (4y ago) · 18 submissions

Submissions

comment 4y ago · link · parent

String untagged unions (value types) are currently supported by Derw, e.g type Fish = "Salmon" | "Trout". I will most likely add some way of handling types composed of other types, too.

2.

The case for building something wonderful alone(derw.substack.com ↗)

2 points · by derw-lang · 4y ago · discuss

3.

Derw: An Elm-like language with hydration, do-notation, and tests, May 2022(derw.substack.com ↗)

1 points · by derw-lang · 4y ago · discuss

comment 4y ago · link · parent

As part of Derw, I've added an English output generator[0], with the idea that the output could be used to improve error messages or help developers understand unfamiliar syntax, particularly for those more used to Javascript rather than ML. Similar concept to cdecl

0 - https://mobile.twitter.com/derwlang/status/15057099820246712...

comment 4y ago · link · parent

My main side-project site right now is Derw, a programming language like Elm but with Typescript interop. The homepage is https://derw-lang.github.io/, and there's a PR open to improve it but I'm not sure yet how far I want to stray from minimalism.

6.

Finding time to work on a side project(derw.substack.com ↗)

1 points · by derw-lang · 4y ago · discuss

7.

On working through difficult problems(derw.substack.com ↗)

2 points · by derw-lang · 4y ago · discuss

8.

Why Derw: an Elm-like language that compiles to TypeScript?(derw.substack.com ↗)

1 points · by derw-lang · 4y ago · discuss

9.

A Love of Languages(derw.substack.com ↗)

6 points · by derw-lang · 4y ago · discuss

comment 4y ago · link · parent

Roughly, Reason is OCaml, Derw is more like Haskell/Elm. Derw wears the Elm influence proudly, with similar design decisions and goals, and similar standards for tooling. Reason is maybe more appealing to people from JS or OCaml backgrounds, with support for things like JSX. Derw is like Elm: functions and values.

comment 4y ago · link · parent

Derw[0], an ML-family language that targets TypeScript or JavaScript. The aim is to have a language similar to Elm, but can do interop with TS a lot easier. I'm mostly excited that this will make my TypeScript projects a lot more enjoyable for me to work with.

[0] - https://derw-lang.github.io/

Github - https://github.com/eeue56/derw

Announcement post - https://derw.substack.com/p/why-derw-an-elm-like-language-th...

comment 4y ago · link · parent

Nice, simple and easy to use! I implemented a copy in Derw[0] here[1], with a link back to yours, of course.

[0] - https://derw-lang.github.io/

[1] - https://derw-lang.github.io/examples/jeopardy/