(#uul7hua) completely untested as i have no remote way of running mu code from Vietnam š¤£
#ql7md4a
(#uul7hua) completely untested as i have no remote way of running mu code from Vietnam š¤£
AoC Day #1 solution (mu): https://gist.mills.io/prologic/d3c22bcbc22949939b715a850fe63131
(#qsrwpva) The most interesting part about mu is that the language is actually self-hosted and written in itself. There is a stage zero compound written and go on a stage one compiler written in mu
Thinking about doing Advent of Code in my own tiny language mu this year.
mu is:
Key syntax:
fn and braces:fn add(a, b) {
return a + b
}
:= for declaration and = for assignment:x := 10
x = x + 1
if / else and while:if x > 5 {
println("big")
} else {
println("small")
}
while x < 10 {
x = x + 1
}
nums := [1, 2, 3]
nums[1] = 42
ages := {"alice": 30, "bob": 25}
ages["bob"] = ages["bob"] + 1
Supported types:
intboolstringlistmapfnnilmu feels like a tiny little Go-ish, Python-ish language ā curious to see how far I can get with it for Advent of Code this year. š
Oh dear god š± The level of pollution on Hanoi is insane š„ŗ I canāt stop coughing outside š¤Æ
(#vezpyua) @movq@www.uninformativ.de Thatās also a quite clever approach. :-)
(#4ls535q) @prologic@twtxt.net Lol, these sails on that boat! :-D
(#4ls535q)
(#4ls535q)
(#4ls535q)
(#7avlrca) @bender@twtxt.net You are so right š¤£
(#ftqfrta) Day 1 was surprisingly finnicky. A lot of people got it wrong, apparently. Me too. š¤£
(#7avlrca) @bender@twtxt.net No, but if thereās a problem i want to know about it so i can address it š
(#42q6via) @shinyoukai@neko.laidback.moe Hmmm? š§
āThe Internet Used To Be A Placeā
(#wghyf4q) @bender@twtxt.net Ah, god damnit. š¤£
(#ewyhg6a) @thecanine@twtxt.net At least itās all chromium š¤£
(#hhdrrea) @movq@www.uninformativ.de Lots of things stop me 𤣠crappy wifi, no international roaming, no remote access (by design) just to name a few š
(#hhdrrea) @prologic@twtxt.net Nothing stops you from programming while in Vietnam. ššš
(#ftqfrta) @movq@www.uninformativ.de Oh damn ! Iām on holidays in Ciwtnam 𤣠Iāll be late to the party !
Advent of Code 2025 starts tomorrow. š„³š
This year, Iām going to use Python 1 on SuSE Linux 6.4, writing the code on my trusty old Pentium 133 with its 64 MB of RAM. No idea if that old version of Python will be fast enough for later puzzles. Weāll see.
(#wghyf4q) @bender@twtxt.net Hmm, somethingās weird with that post:
https://movq.de/v/cf64f3a625/s.png
š
(#d2pj7pq) @lyse@lyse.isobeef.org Damn. That was stupid of me. I should have posted examples using 2026-03-01 as cutoff date. š
In my actual test suite, everything uses 2027-01-01 and then I have this, hoping that thatās good enough. š„“
def test_rollover():
d = jenny.HASHV2_CUTOFF_DATE
assert len(jenny.make_twt_hash(URL, d - timedelta(days=7), TEXT)) == 7
assert len(jenny.make_twt_hash(URL, d - timedelta(seconds=3), TEXT)) == 7
assert len(jenny.make_twt_hash(URL, d - timedelta(seconds=2), TEXT)) == 7
assert len(jenny.make_twt_hash(URL, d - timedelta(seconds=1), TEXT)) == 7
assert len(jenny.make_twt_hash(URL, d, TEXT)) == 12
assert len(jenny.make_twt_hash(URL, d + timedelta(seconds=1), TEXT)) == 12
assert len(jenny.make_twt_hash(URL, d + timedelta(seconds=2), TEXT)) == 12
assert len(jenny.make_twt_hash(URL, d + timedelta(seconds=3), TEXT)) == 12
assert len(jenny.make_twt_hash(URL, d + timedelta(days=7), TEXT)) == 12
(In other words, I donāt care as long as itās before 2027-01-01. šš )
(#lwxbbsq) @kingdomcome@yarn.girlonthemoon.xyz Oh, cool! Can we see the results? :-)
(#j7zm5xa) @kaa@bridge.twtxt.net Cool, thanks for the support! Iāll try to add something so that a year later it can ask if you want to renew. I just didnāt want to make gift subscriptions auto-recurring.
(#e2rrvga) @kaa@bridge.twtxt.net We have a way to invite someone to Micro.one and pay for the first year. Maybe that would work to start? Thereās a link @3932@bridge.twtxt.net. Otherwise email help and we can figure something out. Thanks!
(#tvulx5a) @numericcitizen@bridge.twtxt.net No worries, this is all going mostly according to plan. š Using more bandwidth was unavoidable.
(#mdvry7a) @cote@bridge.twtxt.net Sounds right. š
(#4dh6hwq) @fichteldom@bridge.twtxt.net Sorry, I looked at the wrong account even though you told me which one! Should be fixed now.
(#yz5ys2q) @fichteldom@bridge.twtxt.net Are you still seeing the error? I just checked and it looks like it was updated. Let us know if anything looks wrong.
The classified information in the future classified information the surface so classified information is classified information and I wasnāt hurt
In fact, look at how soft this ball is
~ Mikuru Asahina The Elder (The Melancholy of Suzumiya Haruhi-chan)
Say what, npf(7) is throwing up and wonāt block anything, yare yare :facepalm:
(#d2pj7pq) @prologic@twtxt.net the only one other that exists is htwtxt which may as well be Yarnās ancestor
(#xyy4hrq) that is to say, chaotic.ninja still exists (although I donāt directly control it anymore as of last year), the rest is classified information ;P
Do not expect me to not hit other peopleās nerves. You have been warned.
@prologic@twtxt.net I have returned
@teleclimber@bridge.twtxt.net Definitely jealous that your model means you can ājust add ARMā in a monthly update!
Hmmm does this show up in Twtxt? š¤
Hello World! Testing 1 2 3
@meidastouch I think itās pretty funny he keeps having to explain his own jokes.
@danie10@bridge.twtxt.net Fuel efficiency was the reason I had picked the economy instead of the āwhatever you haveā option in the first place. Although in fairness, Iād have to get a pretty big car to rent a car less efficient than my personal beast which is at the shop.
@jalefkowit@bridge.twtxt.net IMHO they should keep working on it.
@kentonvarda.com That is a fair point. It is also not very cohesive in a āI donāt know what you want, but Iām required to say somethingā way. It managed to cover your grammar, the source of food insecurity, telling you ājust eat somethingā (which is how I respond to family members who say theyāre hungry), and tops it off with a funny video.
@kentonvarda.com I really hate to defend an AI model, or Google, but you did not give it much to go on here. I wouldāve assumed you were telling the machine you were hungry and wanted it to suggest food near you.