shakedown.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A community for live music fans with roots in the jam scene. Shakedown Social is run by a team of volunteers (led by @clifff and @sethadam1) and funded by donations.

Administered by:

Server stats:

288
active users

#functionalprogramming

0 posts0 participants0 posts today

I am once again faced with the bleak irony of people who like to code in the terminal with Vim or Nano, but also install onto their computer some 5 or 10 apps via FlatPak or Docker, including VSCode, each installed with their own entire copies of Node.js and Electron.js (differing only in their minor revision number), while also complaining about Emacs being “bloated” because it ships with a miniature web browser and fully-featured e-mail client.

#tech#software#Emacs
Replied to HoldMyType

@xameer the “R7RS small” Scheme standard has a full numerical tower built-in, including unbounded integers.

(- (+ (expt 10 100) 1) (expt 10 100))

gives you precisely the correct answer without any floating-point operations. Although macros for symbolic computation with optimization that would avoid computation of (expr 10 100) is “an exercise left to the reader.” Haskell might do the optimal computation though thanks to it’s lazy evaluation.

Why dont we define uncertainty as a function of time ?
Isnt a function also a variable ?
Aha
> In functional programs the variables are like those in mathematics, once a value has been assigned the value cannot change.

In imperative languages it is typical that the values held by variables an be changed.

/Higher-order
/Random
#functionalprogramming

As much as I love Star Trek, every time I hear one of the characters say they want to maybe try using a “recursive algorithm“ to solve some sci-fi problem, like reconstructing a damaged database or decrypting some super-secret alien message, or reinitializing a whole bunch of warp thingies in just the right sequence or whatever, I physically cringe every single time.

#StarTrek#SciFi#TV

#programming #example #tutorial #commonLisp #series #declarative #functionalProgramming #lazyEvaluation #medium #article

medium.com/@screwlisp/common-l

I cover
- getting series and using it in a package
- Series' mapping
- Series' iteration (perform a side effect for the whole series, return nothing)
- Series' alter (in-place destructive modification of its input sequence)

Medium.com says it's possible to read my article in two minutes. Feel free to respond with the number of minutes it took you.

Medium · Common lisp lazy efficient series example - screwlisp - MediumBy screwlisp

In today's cringe
An article on medium titled:

"Why #functionalprogramming Languages Will Never Be Mainstream"

To save you a click, the top reason is

"Writing a loop is a lot harder."

excerpt:
"To write loops without recursion in a functional programming language, you have to master about *50* higher level functions. Compare that to most other languages where you only have to master 2 or 3 language constructs (for, while, foreach) to write a loop."