Skip to content

Instantly share code, notes, and snippets.

View devyn's full-sized avatar
👨‍💻
Nushell is really cool

Devyn Cairns devyn

👨‍💻
Nushell is really cool
View GitHub Profile
#!/bin/bash
PACKAGE_URL="http://static.rust-lang.org/dist/rust-nightly-x86_64-unknown-linux-gnu.tar.gz"
INSTALL_TO="$HOME/.bin/rust"
die() {
echo -e "\e[1m\e[31merror: \e[0;1m$*\e[0m" 1>&2
exit 1
}
implementation void[]
This causes 8192 "hi" messages to be printed. [
implementation void[infrastructure execution branch[] []][
implementation void[infrastructure execution branch[] []][
implementation void[infrastructure execution branch[] []][
implementation void[infrastructure execution branch[] []][
implementation void[infrastructure execution branch[] []][
implementation void[infrastructure execution branch[] []][
---
whatever.paws: >
asdlkfjasdfasd\]fawe\r][we\r][wea\r][sfsda\
asd\f][sda\]f[sdaf\awero pj20394u lkdsjaf.s nlsa.nf'a;sdlfk
---
other.paws: >
YAML block text mode ftw
asldk
slakd
aslkdas23123

The specification namespace

Contains helpers for specifying behavior at the very lowest level of Nucleus.

Should only be available if the environment is configured in an implementation-specific way (for example, a command line switch or a compile time option).

specification assert

[devyn] Paws.rs - build/paws_rs < test-branch-2.paws
Hello, world
^C
[devyn] Paws.rs - ~/Projects/ELLIOTTCABLE/Paws.js/Executables/paws.js test-branch-2.paws
Hello, world
Hello, world
~ Paws loves you. Bye! 💖
Paws.js output
[devyn] Paws.rs - ~/Projects/ELLIOTTCABLE/Paws.js/Executables/paws.js test-branch.paws
Hello, world
Hello, world
Hello, world
Hello, world
~ Paws loves you. Bye! 💖
Paws.rs output
[devyn] Paws.rs - cat examples/{02,03,04}* stop | perf stat build/paws_rs
Symbol[Hi!]
Go! PAWS!
Phew, that worked.
Performance counter stats for 'build/paws_rs':
8.155171 task-clock (msec) # 0.929 CPUs utilized
4 context-switches # 0.490 K/sec
0 cpu-migrations # 0.000 K/sec
[devyn] Paws.rs - RUST_LOG="paws=4" build/paws_rs
implementation void[] hello world [implementation stop[]]
DEBUG:paws::machine: start reactor
DEBUG:paws::machine: realize execution [#0x7f44f3c1e250] <-- [#0x7f44f3c1e250]
DEBUG:paws::object: [#0x7f44f3c1de90] <lookup_receiver> [:implementation] => Some([#0x7f44f3c387b0])
DEBUG:paws::machine: realize execution [#0x7f44f3c1e250] <-- [#0x7f44f3c387b0]
DEBUG:paws::util::namespace: [#0x7f44f3c387b0] <namespace_receiver> [:void] => Some([#0x7f44f3c38030])
DEBUG:paws::machine: realize execution [#0x7f44f3c1e250] <-- [#0x7f44f3c39070]
DEBUG:paws::machine: realize alien [#0x7f44f3c39070] <-- [#0x7f44f3c1e250]
DEBUG:paws::machine: realize execution [#0x7f44f3c1e250] <-- [#0x7f44f3c39070]
foo bar (widget dongle)
baz mud
wibble wobble
spaz
-- or --
{foo bar (widget dongle); baz mud} {wibble wobble}; spaz
abc
foo bar (widget dongle)
def
baz mud
wibble wobble
spaz