Discussion
Loading...

#Tag

  • About
  • Code of conduct
  • Privacy
  • About Bonfire
Simon Brooke
@simon_brooke@mastodon.scot  ·  activity timestamp 3 hours ago

@screwlisp wow, `(declaim (optimize speed))` really makes a difference! I'm seeing factor of 4 improvement...

/playing

Simon Brooke
@simon_brooke@mastodon.scot replied  ·  activity timestamp 3 hours ago

@screwlisp Are bignums in SBCL allocated in cons space or in heap space, does anyone know?

#CommonLisp
#Lisp

  • Copy link
  • Flag this comment
  • Block
Simon Brooke boosted
Stewart V. Wright
@svw@fosstodon.org  ·  activity timestamp yesterday

@simon_brooke

Agreed. #CommonLisp on Android ( #cl_repl) is capable and plenty fast enough on a Pixel 8a running your factorial code. 😎

You can make CL faster than the C/C++ used by NumPy: https://stewart123579.github.io/blog/posts/code/calculating-a-dot-product/#python-vs-dot-r-vs-dot-lisp-timing

@alwayscurious @vashti

SVW Thunk'd

Calculating a DOT product

You can get high speed, numerical calculation output without having to resort to bug-prone, highly tuned and optimised, unreadable code.
Partial screenshot with the following text:

​QML-USER [1]
(defun fact (n) "Compute the factorial o...

​real time : 0.000 secs
run time : 0.000 secs
gc count : 1 times
consed : 654512 bytes
Partial screenshot with the following text: ​QML-USER [1] (defun fact (n) "Compute the factorial o... ​real time : 0.000 secs run time : 0.000 secs gc count : 1 times consed : 654512 bytes
Partial screenshot with the following text: ​QML-USER [1] (defun fact (n) "Compute the factorial o... ​real time : 0.000 secs run time : 0.000 secs gc count : 1 times consed : 654512 bytes
  • Copy link
  • Flag this post
  • Block
Simon Brooke
@simon_brooke@mastodon.scot  ·  activity timestamp 2 days ago

@alwayscurious @vashti define fast. I can compute the factorial of 1,000 in under one millisecond on an ordinary laptop in several different #Lisp dialects, without optimisation.

Is that not fast enough for you?

https://gist.github.com/simon-brooke/fcb59705950c5ad515e18fba065510ae

Stewart V. Wright
@svw@fosstodon.org replied  ·  activity timestamp yesterday

@simon_brooke

Agreed. #CommonLisp on Android ( #cl_repl) is capable and plenty fast enough on a Pixel 8a running your factorial code. 😎

You can make CL faster than the C/C++ used by NumPy: https://stewart123579.github.io/blog/posts/code/calculating-a-dot-product/#python-vs-dot-r-vs-dot-lisp-timing

@alwayscurious @vashti

SVW Thunk'd

Calculating a DOT product

You can get high speed, numerical calculation output without having to resort to bug-prone, highly tuned and optimised, unreadable code.
Partial screenshot with the following text:

​QML-USER [1]
(defun fact (n) "Compute the factorial o...

​real time : 0.000 secs
run time : 0.000 secs
gc count : 1 times
consed : 654512 bytes
Partial screenshot with the following text: ​QML-USER [1] (defun fact (n) "Compute the factorial o... ​real time : 0.000 secs run time : 0.000 secs gc count : 1 times consed : 654512 bytes
Partial screenshot with the following text: ​QML-USER [1] (defun fact (n) "Compute the factorial o... ​real time : 0.000 secs run time : 0.000 secs gc count : 1 times consed : 654512 bytes
  • Copy link
  • Flag this comment
  • Block
Fugue State Audio boosted
screwlisp
@screwlisp@gamerplus.org  ·  activity timestamp 2 days ago

#lispyGopherClimate with @ramin_hal9001 and Kent Pitman
https://anonradio.net:8443/anonradio on the hour

@kentpitman 's https://www.nhplace.com/kent/Writing/A-Christmas-Peril.html read by yours truly. https://screwlisp.small-web.org/

@pkw points out when people ask why #commonLisp #software they would know, (US DOE's) #maxima CAS is in openbsd base ports and literally everywhere else.

My Kitten plans viz @aral 's https://kitten.small-web.org/tutorials/layout-components/#markdown-fragment-md fragmented markdown knowledge

#eev #irc on libera - @eduardoochs https://anggtwu.net/2025-badly-behaved.html

conditions?
#lambdaMOO

Badly-behaved targets, or: eev, Slime, Sly, and Maxima (2025)

A Christmas Peril by Kent M Pitman

"Twas the first iceless Christmas, and all through the world..." Kent Pitman's seasonal poem A Christmas Peril, inspired by The Night Before Christmas and A Christmas Carol, offers a grim warning about Climate Change. In English, Spanish, and Portuguese with audio narrations.

Kitten: Tutorials

#unix_surrealism - the gopher looks up at the lisp alien's many eyes on a monitor afixed high on a building beneath the moon and stars in an industrial wasteland

lispyGopherShow
anonradio.net

(by analognowhere.com )
#unix_surrealism - the gopher looks up at the lisp alien's many eyes on a monitor afixed high on a building beneath the moon and stars in an industrial wasteland lispyGopherShow anonradio.net (by analognowhere.com )
#unix_surrealism - the gopher looks up at the lisp alien's many eyes on a monitor afixed high on a building beneath the moon and stars in an industrial wasteland lispyGopherShow anonradio.net (by analognowhere.com )
  • Copy link
  • Flag this post
  • Block
screwlisp
@screwlisp@gamerplus.org  ·  activity timestamp 2 days ago

#lispyGopherClimate with @ramin_hal9001 and Kent Pitman
https://anonradio.net:8443/anonradio on the hour

@kentpitman 's https://www.nhplace.com/kent/Writing/A-Christmas-Peril.html read by yours truly. https://screwlisp.small-web.org/

@pkw points out when people ask why #commonLisp #software they would know, (US DOE's) #maxima CAS is in openbsd base ports and literally everywhere else.

My Kitten plans viz @aral 's https://kitten.small-web.org/tutorials/layout-components/#markdown-fragment-md fragmented markdown knowledge

#eev #irc on libera - @eduardoochs https://anggtwu.net/2025-badly-behaved.html

conditions?
#lambdaMOO

Badly-behaved targets, or: eev, Slime, Sly, and Maxima (2025)

A Christmas Peril by Kent M Pitman

"Twas the first iceless Christmas, and all through the world..." Kent Pitman's seasonal poem A Christmas Peril, inspired by The Night Before Christmas and A Christmas Carol, offers a grim warning about Climate Change. In English, Spanish, and Portuguese with audio narrations.

Kitten: Tutorials

#unix_surrealism - the gopher looks up at the lisp alien's many eyes on a monitor afixed high on a building beneath the moon and stars in an industrial wasteland

lispyGopherShow
anonradio.net

(by analognowhere.com )
#unix_surrealism - the gopher looks up at the lisp alien's many eyes on a monitor afixed high on a building beneath the moon and stars in an industrial wasteland lispyGopherShow anonradio.net (by analognowhere.com )
#unix_surrealism - the gopher looks up at the lisp alien's many eyes on a monitor afixed high on a building beneath the moon and stars in an industrial wasteland lispyGopherShow anonradio.net (by analognowhere.com )
  • Copy link
  • Flag this post
  • Block
Log in

BT Free Social

BT Free is a non-profit organization founded by @ozoned@btfree.social . It's goal is for digital privacy rights, advocacy and consulting. This goal will be attained by hosting open platforms to allow others to seamlessly join the Fediverse on moderated instances or by helping others join the Fediverse.

BT Free Social: About · Code of conduct · Privacy ·
Bonfire community · 1.0.0 no JS en
Automatic federation enabled
  • Explore
  • About
  • Public Groups
  • Code of Conduct
Home
Login