Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Excellent language #1

Closed
gavlooth opened this issue Mar 18, 2018 · 6 comments
Closed

Excellent language #1

gavlooth opened this issue Mar 18, 2018 · 6 comments

Comments

@gavlooth
Copy link

gavlooth commented Mar 18, 2018

Are you planning in releasing you project ? It is very interesting, I would like to toy with it.
Even without documentation is quite easy to write some code. Reduce took like a minute.

(defn fold [f s]
"folds a sequence onto function f"
(var tail-tail (tail (tail s)) )
(if (empty? tail-tail)
(f (head s) (head (tail s)))
(fold f (cons (f (head s) (head (tail s))) tail-tail))))

@bakpakin
Copy link
Member

bakpakin commented Mar 18, 2018

Are you planning in releasing you project ?

It depends on what you mean by releasing. The code is already public and anyone can download and build. Perhaps you mean prebuilt binaries with a version number?

Eventually. It is not production ready yet, but also I would like the ability to hack around with core ideas for a bit longer and add in a few very useful features.

There is a lot to do though, especially in the way of writing documentation. There is probably about 12k lines of C code and over a hundred dst functions that aren't (well) documented. The dst functions especially should be documented somewhere.

@gavlooth
Copy link
Author

gavlooth commented Mar 18, 2018

Yeah I see. Is not about binaries, more about documentation and stable features. Regardless, good job
😃

@gavlooth
Copy link
Author

Also I could probably contribute by writing some functions if you are interested, and you think my coding style is ok

@bakpakin
Copy link
Member

Yes just submit pull requests. The coding style for dst source is not really defined well yet, just generally lisp like. For C, try to use 4 spaces for indentation, spaces after commas and between operators, K & R style braces, and its ok to drop brackets when appropriate.

@bakpakin
Copy link
Member

I don't really have a great roadmap for what functions to add to dst, but I have been porting some of clojure's combinators and functions in the core namespace.

@gavlooth
Copy link
Author

Cool. I haven't written in C for age but I know my way around in Clojure code. Thanks for the info

bakpakin pushed a commit that referenced this issue Jun 10, 2020
pyrmont pushed a commit to pyrmont/janet that referenced this issue Oct 24, 2020
zevv added a commit to zevv/janet that referenced this issue May 22, 2023
error: bad slot janet-lang#1, expected string|symbol|keyword|buffer, got ...
error: bad slot janet-lang#1, expected a string, symbol, keyword or buffer, got ...

bad s64 initializer: "donkey"
can not convert string "donkey" to s64
zevv added a commit to zevv/janet that referenced this issue May 22, 2023
error: bad slot janet-lang#1, expected string|symbol|keyword|buffer, got ...
error: bad slot janet-lang#1, expected a string, symbol, keyword or buffer, got ...

bad s64 initializer: "donkey"
can not convert string "donkey" to s64
zevv added a commit to zevv/janet that referenced this issue May 22, 2023
error: bad slot janet-lang#1, expected string|symbol|keyword|buffer, got ...
error: bad slot janet-lang#1, expected a string, symbol, keyword or buffer, got ...

bad s64 initializer: "donkey"
can not convert string "donkey" to s64
zevv added a commit to zevv/janet that referenced this issue May 22, 2023
error: bad slot janet-lang#1, expected string|symbol|keyword|buffer, got ...
error: bad slot janet-lang#1, expected a string, symbol, keyword or buffer, got ...

bad s64 initializer: "donkey"
can not convert string "donkey" to s64
zevv added a commit to zevv/janet that referenced this issue May 23, 2023
error: bad slot janet-lang#1, expected string|symbol|keyword|buffer, got ...
error: bad slot janet-lang#1, expected a string, symbol, keyword or buffer, got ...

bad s64 initializer: "donkey"
can not convert string "donkey" to s64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants