Discuss Scratch

Jonathan50
Scratcher
1000+ posts

Nustack

Why do you have your shebangs
#!python3
instead of
#!/usr/bin/python3
or
#!/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:
sudo git -C /usr/lib/python3.?/site-packages/ clone https://github.com/BookOwl/nustack.git
and to update:
(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

liam48D wrote:

Just got it running, cool

Just remade yes:
{'y' show} forever
Wait so if I understand this then {} is a lambda and forever pops a function and repeats it forever? Pretty cool.

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
this makes the powers of 2.
2, 4, 8, 16, 32…
1 { 1 + dup show } forever
counts up…

Not yet a Knight of the Mu Calculus.
DrKat123
Scratcher
1000+ posts

Nustack

BookOwl wrote:

DrKat123 wrote:

Nutstack
What can you use this for?
Anything that you can do in Python, you can do in Nustack.
Cool!


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

Jonathan50 wrote:

Why do you have your shebangs
#!python3
instead of
#!/usr/bin/python3
or
#!/usr/bin/env python3
?
The
#!python3
is a directive the Python Windows launcher to use Python 3 instead of Python 2. This site has more about the windows launcher.

Jonathan50 wrote:

Here's a workaround to install it on *nix:
sudo git -C /usr/lib/python3.?/site-packages/ clone https://github.com/BookOwl/nustack.git
and to update:
(cd /usr/lib/python3.?/site-packages/nustack/ && sudo git pull)
I like the interactive prompt.
Cool! Can I put that in the README?

Jonathan50 wrote:

Just one thing: Ctrl-Z is Windows only. On *nix it's Ctrl-D.
OK, I'll change the instructions.

Jonathan50 wrote:

liam48D wrote:

Just got it running, cool

Just remade yes:
{'y' show} forever
Wait so if I understand this then {} is a lambda and forever pops a function and repeats it forever? Pretty cool.
That's correct. Thanks!

Jonathan50 wrote:

What does the backtick (`) mean?
The ` is used to denote a 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.

DrKat123 wrote:

BookOwl wrote:

DrKat123 wrote:

Nutstack
What can you use this for?
Anything that you can do in Python, you can do in Nustack.
Cool!


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, …)

Not yet a Knight of the Mu Calculus.
BookOwl
Scratcher
1000+ posts

Nustack

Jonathan50 wrote:

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, …)
Not yet, but I will add that soon.

who needs signatures
BookOwl
Scratcher
1000+ posts

Nustack

Jonathan50 wrote:

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, …)
I added it, the builtin command argv will give you a list of command line arguments passed to the script.

who needs signatures
BookOwl
Scratcher
1000+ posts

Nustack

B.U.M.P

who needs signatures
__init__
Scratcher
1000+ posts

Nustack

liam48D wrote:

This is what I've spent the last hour on:

(only sublime users will get it )
Lol nice.
SUBLIME IS BEST USE IT PLS

thisandagain pls explain
DrKat123
Scratcher
1000+ posts

Nustack

__init__ wrote:

liam48D wrote:

This is what I've spent the last hour on:

(only sublime users will get it )
Lol nice.
SUBLIME IS BEST USE IT PLS
No Sublime is not the best ×D (cyclops XD thang there)
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

DrKat123 wrote:

Btw can SOP and OOP be combined?
Why not? Yes.

Not yet a Knight of the Mu Calculus.
DrKat123
Scratcher
1000+ posts

Nustack

Jonathan50 wrote:

DrKat123 wrote:

Btw can SOP and OOP be combined?
Why not? Yes.
Cool!

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

https://github.com/BookOwl/nustack/pull/10

Not yet a Knight of the Mu Calculus.
Jonathan50
Scratcher
1000+ posts

Nustack

I'm writing vim syntax highlighting. What are the valid characters for identifiers/symbols?
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:
[0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&()*+,-./:;<=>?@\\^_|~]+
Quoted symbols are the same, except that there is a ` in front of the character class.

who needs signatures
Jonathan50
Scratcher
1000+ posts

Nustack

BookOwl wrote:

Here is the regex used to match unquoted symbols:
[0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&()*+,-./:;<=>?@\\^_|~]+
Quoted symbols are the same, except that there is a ` in front of the character class.
Why not
[0-9a-zA-Z!#$%&()*+,-./:;<=>?@\\^_|~]+
?

Last edited by Jonathan50 (March 6, 2016 00:32:58)


Not yet a Knight of the Mu Calculus.

Powered by DjangoBB