Two groups of English speakers received either auditory or articulatory instruction in learning to produce exotic sounds.
pp:
From scripts to quite complex webapps
Ian Henry:
Personally, making games using Jaylib, and compiling to WebAssembly to make websites with embedded scripting. Otherwise, yeah, mostly as a replacement for bash/perl/Python -- https://github.com/andrewchambers/janet-sh makes it strictly better than bash I think.
https://bauble.studio/ and https://toodle.studio/ -- little art playgrounds. I've also written some about my experience making a game in Jaylib here: https://ianthehenry.com/posts/janet-game/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ask not whether janet is a lisp, but rather consider that... | |
common lisp, clojure, scheme, and others are "hilwalpad"s | |
what is a "hilwalpad"? | |
it is a "homo iconic language with at least parens as delimiters" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(let [chunked | |
# https://en.wikipedia.org/wiki/Chunked_transfer_encoding#Encoded_data | |
(string "4\r\n" | |
"Wiki\r\n" | |
"6\r\n" | |
"pedia \r\n" | |
"E\r\n" | |
"in \r\n" | |
"\r\n" | |
"chunks.\r\n" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env janet | |
# jsrc - display source associated with some janet symbol | |
# thanks to bakpakin and yumaikas | |
########################################################################### | |
## requirements ## |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# channels that can be used for communication between os threads | |
(def t-chan-a (ev/thread-chan 10)) | |
(def t-chan-b (ev/thread-chan 10)) | |
# supervisor channel | |
(def t-sv-chan (ev/thread-chan 10)) | |
# one thread | |
(ev/thread | |
(fiber/new |
In the following examples, looking for JanetAbstractType seems to help in getting a sense of what each does.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <janet.h> | |
// Function to be exported | |
// Returns a Janet; that's the static value that boxes a dynamic Janet type | |
// argc: number of arguments it was called with | |
// argv: arguments array | |
static Janet interp(int32_t argc, Janet *argv) { | |
// Assert that argc == 2 | |
janet_fixarity(argc, 2); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# new instructions here | |
# | |
# 0. assuming a janet install with `make clean && PREFIX=$HOME/.local make && PREFIX=$HOME/.local make install` | |
# 1. git clone https://github.com/janet-lang/jpm | |
# 2. PREFIX=$HOME/.local janet bootstrap.janet | |
# | |
# alternatively, from a clone of the janet repository: | |
# | |
# 0. assuming a janet install with `make clean && PREFIX=$HOME/.local make && PREFIX=$HOME/.local make install` | |
# 1. PREFIX=$HOME/.local make install-jpm-git |
NewerOlder