#Programming
(Cont'd)
Oh. Idk if my poll question about AI, AGI and ML is worded most effectively. But would love it if you'd retoot. (Top of thread.)
For the record... I dont trust these AI companies out here to protect humanity or have our best interests in mind. But that's something I could possibly discuss in comics or zines.
Just... gauging knowledge before I run my mouf talking about ish.
(Thank you!)
Another fun episode of Programming By Stealth with @bbusschots where we learn about filter chaining, operators, and functions in jq
CCATP #781 — Bart Busschots on PBS jq7 of X — jq: Querying JSON with `jq` https://www.podfeet.com/blog/2023/12/ccatp-781/
As part of tackling the undo system I decided to spend a little time building a debug view that shows the undo buffer on-screen.
Now to actually ... do something with that buffer.

Murder is a pixel art ECS game engine in C#
https://github.com/isadorasophia/murder
Discussions: https://discu.eu/q/https://github.com/isadorasophia/murder
cljs-react-devtools :: React DevTools for ClojureScript wrappers
https://github.com/roman01la/cljs-react-devtools
Discussions: https://discu.eu/q/https://github.com/roman01la/cljs-react-devtools
Getting Amazonka S3 to work with localstack
https://magnus.therning.org/2023-12-09-getting-amazonka-s3-to-work-with-localstack.html
Discussions: https://discu.eu/q/https://magnus.therning.org/2023-12-09-getting-amazonka-s3-to-work-with-localstack.html
Gooey: Turn almost any Python command line program into a full GUI application
https://github.com/chriskiehl/Gooey
Discussions: https://discu.eu/q/https://github.com/chriskiehl/Gooey
"Go Changes" talk at GopherCon 2023
https://www.youtube.com/watch?v=BNmxtp26I5s
Discussions: https://discu.eu/q/https://www.youtube.com/watch?v=BNmxtp26I5s
I have a new blog post: HELLO in the Pikachu Programming Language
at https://edward.delaporte.us/pikachu/

"Energy is the key" [in programming]
Programming a 144-computer Chip to Minimize Power
Chuck Moore discusses what it takes to program a 144-core asynchronous chip that consumes only 7 pJ/inst, the idle cores taking just 100 nW while the active ones need 4mW running at 666 Mips: tight coding to minimize the number of instructions executed, reducing instruction fetches, transistor switching, and duty cycle.
I've completed "Cube Conundrum" - Day 2 - Advent of Code 2023 #AdventOfCode
Check my solutions at: https://github.com/cdalvaro/advent-of-code-2023
#Ruby #AdventOfCode #Puzzle #Challenge #Programming #Coding #CodingChallenge
Q: How do I learn Django?
A: Skip the books. Django is not something you learn by solving theoretical puzzles. It is a framework meant for solving real needs. The best way to learn it is to concentrate on a small business idea, and jump right into it. Understanding the business and product needs will drive the rest of the process. The more you intertwine Django’s concepts with real world needs, the better.
Sinatra Webapp for Viewing FB Marketplace Prices
https://marketscape.herokuapp.com/
Discussions: https://discu.eu/q/https://marketscape.herokuapp.com/
“@racketlang just exceeded 45,000 commits!”(@sorawee_p) on X
https://x.com/sorawee_p/status/1733234956368024057?s=46&t=WFP0L9LfXkITwVFL61zRDQ
Discussions: https://discu.eu/q/https://x.com/sorawee_p/status/1733234956368024057?s=46&t=WFP0L9LfXkITwVFL61zRDQ
Advent of Code in C++ Template Metaprogramming
https://blog.nelhage.com/post/advent-of-templates/
Discussions: https://discu.eu/q/https://blog.nelhage.com/post/advent-of-templates/
uHTTP: Pythonic web development
https://github.com/0x67757300/uHTTP
Discussions: https://discu.eu/q/https://github.com/0x67757300/uHTTP
A simple signal generator written in Go
https://github.com/ubavic/wave
Discussions: https://discu.eu/q/https://github.com/ubavic/wave
Linus on Rust in the Linux kernel (December 2023)
https://www.youtube.com/watch?t=5m36s&v=OvuEYtkOH88
Discussions: https://discu.eu/q/https://www.youtube.com/watch?t=5m36s&v=OvuEYtkOH88
A Game Framework in BQN on this episode of the ArrayCast
https://www.arraycast.com/episodes/episode68-brian-ellingsgaard
Discussions: https://discu.eu/q/https://www.arraycast.com/episodes/episode68-brian-ellingsgaard
An introduction to Eloquent’s internals
Discussions: https://discu.eu/q/https://youtu.be/lzPUmiyVENk
Lenses and Reflection make light work of Kotlin Data Classes
Discussions: https://discu.eu/q/https://youtu.be/hTLUELJDaec
#gamedev #programming
omg I just finished a top-to-bottom upgrade of my sector map UI to utilize the new scene-and-layer framework, input changes, and map layers.
Architecture looks a little something like this now:
Scene
- Layers
-- Input
-- Map
--- MapLayers
I've been trying to write some c# code to send inputs to vJoy.
1. I have no idea what I'm doing
2. The SDK may be broken (unlikely)
3. I'm just doing something wrong (likely)
#csharp #programming #Coding #ihavenoideawhathashtagstouseforthis
📆 Day 9 of Advent of Code 2023 is here. Today, we are predicting the next value in a histogram.
📖 Today was all about getting through the long-winded description.
#cpp #cplusplus #coding #programming #dailybiteofcpp #adventofcode
Spotify's shuffle algorithm feels more random, even if the shuffling does not yield a truly randomized ordering of songs.
They did this because their original algorithm that truly randomized the order of the songs didn't quite feel random to listeners, and this was due to two songs from the same artist playing back-to-back, giving the illusion that the playlist has not truly shuffled. It just does not feel random to them.
Article: "Scrambling Eggs for Spotify with Knuth's Fibonacci Hashing"



I always thought that doctests were an evolution of literate programming pioneered by Donald Knuth. However, reading https://en.wikipedia.org/wiki/Literate_programming again, I now see that it's explicitly called out that literate programming is about the ability to form a program from a web of smaller pieces. Importantly, this web does not have to follow the structure of the finished program.
I have not actually tried to do #literate #programming — is there anybody here who have experience with it?
#ScreenshotSaturday this blueprint validation framework is starting to look pretty slick 🤩
#GameDev #UnrealDev #UnrealEngine #Blueprint #Programming

#golang #programming
Hum. How would I "locate" a SQL schema file inside a go test function, so I can apply it to an in-memory-database (sqlite)?
I.e. can I always assume the CWD of the test is the package in which I also place the sql schema file?
And now going to get ChatGPT to write this in BASIC.
https://youtu.be/QPZ0pIK_wsc?si=b25NZpGiWLws-f2k
#programming #coding
Slashdot: Go Programmers Surveyed: Most Use Linux or MacOS https://developers.slashdot.org/story/23/12/09/0445214/go-programmers-surveyed-most-use-linux-or-macos?utm_source=rss1.0mainlinkanon&utm_medium=feed #Tech #slashdot #Technology #programming
Go Programmers Surveyed: Most Use Linux or MacOS - The Go team conducted a survey of Go Developers in August — and has just released ... - https://developers.slashdot.org/story/23/12/09/0445214/go-programmers-surveyed-most-use-linux-or-macos?utm_source=rss1.0mainlinkanon&utm_medium=feed #programming
Wow. #AdventOfCode Day 9 was shockingly easy. Day 8 wasn't that hard, either, so I'm worried that Day 10 is going to be a serious ass-kicker.
What's a good tutorial or resource I can follow to learn myself some Rust by giving it max 2h a week?
Edit: if you have tips to get started with a vim setup I'd love them as well (using ALE for everything lint/lsp)
Hooboy, I thought authentication documentation was hard to come by, but I just started looking into cross platform image processing with DotNet. I've settled on Magick . Net (ImageMagick wrapper) as that actually has some documentation, hasn't been deprecated, and is being actively maintained.
basilisp-lang/basilisp: A Clojure-compatible(-ish) Lisp dialect targeting Python 3.8+
https://github.com/basilisp-lang/basilisp
Discussions: https://discu.eu/q/https://github.com/basilisp-lang/basilisp
An Advanced Priority Scheduler for Coroutines
https://www.modernescpp.com/index.php/an-advanced-priority-scheduler-for-coroutines/
Discussions: https://discu.eu/q/https://www.modernescpp.com/index.php/an-advanced-priority-scheduler-for-coroutines/
Memray: Python memory profiler
https://bloomberg.github.io/memray/index.html
Discussions: https://discu.eu/q/https://bloomberg.github.io/memray/index.html
How to configure NATS JetStream Streams
Discussions: https://discu.eu/q/https://youtu.be/ChSVWDW-874
torrents merger for qBittorrent
https://github.com/tatref/qbittorrent-merger/tree/master
Discussions: https://discu.eu/q/https://github.com/tatref/qbittorrent-merger/tree/master
This is impressive, but why use #BBCBASIC for writing programs for modern systems? 🤔
“BBC BASIC For SDL 2.0”, R. T. Russell (https://www.bbcbasic.co.uk/bbcsdl/index.html).
I tested Lazarus and two Delphi versions with a simplest possible app. Results are interesting: from few MB to KB :)
Read full at https://smol.p1x.in/delphi.html



@eniko *David Attenborough voice
"And here we can see a cpp compiler in the wild mangling a rare, carefully selected function name. It will leave behind nothing but an intelligible carcass. It's family will not even be able to unambiguously identify their former member."
#introduction Hello! My name is Russell, but I tend to go by Russ!
I'm a software dev (I tend to prefer backend or possibly mobile development) who tries to dabble in what tech offers these days - I might even be one of those "tech enthusiasts"
I also have always been a fan of #opensource and enjoy self-hosting stuff, even if I don't have an immediate need for that particular "thing"
Generally I'm an open book, so feel free to ask me whatever you'd like! #programming #linux
Even if you're not into Lisp, the level of discussion on this topics is just a really nice read.
#lisp #gc #typing #programming
Why are Common Lisp arrays this weird? https://www.reddit.com/r/lisp/comments/18dr7so/why_are_common_lisp_arrays_this_weird/
Debugging. The game where you are the detective, the victim, and the criminal at the same time. You don’t know where the crime took place or what it was, but you're pretty sure there was one.
[AskJS] Kicking a dead horse - TS vs JS
https://open.spotify.com/episode/2y6jFXlFPoWq3BNz8eq2jz?si=be893170d39c4f1e
Discussions: https://discu.eu/q/https://open.spotify.com/episode/2y6jFXlFPoWq3BNz8eq2jz?si=be893170d39c4f1e
How respond_to Method Works in Rails
https://www.writesoftwarewell.com/how-respond_to-method-works-rails/
Discussions: https://discu.eu/q/https://www.writesoftwarewell.com/how-respond_to-method-works-rails/
Francis HTMX - Easy way to build HTMX projects
https://htmx.org/examples/animations/#swapping
Discussions: https://discu.eu/q/https://htmx.org/examples/animations/%23swapping
How to use re-frame with Biff
https://biffweb.com/p/how-to-use-reframe-with-biff/
Discussions: https://discu.eu/q/https://biffweb.com/p/how-to-use-reframe-with-biff/
`for await` and the battle of buffered streams
https://tmandry.gitlab.io/blog/posts/for-await-buffered-streams/
Discussions: https://discu.eu/q/https://tmandry.gitlab.io/blog/posts/for-await-buffered-streams/
Playing with my interpreter that I'm working on.
"Why is the garbage collector not freeing this allocation? It should. It's not referenced anywhere."
Dear reader, I fucked up writing a doubly-linked list insert function. I am a professional software engineer. I've done this professionally for 25 years and for fun for longer.
Due to a stupid mistake I made very early in the project, I had to change a Class name, code file name and all corresponding references and test cases. Boy, what a chore.
Visual Studio Python extension offered to refactor with new Class name but only changed few references, making the task worse 🙁
Anyway I’m done with it and ready to enjoy the weekend with some NBA and NFL. #programming #python
In this post, we’ll take a look at how to customize the macOS about panel for a SwiftUI app, to let us show custom content.
#macOS #SwiftUI #Swift #Programming
https://danielsaidi.com/blog/2023/11/28/how-to-customize-the-macos-about-panel-in-swiftui

Biden Administration Announces Funding For Rail Projects
https://california18.com/biden-administration-announces-funding-for-rail-projects/11899652023/
Discussions: https://discu.eu/q/https://california18.com/biden-administration-announces-funding-for-rail-projects/11899652023/
Announcing Rust 1.74.1 | Rust Blog
https://blog.rust-lang.org/2023/12/07/Rust-1.74.1.html
Discussions: https://discu.eu/q/https://blog.rust-lang.org/2023/12/07/Rust-1.74.1.html
Final version! https://github.com/Kroc/v80/blob/main/src/v80.wla#L417-L527 This took two days to prefect due to my requirements that I have to read the input number one byte at a time, blind, unlike most examples online that assume the digits are already available and valid. This code has a nice waterfall effect of falling through each digit 1-4, gracefully handling variable length hex numbers, even including 3 digit ones! #z80 #asm #programming #RetroComputing
In this post, we’ll take a look at how to customize the macOS menu bar for a SwiftUI app, using SwiftUI tools like CommandMenu and CommandGroup.
#SwiftUI #Swift #Programming #macOS
https://danielsaidi.com/blog/2023/11/22/how-to-customize-the-macos-menu-bar-in-swiftui

Is it possible to improve the refactoring in #VSCode?
I was using #Eclipse nearly 20 years ago now and its Java refactoring was FAR superior to what VS Code has.
It might be a Python vs Java thing, but some of it is simple stuff like "extract variable" extracting _all_ instances in scope, or being able to rearrange function arguments.
Hacking on Ruby Prism with Kevin Newton · Senior-level skills for experienced developers
https://www.hexdevs.com/events/live-hacking-on-ruby-prism/
Discussions: https://discu.eu/q/https://www.hexdevs.com/events/live-hacking-on-ruby-prism/
Visual Studio Code November 2023 Release (version 1.85).
#vscode #programming #javascript #typescript #copilot #githubcopilot #git #productivity
https://code.visualstudio.com/updates/v1_85
I just published a new coding project on github!
This is an early exploration of what I call an “epigenetic algorithm.” It’s inspired by an observation: in living cells, the process of evolution is actively managed by the cell, which itself is an evolved mechanism. Using evolution to optimize evolution seems like a powerful trick, so I’m trying to reproduce it in small-scale AI experiments. I hope to make evolutionary computing more open-ended, more successful in vast search spaces, and less biased by the programmer. In this case, I’m generating cool looking Game of Life simulations, but I hope to find many more practical applications in the future.
I hope folks find this interesting, and I’d love to hear your thoughts and feedback!
Presentation: https://docs.google.com/presentation/d/1ZIYj8Rg4xPHukQ-Glk9_IZTgimEYh5dtWsyXrbkX9Dc/edit?usp=sharing
Code: https://github.com/ngaylinn/epigenetic-gol-v1
Results: https://github.com/ngaylinn/epigenetic-gol-v1-results
#ai #evolution #alife #programming #python #cuda #gameoflife #github
Spicy take: If your software development team is using Prettier, you should set it to indent with tabs, not spaces.
That makes it easy for everyone to set whatever indentation depth they want, and even adjust it if they feel the need. Someone who can pick out a 4-column indent better than 2 will have trouble reading that "indented with 2 spaces" stuff, but tabs let everyone coexist.
#SoftwareDevelopment #coding #programming #webdev #code #Prettier #indentation
Learn Swift and iOS Development on tanaschita.com. Stay up to date with guides and tutorials on topics like SwiftUI, Combine, concurrency with async/await and more.
#Swift #SwiftUI #Programming #SwiftData #Database #macOS #iOS
https://tanaschita.com/

#AdventOfBloggers 8/24 : Stephan Judis!
#100DaysToOffload : 94/100
"One way of describing the history of programming languages over the past 75 years is: They have steadily raised the baseline of what 'normal' programmers can express in their languages." https://v5.chriskrycho.com/journal/wizardry-frontier/
As someone who has “spotty” knowledge, ranging from beginner to intermediate, about #python , can anyone recommend a good training course to fill in all the gaps? I’m thinking about building on my knowledge of Python and getting a better understanding of it. #question #askfedi #programming
Smaller and Safer Clojure Containers: Minimizing the Software Bill of Materials
On inheritance and why it's good Rust doesn't have it
https://www.thecodedmessage.com/posts/oop-3-inheritance/
Discussions: https://discu.eu/q/https://www.thecodedmessage.com/posts/oop-3-inheritance/
I thought I might try blogging some kind of Rust tutorial alongside learning it myself. So anyway here's the first of a series if you wanna follow along. Just a simple Hello World! https://josh.is-cool.dev/2023-12-7-nature-keeps-evolving-rustaceans/
You are never taught how to build quality software
https://www.florianbellmann.com/blog/never-taught-qa
Discussions: https://discu.eu/q/https://www.florianbellmann.com/blog/never-taught-qa
Show HN: Recompyle – A JavaScript developer-friendly console / debugger
Discussions: https://discu.eu/q/https://www.recompyle.com/
PEP 593 is a bit vague on how you’re supposed to actually consume arguments to `Annotated`; here is my proposal.
I know that writing tests is valuable and important, because whenever I don't do it and then backfill them later, I find out something was broken in a subtle and unexpected way. #programming
Is Pluralsight, conference tickets and Safari Books Online still the thing to offer developers in a team for resources to be able to learn things? Are there other alternatives? #dotnet #dev #programming
Animations were the most powerful feature of SwiftUI from day one. You can quickly build fluid animations in SwiftUI. The only downside was how we control animations whenever we need to run multi-step animation or scope the animation to a particular part of the view hierarchy.
#Swift #SwiftUI #Animation #Programming #iOS #macOS
https://swiftwithmajid.com/2023/11/21/scoped-animations-in-swiftui/

Here are valuable resources on #eBPF to guide you from beginner to advanced levels:
- First, watch this #documentary: https://www.youtube.com/watch?v=Wb_vD3XZYOA. This video will motivate you to learn about eBPF.
- Following that, view one of the guests, Liz Rice, from the aforementioned documentary, showcasing the eBPF 'Hello World!' program at https://www.youtube.com/watch?v=uBqRv8bDroc. In brief, eBPF is an in-kernel virtual machine where user space programs can run. In this video, she codes the eBPF hello program in #C, loads it into the #kernel with the assistance of another program written in #Go, and there is much more covered in the video. The presentation slides are accessible at https://speakerdeck.com/lizrice/beginners-guide-to-ebpf-programming-with-go
- Following that, you can delve into one of the reports by Liz Rice herself titled 'What is eBPF?'. The report is available for free download at https://isovalent.com/books/ebpf/. In this insightful document, the author covers topics ranging from understanding the eBPF program, the advantages of eBPF over a #Linux kernel module, the process of crafting user and kernel space code for eBPF programs, attaching an eBPF program to various kernel events, the portability of eBPF programs across kernel versions with CO-RE (compiled once and run everywhere), eBPF's role in the cloud, and an exploration of various eBPF tools.
- I also recommend the second book from the same author, titled 'Learning eBPF', available for free and legally downloadable from https://isovalent.com/books/learning-ebpf/. This practical book covers topics in-depth, featuring a 'Hello World!' program in chapter 3 where both kernel and user space programs are entirely written in C. This provides a comprehensive understanding of what unfolds behind the scenes during eBPF program execution. Additionally, there is a dedicated chapter focusing on eBPF #Programming.
Additional Resources:
- Explore various documentation, talks, tutorials, articles, and blogs about eBPF at https://ebpf.io/what-is-ebpf/#further-reading.
- Liz Rice blog: https://www.lizrice.com/
- Liz Rice LinkedIn: https://www.linkedin.com/in/lizrice/
Show your support for the author (and me 😉) by ordering the physical book online on #Amazon (#India) - https://amzn.to/3GyJ6TW
Everyday performance rules for Ruby on Rails developers
https://www.rorvswild.com/blog/2023/everyday-performance-rules-for-ruby-on-rails-developers
Discussions: https://discu.eu/q/https://www.rorvswild.com/blog/2023/everyday-performance-rules-for-ruby-on-rails-developers
Dump C++ and in Rust you can trust, Five Eyes agencies urge
https://www.theregister.com/2023/12/07/memory_correction_five_eyes/?td=rt-3a
Discussions: https://discu.eu/q/https://www.theregister.com/2023/12/07/memory_correction_five_eyes/?td=rt-3a
Learn how to create reuse styles using ViewModifier.
#Swift #SwiftUI #Programming #iOS #macOS
https://sarunw.com/posts/how-to-create-custom-view-modifier-in-swiftui/

@ploum @drewdevault Hmm... Well, each maintainer needs to do what works for them, of course, but personally the worst experiences I've ever had contributing to open source projects have been the ones that accept patches by email. I've been driven away from multiple projects by the sheer difficulty of understanding changes and following discussions in that workflow.
Some handle it better than others, but still, for me, no email-based workflow approaches the ease of use and clarity of something like #Github or #Gitlab.
It's been a while since I last saw a repo that made me laugh
https://github.com/christina-de-martinez/babel-plugin-glowup-vibes
(Also, check out the issue page for extra fun)
#Programming hot take:
Ruby (over Python)
Just (over Make & others)
PowerShell (over bash, with caveats, and over cmd all day long)
Nushell (over bash & others)
Scoop (over Chocolatey & manual installation)
EditorConfig (over dealing with whitespace conflicts _again_)
Magic in code/APis is not bad. *Excessive* magic is bad.
Magic (aka, "things happen automatically") should be limited, self-evident, transparent, and discoverable. But not verboten.