Welcome to Windsor & Essex County Freedom's forum...
Break the Facebook addiction, avoid A.I. slop, scams, and online drama.
[WEFreedom.SubMatrix.net] focuses on local community political
ACTION + COMMUNICATIONS + ORGANIZING
for Windsor, Essex County, and beyond, with minimal drama.
== Priorities of this [SubMatrix.net] community ==
- alternatives, solutions, trade-offs
- autonomy, critical-thinking, mutual-respect, truth-seeking
- local news, processing info, producing media
(print, video, web, etc.), sharing & outreach - projects of all sorts (research, plan, execute, distribute, resolve)
== Online features include ==
- this [SubMatrix.net] forum to post and comment
- [Chat] and private chats with individuals or custom groups
- [messages] and private messages
- [Gvid.TV] video library
- [Img.Gvid.TV] image bank
- [Projex.Wiki] interactive documentation
- more
Also find lots about us, our calendar of events, organizing,
more information, and resources on the wiki anyone may join...
== Announcements ==
- WEFreedom has a new forum!
== Urgent ==
- 2026-06-29 Mon - City Hall
We need to audit (sit in), take notes, process, develop action, publish.
== Calendar ==
- 2026-06-27 Sat - Banwell Church car wash to raise lunch money for Marlborough School
- 2026-06-28 Sun - Canadian Fiesta! monthly soirée
- 2026-07-01 Wed - Canada Day
Every 2nd & 4th Wednesday, 7pm @ The Lions' Den
== Classifieds ==
Local folks and businesses need local support.
(more soon)
== Recommended ==
- /s/ArtificialIntelligence
- /s/Canada
- /s/Controligarchy
- /s/Health
- /s/PoliticalAnalysis
- /s/VaccineSkepticism
- /s/Voluntaryism
- /s/WEFreedom
- /s/Windsor
- /s/Zionism
== Questions? ==
If you have questions contact
- [FAQ] (frequently asked questions)
- JasonCarswell (aka Santa Libertas)
- x0x7 (genius-coder and admin-extraordinaire)
== WEFreedom folks ==
WEFreedom folks can see who has joined this forum,
encourage more participation, and connect here.
[User list goes here.]
== Critical concepts ==
Agora (Greek) is an open place for markets and people to assemble for
various purposes, like a town square.
Agorism
- Social philosophy advocating creating a society with voluntary
exchanges and relations between people via aspects of
counter-economics and nonviolent revolution.
Do-ocracy
- An organizational structure in which individuals choose roles and
tasks for themselves and execute them wherein responsibilities attach
to people who do the work, rather than elected or selected officials. - http://Projex.Wiki/wiki/Do-ocracy
FOEPATCHISM
- Fair, Open, Ethical, Peaceful, Accountable, Transparent, Consistent,
Honest, Inclusive Social Management - for collaborators, communities,
families, governments, groups, homes, organizations, social media,
societies, teams, workplaces, etc. "Foe" = enemy; "patch" = correction. - http://Projex.Wiki/wiki/FOEPATCHISM
Libertas = autonomy, freedom, sovereignty.
Phylaxis
- (medical) The protection against infection.
- (defensive) Guarding against cultural destruction, cyber warfare,
ideological subversion, malicious infiltration, medical tyranny,
political corruption, psychological operations, wealth theft, and
weaponized migration.
Voluntaryism
- Peaceful life without rulers, yet with social rules.
- The common sense idea that all forms of human association should be voluntary...
with the assertion that any act of violence [or coercion] other than self defense,
whether by an individual or organization, is illegitimate and unlawful. - Voluntary interactions - without rulers rather than supporting and suffering
under mafia governments and corporatocracy's monopoly on violence.
This includes what consenting adults do in the privacy of their own wallets,
bedrooms, bodies, businesses, and communities. - http://Projex.Wiki/wiki/Meaningful_liberty#Voluntaryism







Neat. Is there a coding language preferred for these?
By the sounds of the day 1 challenge you could spreadsheet it with Excel or similar.
You could. There isn't a preferred language. In fact if you hit a language others haven't that's a plus.
Lol. I guess you can do it in excel. I'd be interested in seeing the formulas. In fact excel is encouraged. I'd love to see how far someone can get.
I wondered how it would work. My first guess was that one submits code and the competition website runs it. But where was the list of programming languages that were allowed?
My second guess was to cut and paste the example into my source file as a string constant
;;; I'll guess that one uses cut and past
;;; to get the input from the webpage
(defparameter example-input
"3 4
4 3
2 5
1 3
3 9
3 3")
So I wrote my code. Since I'm old and weird, I used a weird old language. There is some parsing stuff
and the actual computation is
(defun compute(list-of-lists)
;;start by unzipping and sorting
(let ((left (sort (mapcar #'first list-of-lists) #'<))
(right (sort (mapcar #'second list-of-lists) #'<)))
(reduce #'+
(mapcar #'(lambda(x y)(abs (- x y)))
left
right))))
That worked, so I clicked the Reddit authentication (I'm so old that I have an account from when Reddit was
a good website). Then I clicked to get my input, which appeared in a new webpage.
I used cut and paste, not realizing that there were a thousand lines on the page. Nothing broke :-)
But it turns out to be text file. I think the idea is that you save it with your browsers Save function. Then your code reads the file as an ordinary text file, just ASCII codes for numerals. Compute the answer, and type it into the box to win a gold star!
Yep. There are a few strategies you could use for reading the input. Both reading the file and copy pasting in your code both seem reasonable. I’m saving both the initial example and the longer on to short.txt and long.txt and then using a symbolic link to input.txt to change which one I’m reading.
But I should probably just switch that to reading a command line argument.
It’s been a while since I’ve touched proper lisp, but I have touched some clojure about a year ago.
There’s multiple generations in between that I’d probably misidentify as CL. So for all I know that was one any of those.
It was never a good website.Same.Here are my solutions for day 1
https://lab.gvid.tv/x0x7/AdventOfCodeSolutions/src/branch/main/2024/day1
Check out my answer, I'm doing it in bash. I must say I'm having fun with it, can you pick out all the nuances in my code? Part 2 to follow soon.
lol, i dunno bash! but i'd love to help however i can! I'd say to readability you should use carbon.now.sh - that converts the code in an image that you can then put on gvid.tv or catbox.moe and it makes it easier to read... sometimes! anyways, its great that you are joining! The problems aren't that bad, and its earning me extra clout on twitter. double lol.
Is Twitter making u rich?
You got the rest of the problems done yet? they aren't that hard.
Part 1
Pt. 1-2 combined
Woah. That's cool.
Is it anything special? I thought it'd be some kind of meme to do the whole thing in bash but it actually feels quite natural. I'm not even sure why I had this view of bash that it's inadequate. Instead of libraries you have cli tools.
True. And if you ever really need to you can implement something in another language and use it.
There are a few of the later ones where bash probably won't work but I wouldn't count bash out to be used for more than it should.
So yeah. I used a single space as delimiter and simply picked the fourth field for the right column. And I didn't know if bc (basic calculator) has an absolute value feature so I implemented it manually by taking the square root of the squared value.
That's funny because I have in the past ditched bc for a programming language even for inline math in bash mostly because bc doesn't even want to handle floating point numbers. How funny would that be if you ended up launching node or python anyway.
You have to set the scale, which is a fixed number of significant points behind the comma that it uses. Try
echo "scale=3; 2469/200" | bc.