alcinnz
alcinnz boosted

I added hot reloading of C++ gameplay code to my game :D

This is possible because "engine" code and "gameplay" code is split into different shared libraries. So when you hit F5, it compiles a new shared library for the gameplay code and loads the new one (as well as reloading all the assets etc).

#cplusplus#gamedev #programming

Screen recording where I demonstrate changing gameplay source code and assets and hot reloading the game
Screen recording where I demonstrate changing gameplay source code and assets and hot reloading the game

From: blenderdumbass . org

This article is published on a website which is powered by BDServer. And I'm trying to make this website support ActivityPub, so you could for example, subscribe to me from your Mastodon account. Yet it is easier said than done.

If you have any experience with ActivityPub, web-development or Python, please consider helping me. We have BDServ...

Read: https://blenderdumbass.org/articles/please_help_me_with_activity_pub

#activitypub #fediverse #mastodon #bdserver #python #programming #webdev #federation #API

🧠💻 A team from the Mind, Brain and Behavior Research Center (CIMCYC, cimcyc.bsky.social) published a #programming guide aimed at students in #psychology and #cognitive #neuroscience. This evolving set of #tutorials offers a curated collection of conceptual reflections, practical examples, and methodological recommendations. The material is available in #Python, #RStats, and #MATLAB.

🌍 https://wobc.github.io/programming_book/
#CognitiveScience #OpenScience

alcinnz
alcinnz boosted

Would be nice that C# compiler handled this case:

float f = 2.5;

I get the idea of protecting against precision loss. But why do you fail to compile for values that can be determined at compile time to not have precision loss?
It's no longer 2005, it's 2025 and changing this will only break the code that does not compile (like someones test suites might have such), which IMO is fine.

#programming #CSharp

alcinnz
alcinnz boosted

Every time I get into doing some code, I get sucked into refactoring another part of Inkscape's ancient past.

The problem is; I have an artists eye for code design and ugly, overly complex, under-tested and worse than all of those asymmetric code makes me all itchy.

Tonight's refactoring: No, version strings should not be parsed and saved by some weird third party function.

#inkscape #programming#codeQuality

alcinnz
alcinnz boosted
#article #ontology #programming #formal #lisp #concrete

https://screwlisp.small-web.org/lispgames/plant-insect-bird-ontology/

Plant Insect Bird practical formal ontology with Leonardo calculus

I revisit my #lispgames #gamejam #gamedev. In this article I create a formal ontology to be a vehicle for my concrete game redux of the jam (which had been lacklustre if technically interesting. Let's be technically interesting and have more lustre this time round.

Thoughts, commentary, ontological guidance gentle and stern if you will please.

A brightfield emacs partial screenshot showing a fragment of the low-level source of the formal ontology being created

YMMV if you keep reading.
---------------------------------------------------------
-- organisms-kb

[: type kb-index]
[: latest-written "2025-07-13/03:04.+12"]
[: contents <organisms-kb organisms-kb-properties (location: organisms) (location: plants) (location: insects) (location: birds) (location: sensors) (location: world)>]
[: preferred-directory "Organisms/"]
[: nullvalued {purpose namephrase requires mustload removed-entities uses-hostcommands codefiles profile overlay-on overlay-types overlay-own hostinfo indivinfo onto-amend leos-use dont-display sections local-ents latest-archived-entity archivepoint-sequence attrib-converted latest-rearchived}]

---------------------------------------------------------
-- organisms-kb-properties

[: type loadtime-operation]
[: latest-rearchived nil]

(progn (setf (get 'organisms-kb 'init-startup-proc) #'(lambda nil nil))
 (setf (get 'organisms-kb 'end-startup-proc) #'(lambda nil nil))
 (setf (get 'organisms-kb 'exit-proc) #'(lambda nil nil)))
 
---------------------------------------------------------
-- (location: organisms)
A brightfield emacs partial screenshot showing a fragment of the low-level source of the formal ontology being created YMMV if you keep reading. --------------------------------------------------------- -- organisms-kb [: type kb-index] [: latest-written "2025-07-13/03:04.+12"] [: contents <organisms-kb organisms-kb-properties (location: organisms) (location: plants) (location: insects) (location: birds) (location: sensors) (location: world)>] [: preferred-directory "Organisms/"] [: nullvalued {purpose namephrase requires mustload removed-entities uses-hostcommands codefiles profile overlay-on overlay-types overlay-own hostinfo indivinfo onto-amend leos-use dont-display sections local-ents latest-archived-entity archivepoint-sequence attrib-converted latest-rearchived}] --------------------------------------------------------- -- organisms-kb-properties [: type loadtime-operation] [: latest-rearchived nil] (progn (setf (get 'organisms-kb 'init-startup-proc) #'(lambda nil nil)) (setf (get 'organisms-kb 'end-startup-proc) #'(lambda nil nil)) (setf (get 'organisms-kb 'exit-proc) #'(lambda nil nil))) --------------------------------------------------------- -- (location: organisms)
alcinnz
alcinnz boosted

Fire UX team in time, 2025 edition.

Using Android Studio (2024.2.2) after a while.
So I have "Run" button at the top and another one with just different color in sidebar. Both tooltip "Run", only differ in shortcut.
Difference?
First one runs the project. Second one opens the Run pane at the bottom, which happens to have yet another button to run the project.
You had good old school UI two years ago!

#programming#ux #Android #rant

alcinnz
alcinnz boosted

API docs as comments in comments in code look like a nice idea.
Until someone actually writes a comprehensive documentation in there: several paragraphs with code examples. When doc comments take most of the file and gets difficult to find the code, I'm no longer sure it's a good idea to have the two in the same place.

#programming

alcinnz
alcinnz boosted

Qt’s New Bridging Technology - Looking Back to Move Forward https://www.qt.io/blog/about-the-new-qt-bridging-technology

«With the new bridging technology, Qt aims to provide not only a set of initial integrations for five pre-selected languages: C#, Kotlin/Java, Python, Rust, and Swift, but also to open and document a few private QML APIs to allow anyone to build additional language integrations in the future».

#programming #qt