gicrisf, to python

After months, I recently returned to my fixation of utilizing beloved Python scientific libraries (numpy, matplotlib, pandas...) through a Lisp dialect. After trying Hy, EL, CL, etc., I increasingly believe that the best answer is Clojure. Very interesting is the sixth line of this code, where you can see how I calmly go to select a venv. Such user-friendliness is not at all obvious; I was surprised when I discovered I could do that so simply.

#clojure #python #lisp

bbatsov, to python
@bbatsov@hachyderm.io avatar

Basilisp, a Clojure-like language targeting Python, wins the "Brilliant Lisp Naming Award" https://github.com/basilisp-lang/basilisp Awesome logo as well!

#Clojure #Python #Lisp

kandid, to random
@kandid@chaos.social avatar
yogthos, to random
@yogthos@mas.to avatar

jank development update - Dynamic bindings and more!

#clojure

https://jank-lang.org/blog/2024-02-23-bindings/

mykhaylo, to random
@mykhaylo@fosstodon.org avatar
kandid, to random
@kandid@chaos.social avatar

some #Clojure code, controlling how an image and 7 floating shapes are combined.

(ns jean.demo)
(use 'jean.core)

(stack :silent0 :cursor0 :cursor1)

(t0 (+ 0.01 (* 0.05 (usin (* 0.00017 f)))))

(layer :silent0 []
(img "frozen/frozen0.png")
(lb 3)
(la 0.1)
)

(layer :cursor0 []
(n 7)
(lb 9)

(x (- (% (/ f 1024 i1) 1) 0.5))
(y (- (% (/ f 512 i1) 1) 0.5))
(w (* i1 t0))
(h t0)

(H (* 0.05 i))
(S 0.5)
(V 0.7)
(A 0.2)
)

two diagonal colored areas evolve on a black background.

futurile, to guix

Clojure packages in Guix are AOT compiled. I'm proposing to change the default to off due to Clojure ABI - so versions of libraries build by one version of Java may not work with another from what I understand. Got a view? Would love comment on guix-devel:

https://yhetil.org/guix-devel/ZdM%2FrSucBwQr5%2Fcl@t25sg/

kandid, to random
@kandid@chaos.social avatar
kandid,
@kandid@chaos.social avatar

@Horstibaer
Not Bubaz but #Clojure

(ns jean.demo)
(use 'jean.core)

(stack :silent0 :cursor0)

(t0 (* 0.1 (usin (* 0.0031 f))))

(layer :silent0 []
(img "frozen/frozen0.png")
(lb 3)
(la 0.1)
)

(layer :cursor0 []
(n 6)
(lb 5)

(x (* 1.2 (noise (* 0.011 f) (* 0.013 f) (* 0.1 i))))
(y (sin (* 0.005 f)))
(w (* i1 t0))
(h t0)

(H (* 0.05 i))
(S 0.5)
(V 0.7)
(A 0.2)
)

ynom, to emacs

What do you all think of #lem?

It appears to be an #emacs-ish program that uses #commonlisp for customization.

Apparently there have been other emacs clones based on #go and #rust and I guess those are called #emacsen ?

Without going too into my personal details, I’m not a professional programmer and most of my experience is with a modern programming language, #swift, and a high level programming language, #python.

I’ve tried learning #elisp several times by completing various programming exercises and I end up quitting because something obnoxious comes up that, from my minimal programming experience, appears to be due to elisp‘s age. Again, I’m not a pro, so this is just my amateur take.

I did a some programming challenges with #clojure which was hugely fun (mostly because of how fun it feels in emacs 😁) so I don’t think it’s the #lisp part of emacs I have a distaste for.

I’ll probably give it a serious go within the next week here and possibly report back, but I can’t imagine an emacs clone without #magit #orgroam and ChatGPT-shell will really ever become my daily driver 🙃

https://lem-project.github.io/

https://news.ycombinator.com/item?id=39397942

downtofunctional, to haskell

f(x,y) -> Clear and straightforward - the mark of practical programming.
f x y -> Acceptable in shell scripting, but a bit odd.
(f x y) -> Impossibly puzzling. Approach with caution!

#clojure #haskell #javascript

(p.s. not my joke)

toxi, to opensource
@toxi@mastodon.thi.ng avatar

"Definitely the most underrated project on github without exception." — a recent response to the State-of-thi.ng user survey 2024, currently open until end of the month. If you have been using any of the hundreds of libraries in this larger project, please do consider participating...

https://forms.gle/XacbSDEmQMPZg8197

Your feedback is very important! Thank you! 🙏

#ThingUmbrella #OpenSource #Community #Survey #CFP #TypeScript #JavaScript #Clojure #Zig #CreativeCoding #GenerativeArt

parcifal, to random
@parcifal@hachyderm.io avatar
toxi, to opensource
@toxi@mastodon.thi.ng avatar

‼️ Announcing the thi.ng user survey 2024 📋

https://forms.gle/XacbSDEmQMPZg8197

To achieve a better sample size, I'd highly appreciate if you could circulate the link to this survey in your own networks.

It's already been almost 9 years since the last user survey for these projects. Please help me/us to get more insights into your own experiences, your interests, hopes and pain points — allowing the projects and everyone involved to move forward more intentionally.

There're 15 questions here, with ~10 of them marked as mandatory. The main focal points are the matrices in the middle of the survey. Please also do use the final freeform comments box to share any further feedback you might have. Thank you very much for your interest, trust & taking the time to provide some much needed answers! 🙏

The survey is anonymous and will remain open until 23:59 (CET) on February 29, 2024. I will then share a public summary of the results on my Mastodon in the days following (do keep an eye on the #ThingUmbrella hashtag)...

#OpenSource #Community #Feedback #Survey #ComputationalDesign #CreativeCoding #Dataviz #FunctionalProgramming #ReactiveProgramming #GenerativeArt #GenerativeDesign #TypeScript #JavaScript #Clojure #Zig #Workshops

leobm, to Lisp German
@leobm@norden.social avatar
jack, to random
@jack@berlin.social avatar

Organum, 2022, .

video/mp4

farcaller, to random
@farcaller@hdev.im avatar

any #clojure people here? How do you do the "repl-driven development" when the app is a shadow-cljs rum/react frontend? I can't quite wrap my head around how does repl fit into a frontend app.

how do you do it? any tips are appreciated.

kandid, to Java
@kandid@chaos.social avatar

The time for #genuary is over.

I've been working on animations for weeks. I can't manage to get involved in a new topic every day.

One of the challenges in genuary was shader. This animation is based on #Clojure, #Java and #GLSL fragment shaders.

Instead of a GUI this animation is controlled by a live coding system.

The lb operator activates different GLSL shaders:
(lb 10) preserve only red channel
(lb 9) invert source
(lb 8) overlay source on destination
(lb 12) invert destination

Images of a flowers and a hummingbird. In false colors. Mostly red an pale blue. All images by Joseph Constantine Stadler (1780–1812)

kandid, to random
@kandid@chaos.social avatar

Quite abstract and reduced.

(stack :cursor0 :cursor1)

(layer :cursor0 []
(n 7)
(lb 0)

(x (* 0.113 i1 (cos (* 0.00113 (* 3 i1) f))))
(y (* 0.071 i1 (sin (* 0.00073 (* 3 i1) f))))
(w 0.05)
(h 0.05)

(H 0.95)
(S 0.8)
(V 0.5)
(A 0.05)
)

(layer :cursor1 []
(n 2)
(lb 0)
(shape 1)

(x (* 0.113 i1 (cos (* 0.00073 (* 3 i1) f))))
(y (* 0.071 i1 (sin (* 0.00113 (* 3 i1) f))))
(w 0.45)
(h 0.01)

(H 0.2)
(S 0.5)
(V 0.9)
(A 0.05)
)

#clojure

A slow animation. Two yellow lines fading on a black and red background.

leobm, to javascript German
@leobm@norden.social avatar

I've been thinking about how I can use alpinejs in #scittle, for example. But it's probably not that easy or I haven't managed it yet.
But what I didn't know is that you can compile #squint (clojure) in #babashka on the server side to #javascript.
https://github.com/squint-cljs/squint/tree/main/examples/babashka
That's super ingenious, I love this idea. Ok, I'll probably use #squint for that. Because #alpinejs is for me next to #babashka or #clojurescript, #htmx, #wasm generally the most interesting web technology

leobm,
@leobm@norden.social avatar

at the moment. Unfortunately, I always had to switch to javascript for this.

#babshka #clojure #squintcljs

fosskers, to Lisp
__sharky__, to FunctionalProgramming
@__sharky__@mastodon.social avatar

This chapter took me a while and I need to reimplement it again. I think translate-codon should use a map . Having to wrap codons with codon-strings does not feel right , but I don't understand what partition returns.

Not sure about throw-away maybe a recursion is too much for this ? Maybe there are other built-ins I can use.

Using map more than once does not feel right. I think processing one rna a time would make it more simple.

kandid, to Java
@kandid@chaos.social avatar

One more experiment blending two images with the movement of simple animated shapes. Combining the layers is done with #Java, #Clojure and #OpenGL blend equations.

Illustration of this flowers by Joseph Constantine Stadler (1780–1812).

A combination of flowers, circles and rectangles. In false colors. And some Clojure source code describing this effects.

__sharky__, to FunctionalProgramming
@__sharky__@mastodon.social avatar

First time I need to use destructuring in . Takes some time to get my head around the syntax , but it works !

__sharky__,
@__sharky__@mastodon.social avatar

@loudfpv 😅 Ok, I will work on my brackets ! I'm still tinkering. I have no idea how to format code in clojure. Is there something like black or flake8 for #clojure ? These are code formatters for python*

abbienormal, to Lisp Italian

Clojure targets Java

Fennel targets Lua

Is there a lisp that targets python ?


simon_brooke,
@simon_brooke@mastodon.scot avatar

@abbienormal doesn't target Java, it targets the , which is a whole different animal.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • mdbf
  • ngwrru68w68
  • modclub
  • magazineikmin
  • thenastyranch
  • rosin
  • khanakhh
  • InstantRegret
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • DreamBathrooms
  • megavids
  • GTA5RPClips
  • tacticalgear
  • normalnudes
  • tester
  • osvaldo12
  • everett
  • cubers
  • ethstaker
  • anitta
  • provamag3
  • Leos
  • cisconetworking
  • lostlight
  • All magazines