
Use the parallel processing power of your GPU to simulate a simple chemical system that exhibits emergent behaviors

A community to discuss programming and or related topics
Mitosis in the Gray-Scott model : an introduction to writing shader-based chemical simulations
Use the parallel processing power of your GPU to simulate a simple chemical system that exhibits emergent behaviors
cross-posted from: https://lemmy.pierre-couy.fr/post/678825
Hi ! I've been working on this article for the past few days. It would mean a lot to me if you could provide some feedback.
It is about implementing a physico-chemical simulation as my first attempt to write a shader. The code is surprisingly simple and short (less than 100 lines). The "Prerequisite" and "Update rules" sections, however, may need some adjustments to make them clearer.
Thanks for reading
"JavaScript Haikus - Tiny Code Adventures" by Frank Force
Click to view this content.
Making of Q1K3, a tiny FPS for js13k
Click to view this content.
Open Source 'Eclipse Theia IDE' Exits Beta to Challenge Visual Studio Code
Some seven years in the making, the Eclipse Foundation's Theia IDE project is now generally available, emerging from beta to challenge Microsoft's similar Visual Studio Code editor, with which it shares much tech.
Scientists Find Optimal Balance of Data Storage and Time
Seventy years after the invention of a data structure called a hash table, theoreticians have found the most efficient possible configuration for it.
SQL Question
Hi!
Let's say I have a questions system and the writers of questions always add at least one but maybe more clues for the question.
Would it be better design to have each question have its own table for clues, even though the vast majority of the time the questions only have 1 clue? (ie is it inefficient to create like a zillion tables for a database?) Or would it be better to have a "clues" table, where each clue stores which question ID the clue applies to? (ie are later queries linear in time based on the amount of clues in the table which would be bad?)
Thanks for your help! And I'd appreciate motivations for the answers too so I will understand better.
Has anyone used Github Copilot? Do you find it helpful?
I’ve tried using ChatGPT for some basic coding syntax/logic, and I’ve had mixed results. Usually not so great.
Wondering if it had access to the whole code base and could better understand the context of the code if it would be better.
What’s your experience been like?
Theory forum
Imagine a forum where each post is piece of theory. Users can create and rate connections between posts. There are three types of connection: introductory, elaborative and contra.
How could one easily implement such a forum (as someone who knows nothing about web-dev)? Would lemmy work? All you'd need is three bot-generated pinned top-level comments under each post, one for each type of connection, then users submit connections in the form of links as replies to those top-level comments. Though it would be nice to be able to sort those replies by rating. Does Lemmy fulfill any/all of those requirements? Any other software that could fit the bill?
How long would it take someone to be proficient at coding/programming if learning from scratch?
I have absolutely zero background or knowledge on coding/programming/IT/software/computing etc, but I've recently taken an interest in it. How much time, effort and resources would I need to sink into it in order to become at least borderline competent?
Is there any good organisational freeware for quickly turning out phone banking lists?
I'm a membership organiser with a community union and spend an inordinate amount of my time prepping excel spreadsheets with membership data. Is there anything out there I could use to split the entire data set into sheets with tables of, say, 20 members each, their contact details, plus boxes for whether or not they can attend this or that event?
Anyone here got experience with the Chinese RISC-V chips?
I've been thinking about acquiring one of these for a while, because RISC-V sounds quite interesting, but I think I should ask about it here before I spend money on this stuff and the shipping...
First of all, how well does it run Linux? It appears that MangoPi uses their own distro, so I could imagine that a standard one wouldn't run... I don't know about the Sipeed chips. Did anyone here try?
Secondly, which specific model do you have? It's a little hard to get an overview of what's currently available (MangoPi and Sipeed are the only two that I know), I would appreciate a list or just the name of the one you have.
And, in general, what's it like? Does the shipping take long? What are you using it for?
ML/communist opinions on P2P file sharing?
Aside from the proverbial legal use of "linux ISOs", file sharing software is best known for the facilitation of digital piracy. I'm not gonna lie, as a third world person who grew up in the days of dial-up internet, before YouTube and legal music streaming were even concepts, my cultural horizons would have been much more narrow without P2P software growing up. Radio stations only played (and still play) whatever was popular at that moment, in that place; CDs were expensive, and stores didn't allow you to preview music before purchase other than a few high-charting albums; my family was poor and we were unable to afford video games, and so on.
Piracy via P2P software allowed me to get my hands on a vast amount of music, games, software and movies that I wouldn't have even known about without it. It shaped my life beyond belief, and that's just my personal experience with it. Legal streaming services wouldn't have appeared if the traditional business models of the entertainment indu
Is there a Python exercise list similar to rustlings?
For anyone that doesn't know, rustlings is a "project [which] contains small exercises to get you used to reading and writing Rust code. This includes reading and responding to compiler messages!"
I'm going to help someone with learning Python. After we go through Automate The Boring Stuff With Python, I was hoping we could work through something similar to rustlings, as it's really an incredible set of exercises that helped me immensely.
If there isn't, I might look into creating something similar that follows along with Python 3 tutorial, as that covers a good chunk of the language and would also expect a basic grasp of Python and programming concepts.
Inquiry into educational mathematics freeware
So the other day I was burning time doing a little bit of Spanish practice on the free version of duolingo when I thought to myself "wouldn't it be fantastic if something freely available like this existed that comprehensively taught mathematics up to a university level".
Does something like this exist and if so is it any good? Ideally the software I imagine is totally comprehensive; offering not only tutorials on everything from the absolute fundamentals to advanced topics but also problem generators that allow people to apply the lessons, practice and test their understanding under a wide variety of possible circumstances. Does such freeware exist?
A readily available, approachable and most importantly freely available resource of this kind could be a huge boon for spreading mathematical education all over the world.
All EFF’d Up - Yasha Levine
The lords of the internet care very little about user privacy—what they want to preserve, is their own commercial license against government regulation of any kind.
When previous internet privacy scandals hit—from the Apple dispute with the FBI to Edward Snowden’s NSA leaks and even to obscure data gathering provisions in anti-piracy laws—groups like the Electronic Frontier Foundation had been out on the cyber-barricades, piling up the e-tires and setting them ablaze with memes and gifs. They organized online protests, website blackouts, digital strikes, cyber pickets, and even physical rallies: you name it, they did it all. And that made sense. Because EFF’s leaders, together with their digital-rights comrades shoring up the bulwarks of civil society as we know it, were supposed to be go-to defenders of the people on the internet. They were professional activists, attorneys, and technologists who did the hard, thankless work of keeping the internet free and democratic.
And yet something broke down with the Facebook-Cambridge Analytica scandal. On paper, this controversy looked to be a dream organizing opportunity for EFF and its allies. Her
Briar is a messaging app designed for activists, journalists, and anyone else who needs a safe, easy and robust way to communicate. Unlike traditional messaging apps, Briar doesn’t rely on a central server – messages are synchronized directly between the users’ devices. If the Internet’s down, Briar...
Briar is a messaging app designed for activists, journalists, and anyone else who needs a safe, easy and robust way to communicate. Unlike traditional messaging apps, Briar doesn’t rely on a central server - messages are synchronized directly between the users’ devices. If the internet’s down, Briar can sync via Bluetooth or Wi-Fi, keeping the information flowing in a crisis. If the internet’s up, Briar can sync via the Tor network, protecting users and their relationships from surveillance.
I regret to inform you that Notepad++ has betrayed the workers
but seriously what text editor do y'all use?