#ot1-perplexing-regexing
1 messages Β· Page 171 of 1
thats very bad
and this would take just as long as counting them, because this paper has a list of all the things we have counted and all the things we have not counted
yes, very bad
how bad would it be?
if you count 10 things
and every time you count one thhing, you have too write a paper with all the ten thiings on it.
hm, thats inefficient
yeah
and there are even worse ways to do this
10**3 would be even worse
because counting to ten would take up 1000 times
can you invent something larger?
yes we could
but we wouldnt
but there are ways to express this, that will make it go even slower, and all of this we can express with mathhematics
instead of 10 we use n
n**2 is bad
but 2**n is even worse
its is way way larger
the point is to understastand that something takes larger time then others
from constant time to insane long time
and to reduce that we have complexities?
and the point is not how long something takes either.. its how bad it scales
you learn about thhis, so you ccan looook at your code and see.. how bad is my code
if your code is n
complexities just let you mathematically quantify that slowness
they don't by themselves let you reduce it or anything
then its pretty alright
and that sometimes, if you have two algorithms and one is faster for your demo case, it may not be faster in prod when it deals with much larger data volumes
if your code is n**3 it will be pretty bad.. agree?
yea
you learn about doing this mental gymnastic so you can see if you have slow code, and if you do, you know you have to write it again better
but u can use them in ur code like apply a specific complexity to improve the code
i see
Halo
ight i get it
no, you can't "apply" a specific complexity. what would that mean?
otherwise I would just "apply" O(1) to my code and boom it's fast. but that's not how it works.
it is a practise in your own code understanding and you might not know how to improve, but if your code is n**3 you know your doing it wrong
thats not what i meant
you have to figure out a way to make it faster if you have slow code
if your ccode is already fast, then its really hard to make it faster
arr = [1, 2, 3, 4, 5];
```If we want to look up what is at index 2, we can get to the element using arr[2] which would give us back 3. This takes just one step. If we double our array⦠its still the same step
so thats constant complexity
then?
yes. lookup in an array in python is constant
What if your array isnt sorted gri
if your array is unsorted, how efficient can you sort it?
I'm not sure what you're reducing in that example
you're just describing the complexity of an array index lookup
thats a better question to look into @upper flower
im thinking ..
no, i mean, write your own sort algorthim for doing this, then loook at it and see how fast or sloow it is
if its very slow, make it faster
if its just an array lets just use the sort function (:
ok
the point is that you should write the coode and see if you can do it better then pythons sort function
or just as fast
sounds hard but cool
also
does the speed of the algo change as u change the language? eg from python to javascript
no
the language does not matter
because the ccomplexity iis about how somethiing scales, not how fast it is
if you double the input, do you double the time?
iff yes, then the orriginal speed of the language does not matter
python is in a good place, because all langauges are faster
but if you write your code better, you still beat fast languages
i like to beat the rust folks at work
π
they are all new too rust, so it is not a fair advantage
someone really good in rust would ofc beat me in time
def sort():
arr = [1,4,51,23,6,8]
arr.sort()
print(arr)
sort()
no
so you can call this an algorithm?
you cant use the sort there
uh?
you have to write it yourself
HMMM
You have to look at it as if you were sorting blocks or letters in the real world, with your hands.. How would you approach that?
like write a function and then use that function on the array?
but how do i know my sort function is better than python's builtin sort
someone called Tim already wrote pythons .sort algorithm
It wont be π©
you analyze it
Thats why you dont usually implement sorting functions yourself
You do it now for practice and learning
ok.
if its n*2 it is worse... heck if its n it is still worse! π
honest question why are things that can be radix sorted not radix sorted
sort()
```so i put the list in the parenthesis here (the sort() is the algo)
is that the basic idea
yes, but you cant use .sort
ok
I can think of four reasons:
- space requirements
- constant factors
- data distributions
- hardware
like python, sure, you can't say 100% that a list[int] is a list of ints, but statically typed languages, you absolutely can, and ints can be radix sorted, which crushes all comparison sorting algs
def gri_sort(my_list: list[int]):
# coode here
return my_list
yes
HMMMM
re: 1, you usually need extra memory for the buckets etc
re: 2, radix sorting is linear in the number of digits or passes, and sometimes that constant is too big for your small data
re: 3, variable-length strings and stuff need potentially multiple passes etc, it's not always super pretty
re: 4, radix sorting is bad at sequential memory access, so actually is expensive on modern hardware
uni students normally get a week to solve this problem after learning about this topic @upper flower
WHAT π
im thinking of ..
@carmine apex I was feeling lazy so I asked GPT to make a table, and I don't disagree with these words etc, I'm just too lazy to format this myself in Markdown for Discord dialect etc:
I forgot to add "5", re: stability, but that's true also
so, keep it in mind, know that there are ways to analyze and thing about how code runs to say how complex it is. and if you write something yourself that is slower than what is possible, you can always do better.
some problems cant be solved faster then normal counting
right
sometimes you dont have a scale to weigh your things
and you have to rely on normal counting
i should go sleep now idk if i should try to make a sort algo if it takes uni students a week
That's a GREAT reason to try, IMO.
im just a dumb high school guy
A week is just to give everybody time to finish given real life schedules etc, it's not gonna necessarily take you that long.
i would not use those words, you ask questions and you learn.. thats not characteristics of someone dumb
You're never too young to learn to do a thing, unless that's something like power-lifting a massive weight.
i did it the morning on the day i had to hand it in! π
Probably all the top students did that haha
our pleasure!
gn
and thanks guys for letting me explain my own way!
May wolves guard your coffin well!
its very easy to want to jump in and hhelp or correct detaiils
I'm pretty impressed you didn't run into a "well actually..."
Cool server
is this from something
Yeah, fun track title from the band "Behemoth", from their "Storming Near the Baltic" album.
HAIL THE KVLT 
did we just show our age @bleak maple ? π
I think that's, like, my character class on this server haha

In July 2007, the All-Polish Committee for Defense Against Sects distributed to many Polish officials a list of bands that allegedly promote Satanism and murder. Critics of this policy primarily see this as a violation of free speech. The list has not gone into effect, and Behemoth were allowed to play in Poland freely. In October 2014 this changed when Behemoth was banned from performing in PoznaΕ.
well, you always have Dimmu Borgir π
This is just street cred in that genre haha
i mean i'm reasonably sure most of the folks who like the music in fallout games were not actually alive during the 1940s and such
I own a bunch of albums that you aren't even allowed to buy/sell on Discogs
can always discover older bands well after their prime
sure... but you dont really see anyone changing musical taste after 28ish
Oh, I'm an exception personally
numbers next to genres are the number of albums I have of that, top number is the number of genres in my library
Enka rules
Buddy of mine on the Black Metal Discord just released this, pretty sick: https://frostwitch.bandcamp.com/track/ice-burial
The Discord role setup on that server is hilarious
src/go/token/token.go line 25
literal_beg```
is it to then do literal_beg < x < literal_end?
src/go/token/token.go line 34
literal_end```
im blind
Before I read the end, I thought about literal beg and wondered how it's being measured

usually no seasoning
it comes with salt
but it isnt "raw", the can is sterilized in produciton
lol I just got invited to the Amazon "Vine" program
Crazy
Is this how the world works now?
lol you can't view the full Vine Review Guidelines until you agree to certain things
I'm sure that's not sketchy at all
i bet one of those agreements are "dont call it a dropshipped product"
It does say you aren't allowed to say you are a "Vine Voice" when contacting a 3rd-party seller
@polar wolf re: that whole jam about money earning etc etc, check this out. The average US worker at a small/medium business generates over $72k toward the GDP.. but note also that it's 6th on this:
(This is like 10 prompts in, the data sources it is allowed to use for this are pretty real etc)
Don't publish a paper or anything, but it's not just a first cut.
Honestly, you can't do it that way
You must look on how much they pay for a full stack in each country
And Germany is not before Denmark
Denmark is not even listed
UK is not that high I promise
Yeah it's really tricky, I was arguing with a very USA-rah-rah centric rich friend and trying to find an angle that made him understand the USA isn't the only place where entrepreneurship or however it's spelled, it's late, happens.. that seems to be the only trait he values in humans.
GDP is a too unfocused metric unfortunately
Why are we comparing different countries' average salaries for fullstack?
This is for all jobs, not fullstack.
I'm investigating small-medium businesses globally to prove a friend is wrong.
Cool, thank you, how do we explain the Hungary result?
an outlier
xD
or silent fallback i already look on that
pretty cool i can access oecd without api key
and the ai knows the structure already
digital outlook for the north countries looks good
Lol Poland ranks now before US
Surely this is not a 100 % correct result, also zero tested and 95 % AI-generated
But better than nothing
Man this is pretty crazy formula
I definitely should visit Poland one day xD.
Now, I understand Lil Yachty.
Doing the PPP adjustment is actually crucial, and a step I forgot. Nice.
So uk is better to live in than usa for software enginners
Because living there is also not that cheap and high tax
No man
UK is trash
they won't pay you good
if you don't have crazy connections or position
You would have to pay me in regular shipments of allocated platinum bars to work in the UK.
Like, very regular.
Why
I should sleep, super complicated, but tl;dr, I'm not down with where they seem to want to go as a society.
Lovely folks etc but government-wise we are drifting apart.
Usa and uk are trash
In the above statement I am not defending/selling the USA in any way by the way.
Lycia is my favorite nation.
Australia?
Gonna hike this trail next year if I can fit it in.
Ah
Also Estonia is cool https://www.bbc.com/travel/article/20250917-the-nordic-escape-you-didnt-know-existed
and Czechia, and Finland
yeah and latvia they have the good girls
and riflemen
riflemen?
ah okay like hunters
how good must be poland that it ranks so high, this really arouses my interest
Riffing on this pretty kickass metal album https://www.discogs.com/master/221160-Skyforger-Latvian-Riflemen
not sure if they do software jobs
That's OK money is dumb.
A nerdy math joke reply today is my most-engaged-with Tweet in a long time
Surely taxation isnt as simple as gross * (1-rate)
It definitely isnt right for the UK at least
Or literally any country with progressive taxation
(which is most countries)
I think it is more valid now then before
Before I had PPP adjustment twice
the tax looks still pretty speculated but i know this can't be correct anyway because of the progressive tax model
This is starting to look more plausible ranking-wise to me. Nice.
i try now to get the cost of living index better because that is also hardcoded
Pretty cool
To see how the formula changes the output
very nice that you can grab that all easily from kagglehub for free
But that Austria ranks so high is really strange for me personal
Because I live in Austria and it doesn't feel like that xD
Where do you feel it ranks
below germany above uk
Some of those net values seem off
feel free to check out the version on the bottom. i can add your patch.
or you can copy and modify and reshare it
i didn't check it in-depth
i think creating statistics for the government isnt that bad job
i swear it would be badass to add something to ai to check urls before it writes them to see if they are available and deliver what is expected or run scripts for you and evaluates the result but not in agent mode
try to right-align the numbers. this should fix the table (cells) shift.
1. xxx
2. xxx
3. xxx
4. xxx
...
10. xxx
11. xxx
12. xxx
```instead of
```fix
1. xxx
2. xxx
3. xxx
4. xxx
...
10. xxx
11. xxx
12. xxx
Additionally look into using the thousand separator format (,)
!eval
a = [1937363826, 29374628220, 39473, 46372, 22344]
m = max((k:=len(str(i))) + k//3 for i in a)
print(*[f"$ {n:>{m},}" for n in a], sep="\n")
:white_check_mark: Your 3.13 eval job has completed with return code 0.
001 | $ 1,937,363,826
002 | $ 29,374,628,220
003 | $ 39,473
004 | $ 46,372
005 | $ 22,344
there is too much pymagic involved for this fellah here
k:=len at that positions looks ridiculous for me as ts main
I am also not well schooled in these special string stuff of python
but thanks
I guess starting today my career seems to be exiting the "normal stuff people might believe" phase and into dark waters. This should be fun; I hope I know how to swim.
Why are we moving over here?
Oh the other convo seemed unrelated to that
my joke too lame
undergreatable, have a stand day.
Easily the craziest advice I've seen from Deep Research yet.
But I am, yeah, actually going to do that.
"Sell me on why this is the road ahead, here's how I see it."
does anyone know @fathom hazel
What's everybody's favorite programmer joke?
For me it's probably: "Jeff Dean puts his pants on one leg at a time like anybody else. But if you look closely, his approach scales better for leg counts above 2."
Nope, this server is my only mutual one with that user.
ok
@solid pollen
Here's your reminder: both still here?
[Jump back to when you created the reminder](#ot1-perplexing-regexing message)
@narrow pecan are you?
Neither of you are, from what I've seen lately.
Yep, still here! How you doing nowadays?
!remind @solid pollen 5y both still here?
Your reminder will arrive on <t:1917105488:F>!
2020 holy hell
When they saw Redux in the deps...
IMO this is really cool: https://vxtwitter.com/phalgooon/status/1973355756931129518
muffled screaming
that hack sounds both neat and pretty simple
interesting they still bothered to handle it politely
most companies and ppl would be like
"Hi,
Cease and desist for you.
Go to hell,
<name>"
Yeah, I've never heard of the product but this post made me gain some respect for it.
There are only two hard things in Computer Science: cache invalidation, naming things, off-by-one errors
There are only two hard things in Computer Science: cache invalidation, naming things, off-by-one errors
Oh, and concurrency
Well played, that's my second and third favorites right there.
Holy shit wow
Excellent work sir.
Thanks
good to know the reminders system works lol
Hey!
I'm somewhat impressed it can still process 5y old data
Doing very well, been doing some exciting stuff in the yugioh scene, how about you?
I keep forgetting to unmute this server and move it up my server list
I should hang out in here every so often
Any book recommendations for learning modern C code?
Does modern C truly exist?
Well... atomics didn't exist in 1972, did they
ooh free book
How does this book differ from Effective C?
from the ToC, Effective C seems like something you'd recommend to someone new to C, while Modern C you'd recommend to someone familiar with C, but wants to know what's new in C23
Heya!
you could just read both Β―_(γ)_/Β―
not really
Modern C is perhaps a bit much for someone entirely new to programming, but it does not assume prior familiarity with C itself
okay, yeah
I was going off the basic ToC on the Manning page for the book, but the detailed ToC does seem like it covers the basics too
@shell raptor
Any idea why clang doesn't complain about the banana call here? ```c
#include <stdio.h>
void banana(int *restrict pa, int *restrict pb) {
*pa = *pb + 1;
*pa = *pb + 1;
}
int main() {
int a = 21;
banana(&a, &a);
printf("New value of a: %d\n", a);
return 0;
}
$ clang -O3 -Wall -Wextra -Wpedantic -std=c23 main.c
$
*silence*
gcc does complain... ```
$ gcc -Wall -Wextra -Wpedantic -std=c23 main.c
main.c: In function βmainβ:
main.c:9:10: warning: passing argument 1 to βrestrictβ-qualified parameter aliases with argument 2 [-Wrestrict]
9 | banana(&a, &a);
| ^~ ~~
the ping for "hey you should look this" but @silent is interesting
the intention was so he can take a look later
do silent pings show up in mentions? 
@solemn tulip only one way to find out
Seems like yes, TIL
Silent pings????
yeah
well, actually, this
Explain?
start the message with @silent and it will not send a notification for any mentions
Δ§
@uneven pine
@silent @luckayla
Huh
What's supposed to be silent about it
I still get pings
Also what about all the people named silent
How does that work
actually, my one might have been because of the reply
I might have missed unchecking the box
@uneven pine this shouldn't ping you, but will still be listed in your mentions

As pingy as it can get
does this notify you?
Seems virtually useless if all it does is what, turn the sound off?
I still get the toast notification
notify as in it's listed in notifications
audible ping idk, I was viewing the channel already
no, notify as in you got a desktop/mobile notification
it's meant to mention someone without waking them up, I think
Wake me up inside
I'm not too into the AI thing. (reading the conversation on #python-discussion).
AI lacks context. I definitely think much learning comes from tinkering and making stuff.
If your discord wakes you up that's a you problem lol
Lrn2cfg
I hope I'm in the right channel for this kind of discussion and I didn't wake anyone up. π
You are good man
I think pings are the only way to get discord to wake someone up
I don't think that unread channels send notifications
TIL
That's actually the default for discord
And some psychos just leave it like that
You can set it to not do that by default in server settings though
A lot of server owners don't for whatever reason
I remember the great everyone ping, someone was angry because they had that set and their phone kept crashing because of the notification spam.
Yeah I have exactly one low traffic server run by a friend that I leave set that way
Thatβs nice! Iβm doing quite well too. Working on some big projects right now
Yeah, itβs really nice for friend servers and when you use discord for uni projects or communities
omg I remembered to unmute this server and move it up the channel list
is bast still around
@coral void? No they died last night.
Sorry you had to find out this way @solid pollen


Jesus between the two of you have over 20 mutual friends and 40 mutual guilds
lol makes sense
Setting your junior engineers up with AI coding tools:
what could go wrong, worst case scenario the tool uninstalls itself
best-case
I really don't like junior/senior as ideas much but I don't have a great replacement.
if bad AI code coming from a junior on a critical piece of your infrastructure gets to prod, you have a real procedure issue
To me, I will take a junior with the "Beginner's Mind" before I take a senior who has forgotten that.
absolutely
Fewer horrible takes to un-learn? Sold, when can you start?
In an interview, if somebody asks me what I think of OOP, I look around and say "Is this a safe space?"
that'd be a weird ass interview question
I've had it
More people should read this https://www.amazon.com/Foundations-Object-Oriented-Languages-Types-Semantics/dp/026202523X/
This is what made me understand that I wasn't down with the model, at a pretty fundamental level.
I didn't really understand subtype relationships at all until I onboarded this book's ideas.
contravariance is nasty
The way I think about it circa 2025 is that I need my programming language to understand the "preference for symmetry" that computer hardware has.
And OOP violates that preference in a bunch of ways.
Examples of how we exploit that symmetry preference: swizzling for data structures, warp specialization for GPU programming
Yep. It's been.. a lot of up and downs irl, but still around.
Makes me smile when my otns come up
I thought of a pretty fun new question for Site Reliability Engineer interviews
"If I told you that I think that agentless config management is a false promise, what would you say to that?"
So Ansible is just a non starter?
Counter question: What does an agent give you that βjust running your Ansible playbook more oftenβ doesnβt?
Microsoft recently released that exact feature β a scheduled task every ~30 minutes that just downloads and applies Group Policy again
https://learn.microsoft.com/en-us/windows/security/book/operating-system-security-system-security#-config-refresh
Scale, and much more importantly, the ability to use it in network architectures where you can't just connect directly to everything.
The latter is often missed but many large real networks have blast radius protection.
The new thing I'm just starting to contribute to lets you do it all, so you can build a seamless flow that starts agentless to bootstrap, configures agents, then turns off the access that the agentless mode needed forever and drops the mic.
Which means you can use it in agentless forever for small stuff, but be using the same tool exactly when you need to go hyper.
The creator had ONLY USED ANSIBLE BEFORE, and still managed to "get" that it was offering something very challenging in practice, and then designed something better! So much talent.
I had to use like 18 different config management tools to come to this understanding
right now it has the garbage name of duxcore, but I just convinced the creator to rename it to something better that isn't taken, so we're off to the races
I won't say what yet until he finishes registering the crate because I don't want it sniped
"any REAL thing is done my way" precludes the entire possibility of other people having different opinions
Sorry, I don't mean it that way, just that every large-scale network deployment I've seen has had some kind of non-homogenity to it.
I'll edit that phrasing
(not attacking, just countering)
No you're right, that was sloppy.
count-er-ing
I like to live intentionally.
But basically I made this pitch to the very attentive, very engaged SaltStack sales team after we signed the contract at my last company
and they were like.. "Oh. Uhh. Whoops?"
We ended up having to write our own complex solution to avoid multi-master.
But duxcore just outright saw through that abstraction problem and never got tangled with it, which I think is beautiful even if agentless mode is what suits your deployment.
I will as soon as the rename is complete, I actually don't want to create any more indexable content that points at the garbage current name haha
Just finished registering the GitHub org for it
oohhh I love new org day
How many are you up to?
I don't understand how you don't have the exact same problem just in reverse with your proposition
"we can't push because the host can't see the clients"
"we need to pull because the clients can see the host"
Suddenly everyone can see everyone again
IMO, any arguments you make for allowing network access one way can also be made for the other way
Wow nothing like this many!
I'm only still in the Epic Games one (Unreal Engine source code access), the PyDis one, and the Rubinius one.
OK, here's the crate.. creator is in France so he had to go to sleep, but he registered it finally https://crates.io/crates/regent-sdk
Ah finally
Please accept my request to be a maintainer, tanks
That's a neat embed
Oh damn
This has got stacks of artsy diagrams
Yeah, that's the interesting part so far, I don't care how good the implementation is
The idea though, of being able to embed a LIBRARY not a CLI into things to do config management, and that it should be flexible enough to support all the paradigms.. that's 
https://github.com/regent-project is what I registered today
made the logo in Midjourney + Photoshop
We'll need a new one that is more Iron-Crown-of-Lombardy-y, I made that before we picked the name
Just that the old logo was trash
Man
You sure do hate everything about this poor French dude's project
I see his existing GitHub repo says it's a mirror of the GitLab one
Is he migrating to GitHub now?
We haven't decided yet, I just wanted to squat on the name and have a redirect either way etc.
GitLab seems fine, maybe we'll stay there, it's his call, I don't want to change anything he doesn't want to see change.
but, I mean, this was the logo
Come now, friends.
That's a sad single arm representing a thing that is multi-paradigm and interconnected.
The robot looks sad to me.
Old book list I made, found going through my gists oldest to newest.. this was 2015 but I stand by these recs
The Unfettered Mind
http://www.amazon.com/The-Unfettered-Mind-Swordsman-ebook/dp/B0088Q9RRK/
Smalltalk Best Practice Patterns
http://www.amazon.com/Smalltalk-Best-Practice-Patterns-ebook/dp/B00BBDLIME/
Concepts, Techniques, and Models of Computer Programming
http://www.amazon.com/Concepts-Techniques-Computer-Programming-ebook/dp/B008H5Q8KQ/
The Black Swan: The Impact of the Highly Improbable
http://www.amazon.com/The-Black-Swan-Improbable-ebook/dp/B00139XTG4/
The Art of Doing Science and Engineering
http://www.amazon.com/The-Doing-Science-Engineering-ebook/dp/B000P2XFPA/
The 33 Strategies of War
http://www.amazon.com/Strategies-Joost-Elffers-Books-ebook/dp/B000W9149K/
Etudes for Programmers
http://www.amazon.com/Etudes-Programmers-Charles-Wetherell/dp/0132918072/
On Combat, The Psychology and Physiology of Deadly Conflict
http://www.amazon.com/Combat-Psychology-Physiology-Conflict-ebook/dp/B008068P8K/
The Book of Five Rings
http://www.amazon.com/Book-Five-Rings-ebook/dp/B007V3FHRU/
Expert C Programming: Deep C Secrets
http://www.amazon.com/Expert-Programming-Peter-van-Linden/dp/0131774298/
Silence on the Wire
http://www.amazon.com/Silence-Wire-Reconnaissance-Indirect-ebook/dp/B008FRNHVY/
Foundations of Object-Oriented Languages
http://www.amazon.com/Foundations-Object-Oriented-Languages-Types-Semantics/dp/026202523X/
How We Decide
http://www.amazon.com/How-We-Decide-ebook/dp/B003WMAAMG
Thinking, Fast and Slow
http://www.amazon.com/Thinking-Fast-and-Slow-ebook/dp/B00555X8OA/
Michael Abrash's Graphics Programming Black Book
http://www.amazon.com/Michael-Abrashs-Graphics-Programming-Special/dp/1576101746/
Cryptography Engineering: Design Principes and Practical Applications
http://www.amazon.com/Cryptography-Engineering-Principles-Applications-ebook/dp/B004NSW9JU/
Virtual Machines: Versatile Platforms for Systems and Processes
http://www.amazon.com/Virtual-Machines-Versatile-Architecture-ebook/dp/B006NV2EO0/
Game Engine Architecture
http://www.amazon.com/Game-Engine-Architecture-ebook/dp/B007COYRJM/
Order is load-bearing.
There's probably a better Virtual Machines book now, or at least newer. The rest is pretty evergreen.
The Art of Doing Science and Engineering is a masterwork.
I don't remember what they use but I forgot
I figure that's helpful
I remember when they announced it, https://blog.rust-lang.org/2025/07/11/crates-io-development-update-2025-07/
Just askin how do you structure your projects? grouped by type like all events in events folder, grouped by feature like one folder per feature (sounds really horrible) or grouped by layer like domain layer etc (sounds also pretty horrible with these weird layer names)
I think this structure looks pretty cool.
Grouping by feature works best in my experience.
It's not horrible at all.
Because you tend to work with one feature at a time.
If you group by type, you gotta jump around the project tree all the time.
If you group by feature, you have all relevant code in the same place.
i have the fear that not each feature is big enough to get an own folder. i mean what's a feature basically? it's not like one user problem -> one feature.
but how would you define the minimum size needed for a feature to get a folder
at the moment i tend to use a mix of folder names like services, db, llm, events
maybe you could call it group by intuitive domain xD
You can just wing it and it tends to work out.
It's not the end of the world if the structure you choose is not optimal.
And you can restructure later if you want.
all these examples group it by feature
yeah sure just saves much work to figure that out before
The point is just to reduce the degree to which you gotta scroll up and down your file tree and search for files in a completely different location.
I think you gotta screw up really badly in order to waste "much work"
why is this called screaming architecture?
Screaming architecture is a term coined by Robert Martin (Uncle Bob). He argues that a software system's structure should communicate what the system is about. He draws a parallel between looking at a blueprint for a building, where you can tell the purpose of the building based on the blueprint.
I actually kinda guessed it was a Bob Martin thing.
I agree with him so infrequently it's wild.
He argues that a software system's structure should communicate what the system is about.
What even is this sentence, does anybody disagree with this idea, to argue against?
"Murdering innocent children is bad, Defiler argues."
It's hard to disagree with when stated like that, but it might be more useful as a smoke test for your own structure, especially if you're more of a novice.
Is it easier to figure out what the system does if you organize by type or by feature? Probably the latter.
Yeah, I'm not disagreeing with the suggestions really, it's just that it all feels like a "corollary to Conway's Law" that we were already striving to do our best on?
Yeah I also see him always with a salt of grain
I like Martin Fowler and Uncle Bob, but you always must validate if you comply with their pilosophy
depending on the principle you look at
Well, not everyone were already striving to do their best in that regard, new programmers appear all the time and they gotta learn everything from scratch.
Seems like a good idea no matter who you read.
An intern of choice
Have you ever met a child gri
yk im also a child
Exactly
i mean idk if being 16 takes me out of that
u can call me a pre teenager i guess
but talking about actual children like 7 - 8
yeah they suck
Youre fully a teenager
make my blood boil
i will take that as a compliment
really
i think being a teenager sucks
infact life as a whole is shit
also
i fucking survived
i got 22/25 even though i predicted 19/25 in math
but i played wise here
i did a long question, i got the answer right but the method was wrong
and luckily he didnt notice lol
it was to get trivial homogenous solutions (0,0,0)
ah
i performed a row operation 18 + R3 which is illegal lol
since that would cause the 0 in the R3 on the left and bottom most side to be 18 but I kept it 0 hoping the teacher wont see it
and boom it worked out
i cant believe im this smart
on the bright side
this is all math you will probably never do again in your life

yes
just gotta get thru
i dont know if i should say my brain works in the most needed moments or the most useless moments
im also confused on whether i should be proud of myself or not
did you put in effort to achieve the result you got?
and was it the result you wanted?
if the answer to both is yes then obviously you should be proud of yourself
i did put effort but i fucked up in the long question which i thought i will get wrong but my brain worked and i got it right even though it was wrong
tbh i'd be satisfied with a 20 so yes
so is the implication that you should only be proud of things you do that are perfect?
sounds like you'll never be proud of yourself
no
i meant if i had gotten that one wrong i wouldnt reach the 20 mark
it would be 17/25
why care about what didn't happen
erm
how is that information useful to you at all to improve or reflect on
what could you gather from that
it did happen yk i got what i wanted
i guess just prepare better
there you go then, take that lesson and be proud of yourself nonetheless
xd okay
As a teenager your hormones are going haywire, so I wouldn't gauge your whole life based on what's going on right now
It just tends to feel pretty different once those hormones settle down
and when do those hormones settle down...
i see
Im 29 and i still dont feel like an adult
At least i dont do cringe shit anymore
Those were difficult times
I feel like an adult since I had a child.
It puts a hard limit on how much you can fuck around and mess up.
I dont think its in the plans for us to have kids
Does that mean i can keep fucking around
I mean, yeah
Excellent
You're not gonna have a defenseless innocent human being die on your watch if you mess up too much.
No spawn of mine would ever be defenseless
So you're spared from that nightmare scenario.
Itβs a required detriment for the first 10 years or so
Takes forever to get enough skill points to upgrade
Human children are notoriously incompetent and useless
Compared to almost all other species
Reminds me of this quote
How come humans have only so few years to live, but spend most of the time doing it wrong
I mean learning how to life
It seems to be evolutionarily advantageous
Our big brains are worth the upfront time and resource investment
For the purposes of survival and reproduction
a pretty risky play tbf
You'd think so, but the results speak for themselves
though nevermind, it's not like we were dropped with this disadvantage out of the blue into the wilderness
Yeah, it'd be tough to bootstrap with our current specs
We kinda rely on our pre-existing knowledge base and social structures
can't wait till we get synthetic super intelligence
I'm kinda fine without it
all we have to do is just grow a human brain, but bigger
you might be finer with it
Even if it turns out to be benevolent, it feels very uncertain how the future with it will turn out
I'm quite happy right now though
If we get the best case scenario where we can go beyond scarcity and end wars and human suffering, that'd be great. But there's just so many things that can go wrong in an uncontrollable way.
I don't see it going well under capitalism\
Yeah, it doesn't feel too good to have US and Chinese tech giants at the helm of this type of venture.
would you rather it's left unexplored for the time being?
Not only those. They're just pinnacle of what happens under capitalism, with authoritarian regime and enough propaganda
Yes. If I could have my way, immediate policy-level restrictions on AI research, then proceed in a very careful and controlled manner with a ton of oversight.
that makes sense
Knock the spam off
What about Rust BTW?
rust is a must
wrong channel, banned
π¦
I need to rant about build systems
I thought cmake is supposed to embody best practices for C projects and be better than autotools and stuff
so why does it use recursive make? and even worse than that, it splits out everything into hidden directories (like a shadow directory tree) and writes random text files with lists of arguments for linker commands and stuff
I'm not a fan of autotools but I think it actually works more predictably and is more straightforward than cmake
grrr
also I figured out why I wasn't able to change the compiler to gcc for this one project.. it was because the CMakeLists.txt had a line near the beginning that just set the C compiler to cmake. so everything I specified using the standard options to cmake failed.

I was able to delete that and then everything built (after I installed some random unit test development library that cmake didn't detect was needed and that I didn't have during the configure step, which I thought was one of the main jobs of a configure step)
check and libsubunit-dev
of course now I have a different issue to solve, but well, at least I have the code executing
my goal is to make a python library that wraps ctypes and lets you link a C++ function with its actual demangled name instead of having to do cdll["_Znstd4cRb_tree4Cstdx..."] in your python code
Cmake is miserable, tho you really shouldn't be using make with it at all these days.
what would you suggest using instead?
Typically ninja, or cmake --build (which will typically call ninja or make)
I don't know if I actually mentioned it or not but the main issue I have with it is that it's using recursive make
ah, ok, I forgot you could specific it to use ninja to be honest
if I can get this working I think it would also enable you to use the same code to link a C++ library function on Linux and Windows
since Windows uses a different mangling scheme
(Windows' is horrible btw, it uses $, ?, and @ in the names, I'm not sure why they decided they had to add characters that are usually illegal but it's rather unpleasant)
also since the prototype would have all the argument types in it, and it's being parsed to generate the mangled name, it should in theory let me automatically come up with the argtypes that ctypes needs to safely call the function
anyway, hopefully I'll be able to make it all work, I think it would make interoperating with C++ code a lot nicer of an experience
thanks for listening to my rant π
stop hacking uber xD
is it at least tail optimized
@wheat lynx
Here's your reminder: Howβs life? Part 5, the sequel to the sequel to the threequel
[Jump back to when you created the reminder](#ot1-perplexing-regexing message)
this dates back to 2020, impressive
thanks, finally remembered to sign up this year
Did octoberfest become less annoying for open source projects?
oh, projects now have to manually tag themselves as hacktoberfect
uber?? lol
I haven't looked lol
Finally arrived! 
What is that book about?
The Black Metal music genre, and how it came about, and how it got to where we are today.
"The Evolution of the Cult"
Huh, forgive my ignorance but what is Black Metal?
Please note: This is a large item which requires extra handling. Please allow additional time to process and ship this item. The definitive version of the definitive black metal book is here!Β Black Metal: Evolution of the CultβRestored, Expanded & Definitive Edition, the acclaimed authoritative black metal history
It's a genre of metal music characterized by harsh vocals, virtuoso guitars that sound weird and eerie, and supernatural themes etc.
Random example https://www.youtube.com/watch?v=j8Gz1Jj12J8
Β«Full Title Track. HD sound with lyrics and spanish subtitles, performances taken from ''The Silence Of Forgotten Landscapes'' (DVD)Β»
All rights reserved to their respective owners.
I encourage the audience to get the original material.
http://www.agalloch.org
Band: Agalloch
Song: Not Unlike The Waves
Album: Ashes Against The Grain (2006)
Ge...
Band's name is pronounced "Agh Uh Lock", it's a type of sacred incense made from wood etc.
I've seen these guys live like 4 or 5 times now, so lovely.
On the extreme end of this genre there's stuff that scarcely sounds like music to the uninitiated, but I won't torment you with links to that.
SΓ³lstafir is an Icelandic (and therefore also Old Norse) word that means "sun-staves", and it's an allusion to crepuscular rays, the rays of sunlight that radiate from a single point in the sky when the Sun is behind clouds or below the horizon.
SΓ³lstafir is also the name of a different band
Yeah, a cool one.
And for a different angle on this genre, to show some of what it covers https://bergthron.bandcamp.com/album/exp-autarktis
sup
erm what
I just looked up what my smartest childhood friend is doing, and his title at NASA was "AI and Autonomy Solver-in-Residence". I'm not 100% OK with that yet.
Hi
What in laser-space-hell are WebUSB and WebHID?
"Web Bluetooth" sounds like it comes with a free Advanced Persistent Threat in the box.
Have you ever used QMK?
Oh, the keyboard config thing? I guess it makes sense that it uses that.
My Swedish friend can thumb type without prediction, just correction, at 300 CPM.... He says Dvorak is "accidentally the best layout for thumb typing":
Kinda not OK with that.
Lol
I'm pretty quick on the phone keyboards, not as fast as I was with the best version of PalmOS Graffiti, but dang I'm not 300cpm.
A spicy adventure.
Macera is adventure/quest in Turkish.
I assumed that was the joke.
It is?!
Ok let's give this a shot
(Turkish at bottom)
I'd tend to assume the Iberian interpretation (softened by soaking in liquid) given the context implied by "chilli"
firefox is doing the right thing
Sure, but it's common to mix languages in jokes IMO etc.
why someone would name themselves "macerated pepper" now is another question
Yeah I actually agree.
I like Spicy Adventure better π
There are layouts specifically designed for thumb typing. I remember a 9-grid with drag
It's fine, but seems post facto.
these reasons also apply to web bluetooth, which seems to be even worse than webhid and webusb
Helo friends
In my case it was while two people couldn't ever remember my name
I'm not too worried about the ontology of joke handles on text chat, but I get you.
And I was thinking of superstarify
So it's supposed to look like something you'd think is a singer name
It was created in pre-computer times, that's why it doesn't keep common computer shortcuts in place (like Colemak does). Dvorak actually had to make special typewriters to prove his layout is better than qwerty. It's optimised for English.
The layout above seems to be Dvorak-inspired layout for Swedish, not original Dvorak for English
Yeah, my buddy there runs like 4 or 5 "layers" on his custom main desktop keyboard, and his keycaps are Linear A script. He's a special boy.
Ah so Colemak is better than dvork
If not for his struggles in the real world etc everybody would have heard of him, he's smart enough to be a Torvalds or something.
dvorak was designed to alternate hands frequently in typing, iirc.
that would make sense that it works well for thumb typing because of that
am a colemak enthusiast myself
Learning three new layouts for fun brb
Sadly a few of my friends are like that; spending too much effort on surviving mental illness to change the world, but otherwise capable of doing so.
Me!
I'm on some really amazing private GitHub repos of this friend in particular, some of his ideas are incredible.
IMO he has the only secure Linux container stack in production that I've seen.
I could probably do something fancy
But my mentall illness keeps me from feeling capable of doing so
He pre-seeds the secrets in the container in a really badass way with a thing he wrote in Zig etc.
Currently-playing metal song says it well; "This way, Kings die. Let's fly!"
1000%, Google for OCaml, Agda, Idris
Every language you learn is another sturdy place to stand attached to the cliff face you are edging along.
Only 5 layers? Noob
https://dreymar.colemak.org/layers-extend.html extend layer for power
And altgr layer with 19 dead keys that activate layers (each with a shift layer as well) https://dreymar.colemak.org/layers-main.html#deadkeys
A treasure trove of keyboard wisdom. Layout tips, tricks, modifications and additions await in the Big Bag! Centered around but not limited to the Colemak layout.
A treasure trove of keyboard wisdom. Layout tips, tricks, modifications and additions await in the Big Bag! Centered around but not limited to the Colemak layout.
I have a project written in vite that gets compiled onto a microcontroller
In the name of Odin!
Using some c code that bundles the built files
Dreymar is either Swedish or Norwegian, so it matches XD
This "use Alt-Gr to unlock infinite layer keys" meme is hilarious haha
"Where we're going, we won't NEED roads..."
And the dead keys on altgr layer are not in letter places, so you can easily tweak the altgr layer to include your standard altgr diacritics (e.g. Polish qwerty has all diacritics under altgr)
I did give dvorak the ol college try back when I was 17
I spent about a month with it before I gave up
I guess I may be a nerd. https://vxtwitter.com/defiler/status/1974504153054429443?s=46
I guess I am actually making a fully-custom RPG setting and rulebook at last. Sci-Fi near future setting, not diceless, but dice only ever represent chaos or outside intervention, not character capabilities, and you earn the dice through role-playing.
I switch between colemak and qwerty pretty seamlessly, but when someone else borrows your computer there's always that moment of "wait what's wrong with your keyboard?" / "oh, sorry"
had that moment with a dvorak user once, it was funny
Why do y'all use non-qwerty tho?
Is it that nice to the fingers or wut
Don't answer efficiency cuz if ur tryna save time typing, then ur a nerd /hj
Efficiemcy
I also replaced all my shoes for slip ons for quick access
And uh, velcro instead of belts
Your friend sounds like they got some kind of superiority complex by how they speak about colemak users vs Dvorak.
Colemak folks on the forums are actually quite open to all keyboard optimisations, not just colemak itself. π€· Dreymar's layers can be applied to any layout, especially that extend layer is used by a lot of people.
There are also tools to measure finger distance covered and colemak is actually better for a wider group of languages + as I said, it keeps common keyboard shortcuts (cyrl+azxcv) in standard place (and shifts s only one position, so ctrl+s is also basically free). Usage of the keyboard is not only measured by the "easier to learn" aspect, but ease of usage in daily life. There are even layouts for programmers (keep various brackets in easier places).
The fact that Dvorak for Swedish exists as a "standard" is actually interesting as Dvorak was literally invented for English only - so it actually goes against "standards"... π€¦
@harsh tundra btw greetings Nikita the second
Lol, this makes me look like royalty π
I also tried Dvorak for some time... But apparently Z is 5th most common letter in Polish and Dvorak moves Z to absolutely worst position ever, lol.
(My partner actually wears flip-flops all the time, lol.)
He's a troubled guy, I try not to be too harsh.
This is also cursed: https://wicg.github.io/turtledove/
The Protected Audience API facilitates selecting an advertisement to display to a user based on a previous interaction with the advertiser or advertising network.
Mix this with AWS CloudFront Lambda@Edge and you get some games, look at how many hyper-local points of presence they have now:
You can write Rust code now of your own that runs at the edge in any or all of those places.
CloudFlare has the same with Wasm etc but not quite as many points of presence.
IKR!?, isn't it great!
I'm sure it's fiiiine!
oh neat they made a new attack map
oh I misread that
I thought that said "this just came across my screen" and thought they got ransomed
last one i knew of was by nordstrike or whoever, which went kerblam several years ago
i have a feeling what your response is
You're probably wrong
True
Gotta do that too
Some of my users are picky about using email on personal devices
I forget whos who
I generally don't be too mean about tickets if they can't login to their computer
oh damn they were actually up there working hard
Hi can you tell I'm an open source dev?
no
And unpaid pls help me change this
lol I missed the days mine looked like that
It was fun to jump around
Why no apply job
You should contribute to Monty :3
gib gud first issue
re: GitHub's awful embeds, if you surround the URL with < > it won't put in a preview.
Is Monday a holiday?
re: no.

See the open issues on Monty lel
If you want those awful embeds gone, petition pydis to accept me adding an autoresponder fixer
the embed isnt even that bad π
Cmon Roy, it's pretty bad
ah, hsp, i didn't know you had a job
i am currently unemployed
clearly not, you work for github
Well, it duplicates its summary text AND the org/repo name π
huh, still pondering?
Arl you're making my head hurt
I can't wrap my brain around how all the options work together
I think I got it, but it's not very clearly defined
probably the one with the three options
Probably
And I have to include all of [this] too each time, right?
https://github.com/onerandomusername/monty-python/blob/main/mkdocs.yaml#L17-L31
OH
mkdocs.yaml line 14
palette:```
thats how you deal with the zoomer attention span
Do the primary and accent colors stay where they are?
Do they go inside each palette?
Donβt wanna look stupid on my first PR to a new project
Tell 'em what you're gonna say, say it, then tell 'em what you said.
I don't know. That's why I gave it the good first issue.
If it works then it's right
wait whaaaat
I think read the docs will automatically build on a pull request
Oh yeah I did see that
Alternatively, you can use uv run mkdocs serve
Just make sure you install all groups first
Life is pretty good thanks @narrow pecan! Finished my second year of uni and now on a placement year before I return for my final year (unless I do a masters, haven't thought that far ahead yet ;)). I like that I'm able to look forward to the year ahead as well as the year after back at uni, as you say uni feels like it goes quickly - it's cool to split it up.
Also, you should have a Python 3.10 interpreter. I'll add that to the contributing document
Oh my God! Hi wookie!
It's been a long long while
!remind 572303014346489866 1y Part 6, the sequel to the sequel to the sequel to the threequel (I think?). How are ya doing?!
Your reminder will arrive on <t:1791136855:F>!
Hello :)
Yeah I'm not very active here anymore, but definitely not gone
I think my grandpa used one of those, god rest his soul
Just add >=3.10,<3.11 and uv will do it for you
are ye still the main pr judgin' fella
Hi new
Ask on topic questions in #python-discussion
I've been slacking lately but if I am doing pydis stuff that stuff is most likely reviewing PRs, yes haha
That's how XML repeating the tag name in the closing tag was invented
wasting so many bytes
EBML is so much better
(the way the Matroska video/audio container format works for example)
I plan to use 11 - qt soon
@vale raven thank you for the contribution
I'll check it to see if auto mode is enabled too
Whether Thomas is offended about your meme or heβs offended about the people heβs about to run over is up for your interpretation
This is in the context of Site Reliability Engineering, and understanding what MBA types are on about. I think it's pretty true.
- Translate to primitives
βWhich revenue, which cost, which risk, by when, owned by who.β If they canβt answer in one sentence, itβs fluff.
I'd just like to interject for a moment. What you're refering to as Linux, is in fact, GNU/Linux, or as I've recently taken to calling it, GNU plus Linux. Linux is not an operating system unto itself, but rather another free component of a fully functioning GNU system made useful by the GNU corelibs, shell utilities and vital system components comprising a full OS as defined by POSIX.
Many computer users run a modified version of the GNU system every day, without realizing it. Through a peculiar turn of events, the version of GNU which is widely used today is often called Linux, and many of its users are not aware that it is basically the GNU system, developed by the GNU Project.
There really is a Linux, and these people are using it, but it is just a part of the system they use. Linux is the kernel: the program in the system that allocates the machine's resources to the other programs that you run. The kernel is an essential part of an operating system, but useless by itself; it can only function in the context of a complete operating system. Linux is normally used in combination with the GNU operating system: the whole system is basically GNU with Linux added, or GNU/Linux. All the so-called Linux distributions are really distributions of GNU/Linux!
what's this from?
A conversation with an old coworker I had, paraphrased in my notes
I sorta wrote a short-ish βcredoβ about my take on software engineering haha, I should move to a log cabin in the woods now I guess
i dont get it
me neither
i think its saying that even though it would have the strongest signal if cringe was wifi, it also means it would have the strongest connection
signal and connection are diff things i think
anyway meme ruined
Is this just a shitposting channel?
do you think so
i wrote a pretty decent regex to find functions in a c file
from pathlib import Path; f = Path("yourfile.c"); src = f.read_text(); import re; pat = re.compi\le(r"\n([^;{#}/\"=!]*\w+)\s*(\([^;(){}=!]*\))\s*\{", re.DOTALL); ms = [*pat.finditer(src)]; print(*[m[0].strip().rstrip("{")\.strip() for m in ms], sep="\n\n")```
Output
couple false positives because it doesn't ignore keywords
nice, what do you use this for? just maintaining an index of functions?
I was thinking I might make some ctags-like script, yeah
so I could find one I was looking for quickly
separately been working on a parser for signatures so maybe could combine with that and do some fancy lookups
you should check out cscope
I haven't used it for anything yet
oh I think I've heard that mentioned somewhere
it's good?
yeah
I've used it on large C codebases and it comes in real handy
what can you find with it? does it get tripped up by macros and stuff
like find definitions?
As in?
Oh I get it
It'll give you a list of matches, and when you select one it'll open your editor to that place
oh that's awesome
classical physics?
well my technique is read the question once develop a basic concept of it and thats it
then i write it in my own wording in the test lol
nice
@vale raven you are now a Monty contributor woo
π
This is fun, site is pure Rust, and the same code runs in the terminal https://gluesql.org/glues/
Huh, it's actually a lot weirder to figure out exactly which python is active in uv than I expected.
I've ended up deciding this is actually the correct approach:
% python -c "import sys; print(sys.executable)"
C:\Users\Wilson\AppData\Roaming\uv\python\cpython-3.13.2-windows-x86_64-none\python.exe
because for whatever reason, uv python list and friends don't say which is active, and the other tools just give you the path to the binstub, not a versioned path.
% uv python list
cpython-3.14.0a6+freethreaded-windows-x86_64-none <download available>
cpython-3.14.0a6-windows-x86_64-none <download available>
cpython-3.13.5-windows-x86_64-none C:\Python313\python.exe
cpython-3.13.5-windows-x86_64-none C:\ProgramData\chocolatey\bin\python3.13.exe
cpython-3.13.2+freethreaded-windows-x86_64-none <download available>
cpython-3.13.2-windows-x86_64-none C:\Users\Wilson\AppData\Roaming\uv\python\cpython-3.13.2-windows-x86_64-none\python.exe
cpython-3.13.2-windows-x86_64-none C:\Users\Wilson\.local\bin\python3.exe
cpython-3.13.2-windows-x86_64-none C:\Users\Wilson\.local\bin\python3.13.exe
cpython-3.13.2-windows-x86_64-none C:\Users\Wilson\.local\bin\python.exe
cpython-3.13.2-windows-x86_64-none <download available>
cpython-3.12.9-windows-x86_64-none C:\Users\Wilson\AppData\Roaming\uv\python\cpython-3.12.9-windows-x86_64-none\python.exe
cpython-3.12.9-windows-x86_64-none C:\Users\Wilson\.local\bin\python3.12.exe
cpython-3.12.9-windows-x86_64-none C:\Program Files (x86)\SVP 4\mpv64\python.exe
cpython-3.12.9-windows-x86_64-none <download available>
cpython-3.11.11-windows-x86_64-none <download available>
cpython-3.10.16-windows-x86_64-none <download available>
cpython-3.9.21-windows-x86_64-none <download available>
cpython-3.8.20-windows-x86_64-none <download available>
cpython-3.7.9-windows-x86_64-none <download available>
The problem above is that I have multiple 3.13.2 versions, freethreaded and non.
So even just seeing python -V say 3.13.2 doesn't help me
I thin you can do python pin [VERSION]
I don't want to make a choice though, I want to see what the pyproject.toml had uv auto-activate.
I think pin creates a file called .python-version that stores the file instead of pyproject.toml.
See pin
uv is an extremely fast Python package and project manager, written in Rust.

