Andy

joined 1 year ago
MODERATOR OF
4
submitted 5 days ago by Andy to c/concatenative
 

Animated preview

This is not my own project!

2
Emit | Re: Factor (re.factorcode.org)
submitted 1 week ago by Andy to c/concatenative
5
submitted 1 week ago by Andy to c/concatenative
 

Discussion on HackerNews

 

Slint is a GUI toolkit, and is largely not relevant to concatenative programming. But the latest release adds a touch of postfix to the mix, which is nice to see.

From the blog post:

Math Gains Postfix Support

A subtle but profound change to the language. Traditional syntax:

Math.max(20, Math.abs(value.x))

New postfix syntax:

value.x.abs().max(20)

The new syntax improves readability by making the transformation steps more explicit. It works well for many operations but has limitations:

Effective for simple transformations (e.g., abs, max) Less intuitive for operations like clamp or atan2.

pos.y.atan2(pos.x) // Less clear than atan2(pos.y, pos.x)

So for now you cannot use postfix for all functions in the Math namespace. We may revisit these cases later, so give them a try and let us know your thoughts.

6
Roc, Exercism, Forth! (isaacvando.com)
submitted 3 weeks ago by Andy to c/concatenative
[–] Andy 3 points 1 month ago

In no particular order.

2
Battlesnake | Re: Factor (re.factorcode.org)
submitted 1 month ago by Andy to c/concatenative
[–] Andy 7 points 1 month ago

Ah yes you can tell by the post title:

best linux terminal emulator

[–] Andy 2 points 1 month ago (1 children)
[–] Andy 17 points 1 month ago (4 children)

For me: Wezterm. It does pretty much everything. I don't think Alacritty/Kitty etc. offer anything over it for my usage, and the developer is a pleasure to engage with.

Second place is Konsole -- it does a lot, is easy to configure, and obviously integrates nicely with KDE apps.

Honorable mention is Extraterm, which has been working on cool features for a long time, and is now Qt based.

[–] Andy 3 points 1 month ago

Just note that the comment was inaccurate, in that their weird encryption is indeed open source at least.

[–] Andy 1 points 2 months ago

I'd say an important part of this calculator's interaction model is doing something, getting a result, then doing something else to that result. That's not too bad in the regular Python interpreter either.

For example, in Python:

>>> 5
5
>>> 4 + _
9
>>> 2 * _
18

In Stacker:

>>> 5
[5]
>>> 4 +
[9]
>>> 2 *
[18]

Does Hy have something like the Python interpreter's _?

[–] Andy 1 points 2 months ago (2 children)

So it looks like a totally different data flow style, and (I think) geared toward writing then running programs, whereas Stacker is more for interactive stack-oriented calculator tasks.

[–] Andy 1 points 2 months ago (4 children)

I've never used Hy. Does it offer any concatenative-style interaction?

[–] Andy 6 points 2 months ago

I suggest trying this one for Zsh, over the more common one: https://github.com/zdharma-continuum/fast-syntax-highlighting

view more: next ›