simon_brooke, to random
@simon_brooke@mastodon.scot avatar

In Ertuğrul Çetin's jme-clj library, there's a lovely little macro get* that constructs the names of Java getter methods on the fly in order to interrogate arbitrary objects. I tried to generalise it to collect values of several properties in a single call, and discovered just how much I have still to learn about the #Clojure evaluator!

https://gist.github.com/simon-brooke/5896998720be3efda3bfab9cfc182b2c

bbatsov, to python
@bbatsov@hachyderm.io avatar
avelino, to clojure
@avelino@clj.social avatar
avelino, to Redis
@avelino@clj.social avatar
simon_brooke, to random
@simon_brooke@mastodon.scot avatar

I'm much less unwell than I was last night, but I'm still definitely too unwell to write macros!

jbzfn, to FunctionalProgramming
@jbzfn@mastodon.social avatar
__sharky__, to ChatGPT
@__sharky__@mastodon.social avatar

Have you used for learning new things ? I am trying to use it to learn . I have heard it is not very good in writing clojure code , but for me it is more to have exercises I enjoy and are not too hard to solve and if I don't have a clue I can ask for help.

deadblackclover, to Lisp
@deadblackclover@functional.cafe avatar
borkdude, to random
@borkdude@mastodon.social avatar

New #cljKondo release!

#clojure

craigbro, to random
@craigbro@emacs.ch avatar

Recent CVE in #git allowing RCE when cloning a repo, see https://github.com/git/git/security/advisories/GHSA-8h77-4q3w-gfgv

Note it says, "As always, it is best to avoid cloning repositories from untrusted sources."

Now consider how many languages will clone a repo of a transitive dependency, or direct dependency at time of dep resolution -- often before any dep analysis/presentation tools could give you a means to evaluate the transitive git deps.

Like #clojure, one of my favorites. I have not review dep resolution/fetch code in other languages, but it seems that they should all heed the advice in that advisory.

yogthos, to random
@yogthos@mas.to avatar

Going to the cinema is a data visualization problem.

#clojure

https://tonsky.me/blog/allekinos/

papachan, to random
@papachan@fosstodon.org avatar
worldsendless, to emacs
@worldsendless@qoto.org avatar

One of the issues with the (and which is just a great big text-oriented repl) is that it is additive in nature; it usually takes major effort or a restart to REMOVE things once they've been added (thinking on plugins which modify app state).

robert, to rust
@robert@toot.kra.hn avatar

> Unfortunately, most people seem to have taken the wrong lesson from Rust. They see all of this business with lifetimes and ownership as a dirty mess that Rust has had to adopt because it wanted to avoid garbage collection. But this is completely backwards! Rust adopted rules around shared mutable state and this enabled it to avoid garbage collection. These rules are a good idea regardless.

Yes, so much this! I'm using not because I'm building low-level resource constrained systems (far from it) but because it allows for local reasoning about state. Paired with the ML inspired syntax that makes pattern matching easy this leads to far more reliable programs.

This is also why I like so much. Clojure's refs / atoms /agents allow for scoping mutability in an otherwise purely functional system. Scratch for the same itch. But Rust's compile time checking avoids pushing issues into the runtime, increasing reliability and hugely reduces time needed for debugging. The trade off here is no interactive / live development.

https://without.boats/blog/references-are-like-jumps/

cdrmack, to cpp
@cdrmack@fosstodon.org avatar

After 10 years of commercial experience in #cpp I think I’m ready for a new chapter. I have played around with #rust #golang #zig and #clojure but most job offers that I see are for people with at least X years of commercial experience in this exact languages. Do you have any hints how to approach this? I would think that my previous experience as a #software engineer would matter. Especially since I do not expect to move to another senior role, I’m checking junior positions too. #jobsearch

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

A teletypewriter of an LGP-30 machine.

Edward Lorenz worked on differential equations for atmospheric convection. Programming the LGP-30 was done by Ellen Fetter.

That's why I decided that these shapes should move on an Lorenz attractor.

https://gitlab.com/metagrowing/jean/-/blob/main/sketchbook/lgp-30-lorenz/LGP-30.clj?ref_type=heads

Shapes move along a non-periodic path across the plane. In doing so, they reveal the underlying images. A mechanical teletype and the drawing of a flower.

kandid, to random
@kandid@chaos.social avatar

Another example that was created with Jean. Jean is a live coding software for visuals and sound. This example was recorded without sound and without the code. Images in the background by Joseph Constantine Stadler (1780–1812).

visuals.

https://gitlab.com/metagrowing/jean/-/blob/main/sketchbook/Joseph_Constantine_Stadler/blend-colorfull.clj?ref_type=heads

Drawings of flowers and a hummingbird are painted over with blue and orange shapes.

kandid, to random
@kandid@chaos.social avatar
yogthos, to random
@yogthos@mas.to avatar
flypaper, to anarchism
@flypaper@autonomous.zone avatar

Request: please help me find a grant

I have a friend who is most of the way done making an open source app that handles supply chain interactions without centralization. It uses a SSB backend so there aren’t any central servers and it’s not crypto. There’s no angle for him to get rich doing this, it’s just a good idea that he wants to exist in the world. Written in Clojure.

Current code: https://github.com/nanomonkey/scratch

#anarchy #anarchism #opensource #ssb #scuttlebutt #clojure

Thanks

simon_brooke, to gamedev
@simon_brooke@mastodon.scot avatar

OK, then, new GitHub repository, simulated-genetics, looking at the problem of generating thousands of character models for games, while ensuring that characters who are supposed to be related to one another have similar appearance.

This is very, very pre-alpha, but far enough along to be interesting.



https://github.com/simon-brooke/simulated-genetics

lxsameer, to emacs
@lxsameer@social.lxsameer.com avatar

I'm using #Emacs since 2008, I've been maintaining an Emacs bundle since 2010 (currently working on v4.1). Emacs is genuinely one of the programs that still gives me the goosebumps. After all these years, I still learn new stuff about it that blows my mind.

badrihippo,
@badrihippo@fosstodon.org avatar

@lxsameer that's cool! I recently started using #emacs because I found file navigation annoying in other IDEs. I know how to touch type, so now I literally just have to type in what I want (with all the autocompletion benefits just like a shell). Still learning the basics but finding even that awesome!

By the way, I've been programming a bit of #Clojure too, although right now I prefer the #clisp vibes :clojure: :lisp:

borkdude, to random
@borkdude@mastodon.social avatar

#scittlecljs can now be used in webworksers and Node.js, etc as well (as I've made the hard dependency on js/document in a browser optional)

#clojure #clojurescript

simon_brooke, to python
@simon_brooke@mastodon.scot avatar

The available open source libraries for generating human models (MakeHuman, ManuelBastioniLab) appear to be written in . I need something like this, but I'm working primarily in . I'm wondering whether it would be easier to load one of the existing libraries into Jython and try to call that from , or just to bite the bullet and build my own from scratch.

Opinions, anyone?

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