Andy

joined 2 years ago
MODERATOR OF
5
0.1 + 0.2 | Roc (rtfeldman.com)
submitted 1 year ago* (last edited 1 year ago) by Andy@programming.dev to c/concatenative@programming.dev
 

Discussion on lobsters: https://lobste.rs/s/oxjvv0/0_1_0_2

It's not that Roc only supports base-10 arithmetic. It also supports the typical base-2 floating-point numbers, because in many situations the performance benefits are absolutely worth the cost of precision loss. What sets Roc apart is its choice of default; when you write decimal literals like 0.1 or 0.2 in Roc, by default they're represented by a 128-bit fixed-point base-10 number that never loses precision, making it reasonable to use for calculations involving money.

In Roc, floats are opt-in rather than opt-out.

 

From the STOMP homepage:

What is it?

STOMP is the Simple (or Streaming) Text Orientated Messaging Protocol.

STOMP provides an interoperable wire format so that STOMP clients can communicate with any STOMP message broker to provide easy and widespread messaging interoperability among many languages, platforms and brokers.

Simple Design

STOMP is a very simple and easy to implement protocol, coming from the HTTP school of design; the server side may be hard to implement well, but it is very easy to write a client to get yourself connected. For example you can use Telnet to login to any STOMP broker and interact with it!

From John's blog post:

In the interest of learning Factor, I thought I would write a bit about parsing the STOMP protocol, and then about how to implement a client library using connection-oriented networking, interacting with it using mailboxes, and then building a command-line interface using the command-loop vocabulary.

There are many STOMP servers and clients available in different languages. I tried a few and decided that Apache ActiveMQ was one of the most convenient to setup and reliable to work with, but others are available as well.

 

Discussion on lobsters

 

Discussion on lobsters

 

John B's blog post calls it:

. . . a pretty neat hour long introduction going over a lot of features that users new to the language might be interested in.

The video creator's description:

This is an introductory tutorial for a stack-based (concatenative) programming language Factor. It covers some basic language constructs and a few features of the interactive development environment that is shipped with Factor.

I've re-shot my two prior recordings combining everything into a single video.

[–] Andy@programming.dev 2 points 1 year ago

I love Arch but you may also be interested to try Siduction for similar benefits with less change from what you know (it's still Debian).

[–] Andy@programming.dev 1 points 1 year ago (7 children)

FWIW Statamic (like many sites) fails my basic "is everything on the main site legible for dark-mode preferring users?" test:

screenshot of Statamic homepage

[–] Andy@programming.dev 3 points 1 year ago

When you try to activate the Cube effect with fewer than 3 virtual desktops, it will now tell you why it’s not working

Aw man. I used to use a 2 sided "cube" with compiz, just flipped the desktop around to the back side.

[–] Andy@programming.dev 0 points 1 year ago
  1. What's that driving game?
  2. It makes me nervous that they call X11 legacy when AFAIK they may never implement window shading on Wayland.
[–] Andy@programming.dev 2 points 1 year ago

Yeah, since broot is a full featured file navigator and operator, you can get anywhere once it's launched. I have alt+up bound to go up a directory, but there are other ways to get around as well.

Broot supports fish out of the box, and you can use its default fish launcher function to change your folder (alt+enter quits broot then performs a cd) or insert a path (the broot command pp quits broot then prints the path, like fzf).

I never learned fish scripting, but if anyone here has they may try to port my Zsh functions, especially to get path completion for partially typed paths. If you're doing that and have questions about the broot config side of the equation, I'm happy to try to help.

[–] Andy@programming.dev 5 points 1 year ago (2 children)

FWIW broot is a great fuzzy finding file tree tool that can be used similarly (much better for the task IMO), with a little configuration.

[–] Andy@programming.dev 4 points 1 year ago (1 children)

Zsh is not extended Bash, but an extended Bourne shell. This article isn't relevant to Bash.

[–] Andy@programming.dev 4 points 1 year ago (5 children)

That's not bash...

[–] Andy@programming.dev 1 points 2 years ago

That looks cool, thanks!

[–] Andy@programming.dev 1 points 2 years ago

Can the drag and drop designer work with QML yet?

[–] Andy@programming.dev 5 points 2 years ago (2 children)

You might like to use aconfmgr to track and prune your system state.

[–] Andy@programming.dev 1 points 2 years ago

~~How dare you?~~

Thanks!

view more: ‹ prev next ›