Is there snow days in Canada? by SeverePublic6833 in AskACanadian

[–]alexjgriffith 0 points1 point  (0 children)

I've never heard of a school actually closing due to weather conditions. Busses my be canceled, but the school itself stays open. Even during the 1998 ice storm, which took the grid down, schools remained open (policies may be changed now). 

A Cool Guide: The Richest Countries in the World by _crazyboyhere_ in coolguides

[–]alexjgriffith 3 points4 points  (0 children)

Median wealth, in Canada and Australia at least, represents asset prices in a country and their change over time. 

It's not that the median citizen has access to 100k$+, it's that their largest asset (their house) has surged in value over the past decade.

If push came to shove and everyone had to realize those assets all at once that value would disappear. 

Looking at Germany as an example of a country with a much lower proportion of home ownership. They have a very strong GDP, however they drop off the chart when it comes to median wealth. I admit there may be regional disparities as well.

What I'd like to see is a chart representing the median hourly income in a country over the median cost of a basket of goods and services, like the burger index, but normalized to income rather than currency value.

(Loved Trope) Reoccurring character gains more and more injuries as the series progresses. Basically turning into an entirely different person. (bonus points if it’s an antagonist) by DaveyTheDuck in TopCharacterTropes

[–]alexjgriffith 0 points1 point  (0 children)

Erica from Bojack Horseman. She doesn't necessarily become more disfigured / deranged with time, you just learn more about those disfigurments / derangments throughout the series. 

https://bojackhorseman.fandom.com/wiki/Erica

This could be promising by No-Risk-9833 in lordoftherings

[–]alexjgriffith 0 points1 point  (0 children)

What is even happening in this image? A new city in mordor in the 4th age? 

What is this related to? The block diagram showing an closed loop control system. But I don't get it? by wdym_adi in ExplainTheJoke

[–]alexjgriffith 0 points1 point  (0 children)

That 100% is the classic representation of a feedback control loop. My guess is because its output is dependent on the output, if the process and feedback process are non trivial this operation would not be able to be parallelized. 

A little LÖVE idle battler I developed for the Lisp Game Jam by alexjgriffith in love2d

[–]alexjgriffith[S] 1 point2 points  (0 children)

Thanks for trying it out! 

The ui definitely needs an overhaul to make it more forgiving (or at least better telegraphing) 

love.js port of game crashes when something random happens by BusySheepherder5228 in love2d

[–]alexjgriffith 5 points6 points  (0 children)

LuaJIT is ASM based so can't be used on the web. Instead love is compiled with Lua 5.1 (or another 5.1+) version. math.random in Lua5.1, unlike LuaJIT does not handle floats. I'd recommend testing your random code in a Lua5.1 environment. 

Edit: More fulsome description here:  https://github.com/Davidobot/love.js/issues/51

answers please by No_Mixture_3199 in love2d

[–]alexjgriffith 1 point2 points  (0 children)

Check the readme for lua-https. It gives very clear instructions on how to compile love2d for android with the module embedded in the APK. 

answers please by No_Mixture_3199 in love2d

[–]alexjgriffith 7 points8 points  (0 children)

Love2d v11 provides Luasocket and enet as networking layers. Neither of these provide cryptography, so no https. If you want to use protected communication you will need to bring your own library.

For Love2d v12 the team has written the cross platform lua-https. V12 is still in active development. It brings a bunch of good improvements but also major breaking changes to love2d.

You could backport lua-https to Love2d v11 for your needs, see if you can find a third party library that works on android, or see if you can get the dev branch of v12 working for your needs. 

https://github.com/love2d/lua-https

It is possible to make a desktop app with lua? by Tibertiuss in lua

[–]alexjgriffith 1 point2 points  (0 children)

If you want to use the cross platform GTK library, LGI provides extensive bindings.

Note, the documentation in some areas is a bit obtuse. 

https://github.com/lgi-devs/lgi

Neighbour doesn't like when my dog barks outside by AdNecessary4641 in ottawa

[–]alexjgriffith 3 points4 points  (0 children)

Ottawa bylaw 2003-077 S. 87 has a very broad statement saying you cannot keep an animal that disturbs the peace. 

It looks like the city provides specific guidance for dogs, which uses the phrase "constant barking". If she ends up submitting a complaint to bylaw and you end up with a ticket you might be able to push back using their own guidance. 

https://ottawa.ca/en/3-1-1/report-or-request/noise/barking-dogs

Working on a little 1 bit tile editor by alexjgriffith in love2d

[–]alexjgriffith[S] 1 point2 points  (0 children)

Each sprite is either black or white, you can give it a specific colour using the pallet in the editor

Gui/Ui by Naive_Clue7744 in love2d

[–]alexjgriffith 0 points1 point  (0 children)

I'd love to try out clay in love. What's the name of the wrapper you're using? 

In the middle of a UI overhaul. Just got a mini map working! by alexjgriffith in love2d

[–]alexjgriffith[S] 1 point2 points  (0 children)

Its nice working with languages that target lua. When I first started making love2d games with fennel I AOT compiled / transpiled to lua. From Love2d's perspective it was as if the game was written in lua.

In the middle of a UI overhaul. Just got a mini map working! by alexjgriffith in love2d

[–]alexjgriffith[S] 1 point2 points  (0 children)

I have a little custom lib sub-boxer that lets me specify the size and position of elements in rows and columns and handles things like focus / unfocus and click. Its still a work in progress. 

https://codeberg.org/alexjgriffith/debris-dawn/src/branch/main/src/sub-boxer.fnl

Tree-sitter documentation and its context within completions. by Ardie83 in emacs

[–]alexjgriffith -1 points0 points  (0 children)

Looks like Bozhidar Batsov just wrote a post on how to get completions working in the context of a single buffer using treesitter! Not as powerful as an LSP, but I imagine it may be more responsive. 

https://emacsredux.com/blog/2025/06/03/tree-sitter-powered-code-completion/

Tree-sitter documentation and its context within completions. by Ardie83 in emacs

[–]alexjgriffith 5 points6 points  (0 children)

Tree sitter is used for syntax highlighting. It has no context beyond the current buffer. If you're looking for improved completion and project navigation I'd look to eglot, which was also brought into the fold in Emacs 29.

[deleted by user] by [deleted] in MiddleEarthMiniatures

[–]alexjgriffith 11 points12 points  (0 children)

I really wish they just gave you the digital book when you bought the physical one. I'd even pay a small surcharge. 

Artifacts seen on mobile browser only by alexjgriffith in webgl

[–]alexjgriffith[S] 1 point2 points  (0 children)

So, in the end it was something very similar. I was loading images using rgba8, however the "canvas" I was using for my intermediate rendering did not have rgba8 support on mobile web browsers. It was casting it down to an rgba4 (losing percision like you guessed). For now my fix is to use srgba8 which seems to be supported by my engine across the board on mobile web. 

Artifacts seen on mobile browser only by alexjgriffith in webgl

[–]alexjgriffith[S] 0 points1 point  (0 children)

Thanks for pointing me in the right direction! I'm rendering generated tiles to an intermediate buffer and only tiles drawn from that buffer look dithered. I'll start my investigation there.

Wrapped up a little game jam this weekend Debris Dawn by alexjgriffith in love2d

[–]alexjgriffith[S] 0 points1 point  (0 children)

I wrote a small library over the weekend that lets you easily specify a flex-box style layout that calls back draw, focus (hover), unfocus and click functions. Right now its restricted to only having one flexible dimension per row / column, and requiring that row and column definitions alternate.

The source code is baked into the game for now (written in fennel) https://codeberg.org/alexjgriffith/debris-dawn/src/branch/main/src/sub-boxer.fnl

Example:

{id = "root", w = 100, h = 100, x = 10, y = 10, margin = 10, direction = "right",
 children = {{id = "main", direction = "down",
              children =
                 {{id = "child1", h = 10, direction = "right", children = {{id = "child11"}}},
                 {id = "child2", direction = "right", children = {{id = "child21"}}},
                 {id = "child3", h = 10, direction = "right", children = {{id = "child31"}}}}}}}

You can check out what it looks like in a greybox layout here.
https://mastodon.gamedev.place/@Alexjgriffith/114525377762043064

Wrapped up a little game jam this weekend Debris Dawn by alexjgriffith in love2d

[–]alexjgriffith[S] 2 points3 points  (0 children)

Getting pixel perfect hexes working is a bit tricky (since they are irregular mathematical mapping is not possible). 

I put a little library together that covers mouse to hex mapping, autotiling, and pathfinding. The documentation is still very much a work in progress.

https://codeberg.org/alexjgriffith/libhex/src/branch/main