Two groups of English speakers received either auditory or articulatory instruction in learning to produce exotic sounds.
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
NVIRONMENT | |
JANET_TREE | |
A convenient way to set the modpath, binpath, syspath, and | |
manpath all at once. This is equivalent to the --tree parameter | |
to jpm. | |
JANET_PATH | |
The location to look for Janet libraries. This is the only | |
environment variable Janet needs to find native and source code | |
modules. If no JANET_PATH is set, Janet will look in the default |
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); |
NewerOlder