@jasalt's Avatar

@jasalt

@jasalt.bsky.social

Freelance dev working with HTML, databases and electronics. More posts: https://twitter.com/jasalt_ https://fosstodon.org/@jasalt Helsinki, Finland

10 Followers  |  16 Following  |  17 Posts  |  Joined: 30.11.2024  |  1.5991

Latest posts by jasalt.bsky.social on Bluesky

Preview
Datastar attribute plugin for signal value translation Extending on the data-text attribute with user defined output value mapping using vanilla Javascript.

Wrote an article on creating new reactive DOM attributes using Datastar front-end framework plugin API while solving a specific #frontend problem in a minimal and declarative fashion: jasalt.dev/blog/datasta... #webdev

13.10.2025 19:00 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

@carltongibson.bsky.social Hey, I noted that Datastar was mentioned first time in Django Chat, I am a big fan of both. It fits in with Django async side more smoother than HTMX for SSE etc.

You should interview Delaney some time @data-star.dev

20.09.2025 14:24 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

Sveltia is cool. I would like to try it with AstroJS sometime while I avoid JavaScript most of times. Seems like it could be a good lower hassle CMS solution over WordPress in many cases.

20.09.2025 14:04 โ€” ๐Ÿ‘ 3    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
(defn get-users
  "Phel adapter for php/get_users."
  [m]
  (php->phel (php/get_users (phel->php m))))

(defmacro php
  "Calls PHP function with given arguments. Converts arguments to PHP
  data structures using `phel->php` and conversely returned PHP data structure
  back to Phel with `php->phel`.
  TODO could do conversion ONLY when needed."
  [php-function & args]
  (let [php-function-symbol (symbol (str "php/" php-function))
        converted-args (map (fn [arg] `(phel->php ,arg)) args)]
    `(php->phel (,php-function-symbol ,@converted-args))))

(php get_users {:meta_key "legacy_user_id"
                :meta_value 10
                :meta_compare "="})

# -> [Printer cannot print this type: WP_User]

(defn get-users "Phel adapter for php/get_users." [m] (php->phel (php/get_users (phel->php m)))) (defmacro php "Calls PHP function with given arguments. Converts arguments to PHP data structures using `phel->php` and conversely returned PHP data structure back to Phel with `php->phel`. TODO could do conversion ONLY when needed." [php-function & args] (let [php-function-symbol (symbol (str "php/" php-function)) converted-args (map (fn [arg] `(phel->php ,arg)) args)] `(php->phel (,php-function-symbol ,@converted-args)))) (php get_users {:meta_key "legacy_user_id" :meta_value 10 :meta_compare "="}) # -> [Printer cannot print this type: WP_User]

Ergonomic interop macro avoiding the need of wrapping every function expecting array as argument which is often the case with #WordPress.

#phel #php #lisp

06.08.2025 06:25 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Preview
pyinfra pyinfra turns Python code into shell commands and runs them on your servers

Looking at YAML-free Ansible ja Terraform alternatives pyinfra.com & www.pulumi.com.

Not having grief over YAML but seems less complicated to go without when starting something from scratch and keeps it more lispy.

24.06.2025 08:20 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Preview
jasalt (@jasalt@fosstodon.org) Attached: 1 image Found uLisp compatible Arduino Mega 2560 board and a random < 80 chars per row LCD display while cleaning up the storage. Docs: - http://www.ulisp.com/show?1LGA - https://docs.ard...

Found uLisp compatible Arduino Mega 2560 board and a random < 80 chars per row LCD display while cleaning up the storage. fosstodon.org/@jasalt/1145...

29.05.2025 14:37 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Video thumbnail

And Phel REPL is available in Javascript (calling shared PHP function)... Excited to make better demo soon but sources so far git.sr.ht/~jasalt/php-... #lisp #wasm #php

16.05.2025 06:21 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Post image

Vibe coding to get PHP Composer work in WebAssembly with Aider. On Chromium because Firefox fails with out of memory errors during testing. Annoyed that LLM (Claude 3.7) leaves trailing whitespace on empty lines but it gives out what code hasn't been human-edited at least. git.sr.ht/~jasalt/php-...

13.05.2025 16:56 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0
UML class diagram centered on https://github.com/phel-lang/phel-lang/blob/main/src/php/Compiler/Application/Parser.php

UML class diagram centered on https://github.com/phel-lang/phel-lang/blob/main/src/php/Compiler/Application/Parser.php

Trying to make sense of Phel compiler to fix REPL require issues.

PlantUML outputs (generated with smeghead/php-class-diagram):
nc.contabo-storage-1.lti.la/s/rPiAXGkyKW... #php #lisp #engineering

05.04.2025 08:11 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Video thumbnail

Testing simple #Phel web form REPL with #AMPHP async http-server and #datastar printing transpiled PHP and the evaluation result while keeping state between requests. Might run as wasm service worker also which could be nice for interactive web tutorials. #PHP #Lisp

02.03.2025 07:47 โ€” ๐Ÿ‘ 3    ๐Ÿ” 1    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Your PHP can fly - First PHP-controlled AR-Drone
YouTube video by Mickael Euranie Your PHP can fly - First PHP-controlled AR-Drone

Very impressive demo from 2013 even in today's #PHP standards youtu.be/i07m_TFR9no?...

09.02.2025 07:27 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Preview
Helsinki Clojure Meetup | Meetup Discussion, education, and hands-on workshops about all things related to Clojure and its ecosystem - areas of application, hosting environments, ClojureScript, different implementations of the langua...

Held a Phel (Lisp) case study / WordPress e-commerce plugin REPL live coding demo talk at a functional programming meetup with Clojure and Haskell developers. Worked well loosening up the atmosphere after talks in recursion schemes and expansible data types www.meetup.com/helsinki-clo....

06.02.2025 09:56 โ€” ๐Ÿ‘ 3    ๐Ÿ” 2    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Video thumbnail

Latest hyped LLM model test: "create a detailed OpenScad 3D representation of a cow" -> deepseek-r1-distill-llama-70b

28.01.2025 15:02 โ€” ๐Ÿ‘ 2    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Ulisp Blink and Wifi Demo with esp32 Doit Devkit V1 and Emacs
YouTube video by Ahmet Usal Ulisp Blink and Wifi Demo with esp32 Doit Devkit V1 and Emacs

This is how it must have been to "package install" with Lisp in the 70s early internet before package managers were invented youtu.be/lnRgfM7gzSI?.... #programming #SoftwareEngineering #lisp

26.01.2025 11:57 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Preview
Global and local bindings | The Phel Language The official website of the Phel language. Phel is a functional programming language that compiles to PHP

With example how it differs from `let` phel-lang.org/documentatio... #lisp

31.12.2024 13:06 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Post image

Learned `binding` function in #Phel / #Clojure, convenient for testing stateful things.

30.12.2024 14:38 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

Profile created.

30.11.2024 16:21 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

@jasalt is following 16 prominent accounts