Discuss Scratch
- Jonathan50
- Scratcher
1000+ posts
Nustack
Why do you have your shebangs
instead of
or
?
#!python3
#!/usr/bin/python3
#!/usr/bin/env python3
Not yet a Knight of the Mu Calculus.
- Jonathan50
- Scratcher
1000+ posts
Nustack
Here's a workaround to install it on *nix:
and to update:
I like the interactive prompt.
Just one thing: Ctrl-Z is Windows only. On *nix it's Ctrl-D.
sudo git -C /usr/lib/python3.?/site-packages/ clone https://github.com/BookOwl/nustack.git
(cd /usr/lib/python3.?/site-packages/nustack/ && sudo git pull)
I like the interactive prompt.
Just one thing: Ctrl-Z is Windows only. On *nix it's Ctrl-D.
Not yet a Knight of the Mu Calculus.
- Jonathan50
- Scratcher
1000+ posts
Nustack
Wait so if I understand this then { Just got it running, cool …} is a lambda and forever pops a function and repeats it forever? Pretty cool.
Just remade yes:{'y' show} forever
Not yet a Knight of the Mu Calculus.
- Jonathan50
- Scratcher
1000+ posts
Nustack
What does the backtick (`) mean?
Not yet a Knight of the Mu Calculus.
- Jonathan50
- Scratcher
1000+ posts
Nustack
1 { dup + dup show } forever
2, 4, 8, 16, 32…
1 { 1 + dup show } forever
Not yet a Knight of the Mu Calculus.
- DrKat123
- Scratcher
1000+ posts
Nustack
Cool!Anything that you can do in Python, you can do in Nustack. Nutstack
What can you use this for?
Moving from Scratch? Don't learn C or Java, try Snap!
it haz OOP
DrKat McKatFace
First of all I'm 100% human and humans does not have a cat face
and second, the Boaty McBoatFace/Parsey McParseFace madness has just begun
λ
Sharp, my new Scratch mod
Is my post/siggy worthy for an internet?
- BookOwl
- Scratcher
1000+ posts
Nustack
The Why do you have your shebangsinstead of#!python3or#!/usr/bin/python3?#!/usr/bin/env python3
#!python3
Cool! Can I put that in the README? Here's a workaround to install it on *nix:and to update:sudo git -C /usr/lib/python3.?/site-packages/ clone https://github.com/BookOwl/nustack.gitI like the interactive prompt.(cd /usr/lib/python3.?/site-packages/nustack/ && sudo git pull)
OK, I'll change the instructions. Just one thing: Ctrl-Z is Windows only. On *nix it's Ctrl-D.
That's correct. Thanks!Wait so if I understand this then { Just got it running, cool …} is a lambda and forever pops a function and repeats it forever? Pretty cool.
Just remade yes:{'y' show} forever
The ` is used to denote a What does the backtick (`) mean?symbol, which is much like a string (both strings and symbols are stored as Python strings), but the can only hold characters allowed in Nustack identifiers. Symbols mostly used in the import/import* and define functions to give the name of the thing you are importing are defining.
Cool!Anything that you can do in Python, you can do in Nustack. Nutstack
What can you use this for?
who needs signatures
- BookOwl
- Scratcher
1000+ posts
Nustack
Here's a sneak peek on what I've been working on.
who needs signatures
- Jonathan50
- Scratcher
1000+ posts
Nustack
Can we access command-line arguments in Nustack?
(the first should be the name of the program used to invoke the Nustack program, the second the first argument, …)
(the first should be the name of the program used to invoke the Nustack program, the second the first argument, …)
Not yet a Knight of the Mu Calculus.
- BookOwl
- Scratcher
1000+ posts
Nustack
Not yet, but I will add that soon. Can we access command-line arguments in Nustack?
(the first should be the name of the program used to invoke the Nustack program, the second the first argument, …)
who needs signatures
- BookOwl
- Scratcher
1000+ posts
Nustack
I added it, the builtin command argv will give you a list of command line arguments passed to the script. Can we access command-line arguments in Nustack?
(the first should be the name of the program used to invoke the Nustack program, the second the first argument, …)
who needs signatures
- DrKat123
- Scratcher
1000+ posts
Nustack
No Sublime is not the best ×D (cyclops XD thang there)Lol nice. This is what I've spent the last hour on:
(only sublime users will get it )
SUBLIME IS BEST USE IT PLS
Btw can SOP and OOP be combined?
Moving from Scratch? Don't learn C or Java, try Snap!
it haz OOP
DrKat McKatFace
First of all I'm 100% human and humans does not have a cat face
and second, the Boaty McBoatFace/Parsey McParseFace madness has just begun
λ
Sharp, my new Scratch mod
Is my post/siggy worthy for an internet?
- Jonathan50
- Scratcher
1000+ posts
Nustack
Why not? Yes. Btw can SOP and OOP be combined?
Not yet a Knight of the Mu Calculus.
- DrKat123
- Scratcher
1000+ posts
Nustack
Cool!Why not? Yes. Btw can SOP and OOP be combined?
Moving from Scratch? Don't learn C or Java, try Snap!
it haz OOP
DrKat McKatFace
First of all I'm 100% human and humans does not have a cat face
and second, the Boaty McBoatFace/Parsey McParseFace madness has just begun
λ
Sharp, my new Scratch mod
Is my post/siggy worthy for an internet?
- Jonathan50
- Scratcher
1000+ posts
Nustack
I'm writing vim syntax highlighting. What are the valid characters for identifiers/symbols?
EDIT:
EDIT:
0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&()*+,-./:;<=>?@\\^_|~
Last edited by Jonathan50 (March 6, 2016 00:31:28)
Not yet a Knight of the Mu Calculus.
- BookOwl
- Scratcher
1000+ posts
Nustack
Here is the regex used to match unquoted symbols:
Quoted symbols are the same, except that there is a ` in front of the character class.
[0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&()*+,-./:;<=>?@\\^_|~]+
who needs signatures
- Jonathan50
- Scratcher
1000+ posts
Nustack
Why not Here is the regex used to match unquoted symbols:Quoted symbols are the same, except that there is a ` in front of the character class.[0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&()*+,-./:;<=>?@\\^_|~]+
[0-9a-zA-Z!#$%&()*+,-./:;<=>?@\\^_|~]+
Last edited by Jonathan50 (March 6, 2016 00:32:58)
Not yet a Knight of the Mu Calculus.