TIL, Devel::REPL

$ apt-get install libdevel-repl-perl
$ re.pl
$ my $foo="bar";
bar
$ "foo $foo";
foo bar
$ print "foo $foo\n";
foo bar
1

#perl #repl

Ha en REPL i produktion!
Klart du ska kunna klistra in kod i servern medan den körs! @equeroot förklarar en REPLs diskreta charm. #podcast #repl #elixir #erlang #beam

Ett utdrag ur Kodsnack 671, lyssna där poddar finns eller på kodsnack.se!

🌘 我鍾情的 REPL:以程式碼自行測試的進化
➤ 將您的原始碼檔案變成活生生的測試環境
https://ianthehenry.com/posts/my-kind-of-repl/
作者分享了一種獨特的軟體開發工作流程,他稱之為「讀-求值-修補迴圈」(read-eval-patch loop)。這種方法將原始程式碼檔案本身視為持久化的 REPL (Read-Eval-Print Loop) 環境。開發者在檔案中撰寫程式碼片段或運算式,然後透過編輯器的快捷鍵觸發執行,執行結果會直接回寫並嵌入原始碼檔案中,緊鄰著原始運算式。這種機制不僅僅是個方便的 REPL,更進一步將這些「REPL 執行緒」轉化為自動化的測試案例。當程式碼被修改後,再次執行這些先前儲存的運算式,若輸出結果與先前不同,就能即時發現潛在問題。此方法大幅簡化了測試案例的撰寫過程,因為許多測試正是開發者在除錯時自然會執行的運算式。作者以多種程式語言(如 Janet、OCaml、Rust)的範例,展示了這種「預期測試」(expect test) 的概念,強調其核心價值在於無需預
#軟體開發 #測試 #REPL #程式設計
My Kind of REPL

I want to tell you about an idea that has had a huge influence on the way that I write software. And I mean that in the literal sense: it’s changed the way that I write software; it’s re-shaped my development workflow. The idea is this: you can write programs that modify themselves. And I don’t mean macros or metaprogramming or anything fancy like that. I mean that you can write programs that edit their own source code.

The whole idea of a #TypeScript #REPL (that some person got Microsoft whatever prize for) is so absurd. Like, you take an interactive and REPL-friendly language (#JavaScript,) turn it into something static and compile-only… and then realize that you need a REPL for it. Like, you already have a REPL, why in the world not use it directly?

Maybe a good opportunity to illustrate the purpose of one of the more uncommon packages in #ThingUmbrella: The https://thi.ng/hex package provides hexadecimal formatters for a variety of word sizes (4-64 bits) and also a customizable hex dump facility, which is super useful for analyzing, debugging & reverse engineering binary data or file formats from within a NodeJS REPL session (my main dev env & workflow), but of course can also be used in other situations... This has already saved me countless of times...

#ThingUmbrella #REPL #Debugging #TypeScript #JavaScript

Advantages of #Eliza over #Modal:

• Wildcard pattern (0) and counted matches (1-* matching the respective number of words)
• Randomness built in
• I/O unnecessary—it’s implied to run as #REPL already

Disadvantages:

• No way to match sub-symbol units (characters)—will be fixed in my re-implementation
• Classic implementation (probably?) has no way to match non-linear / tree data (I’ll fix that too)
• Rigid MEMORY system (not sure what to do with it yet)

un article de @treyhunner expliquant comment personnaliser votre #REPL si vous utiliser #Python 3.13 :
- le tutoriel https://treyhunner.com/2025/10/handy-python-repl-modifications/
- le repo organisant les personnalisations : https://github.com/treyhunner/pyrepl-hacks

Étapes
- créer une variable d'environnement PYTHONSTARTUP pointant vers un fichier de personnalisation
- créer le fichier de personnalisation : raccourcis clavier, colorisation, etc.

Handy Python REPL Modifications

I find myself in the Python REPL a lot. I open up the REPL to play with an idea, to use Python as a calculator or quick and dirty text parsing tool, …

WebREPL и uPyLoader: Выбираем способ беспроводного управления ESP

Практикуемся создавать и загружать постоянные инструкции в виде файлов, которые ESP устройство (микроконтроллер) будет выполнять автономно с помощью: uPyLoader — файловый менеджер и редактор в одном флаконе, как блокнот с закладками: и файлы видно, и поправить можно. WebREPL — удаленное управление по Wi-Fi без проводов, как пульт управления по воздуху: управляй устройством, изменяй, корректируй и добавляй инструкции (файлы), вообщем, проводи отладку без подключения кабеля. Разберем: - Как работать с файлами на устройстве с помощью uPyLoader . - Как настроить беспроводное управление через WebREPL . - Как настроить Wi-Fi в двух режимах: точка доступа и клиент. Только практические шаги с объяснением, которые вы сможете повторить. Приступаем

https://habr.com/ru/articles/961308/

#uPyLoader #WebREPL #esp #esp32 #esp8266 #micropython #режим_точки_доступа #repl

WebREPL и uPyLoader: Выбираем способ беспроводного управления ESP

Сгенерирована ИИ В прошлой статье мы превращали безмолвную плату в говорящее на Python устройство. Теперь научим его не просто выполнять команды, а самостоятельно работать по заданным инструкциям...

Хабр

The surging popularity of the #REPL command-line interface with modern #programming languages is perfectly timed, given that kids these days come into the industry with high proficiency of typing in prompts into the #LLM.

Of course, these kids invariably feel jilted by the REPL prompt, when the interpreter demands clean, syntactic code, not vague, aspirational English.🤣

What I'd really like is a sort of graphical REPL where I can use data adapters to hoover up data from whatever sources I wanted, then use the REPL to fold, spindle, and mutilate the data to my heart's content. This feels like something LISP would be all about.

#lisp
#repl