0.0.11-0 • Published 5 months ago

derw v0.0.11-0

Weekly downloads
-
License
BSD-3-Clause
Repository
github
Last release
5 months ago

derw

Welcome to Derw! Derw is a type-safe language in the ML family designed to replace or augment your TypeScript and JavaScript code - both on the client and the server. If you've never encountered an ML language before, some of the core principles - which Derw follows - is a clean and concise syntax, paired with a powerful type system. Here's some real world Derw code:

generateTypeAlias: TypeAlias -> string
generateTypeAlias syntax =
    let
        properties: string
        properties =
            List.map generateProperty syntax.properties
                |> (\y -> y.join ",\n    ")

        typeDef: string
        typeDef =
            generateType syntax.type
    in
        if syntax.properties.length == 0 then
            `type alias ${typeDef} = {\n}`
        else
            `type alias ${typeDef} = {\n    ${properties}\n}`

Why might you use Derw?

Derw is a language for those searching for a better syntax for writing type-heavy code. It is a general purpose language, for both the server and the client, built on top of the JavaScript platform. It has interop with Javascript and TypeScript built in - so that you can use existing code and libraries with minimal effort. Derw targets multiple languages - TypeScript, JavaScript, Elm, English and Derw itself. Derw's output generation is documented in the Gitbook, so it's easy to create code to interface between Derw and TypeScript.

If you want to write a website, both backend and frontend, Derw is a perfect choice for you.

Batteries built-in

  • A testing framework (all of Derw's compiler tests use this library!)
  • Performant web framework with server side rendering and hydration
  • Bundling built into the CLI
  • Write better code by leveraging a type system that guides your code.
  • Integrate with your existing code bases through interop with JavaScript and TypeScript.

Getting Started

Head over to the Gitbook.

Staying up to date

Homepage: https://www.derw-lang.com/

Blog: http://derw.substack.com/

Follow Derw on Twitter: https://twitter.com/derwlang

Name

derw (/ˈdeːruː/, Welsh “oak”) is one of the native trees in Wales, famous for long life, tall stature, and hard, good quality wood. An English speaker might pronounce it as “deh-ru”.

0.0.11-0

5 months ago

0.0.9-38

1 year ago

0.0.9-37

1 year ago

0.0.10

1 year ago

0.0.9

1 year ago

0.0.9-36

1 year ago

0.0.9-35

1 year ago

0.0.9-34

1 year ago

0.0.9-27

1 year ago

0.0.9-26

1 year ago

0.0.9-29

1 year ago

0.0.9-28

1 year ago

0.0.9-22

1 year ago

0.0.9-25

1 year ago

0.0.9-24

1 year ago

0.0.9-33

1 year ago

0.0.9-30

1 year ago

0.0.9-32

1 year ago

0.0.9-31

1 year ago

0.0.9-21

1 year ago

0.0.9-20

1 year ago

0.0.9-19

1 year ago

0.0.9-18

2 years ago

0.0.9-17

2 years ago

0.0.7-0

2 years ago

0.0.9-9

2 years ago

0.0.9-8

2 years ago

0.0.9-3

2 years ago

0.0.9-2

2 years ago

0.0.9-1

2 years ago

0.0.9-0

2 years ago

0.0.9-7

2 years ago

0.0.9-6

2 years ago

0.0.9-5

2 years ago

0.0.9-4

2 years ago

0.0.9-16

2 years ago

0.0.9-15

2 years ago

0.0.9-12

2 years ago

0.0.9-11

2 years ago

0.0.9-14

2 years ago

0.0.9-13

2 years ago

0.0.9-10

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.6-0

2 years ago

0.0.3-30

2 years ago

0.0.3-31

2 years ago

0.0.3-32

2 years ago

0.0.3

2 years ago

0.0.5

2 years ago

0.0.3-28

2 years ago

0.0.4

2 years ago

0.0.3-29

2 years ago

0.0.3-26

2 years ago

0.0.3-20

2 years ago

0.0.3-21

2 years ago

0.0.3-22

2 years ago

0.0.3-23

2 years ago

0.0.3-24

2 years ago

0.0.3-25

2 years ago

0.0.3-17

2 years ago

0.0.3-18

2 years ago

0.0.3-19

2 years ago

0.0.3-16

2 years ago

0.0.3-15

2 years ago

0.0.3-14

2 years ago

0.0.3-13

2 years ago

0.0.3-12

2 years ago

0.0.3-11

2 years ago

0.0.3-10

2 years ago

0.0.3-9

2 years ago

0.0.3-8

2 years ago