#ot1-perplexing-regexing

1 messages Β· Page 171 of 1

viral parrot
#

what if, for every item we count, we have to write a full paper of text before we can count.

upper flower
#

thats very bad

viral parrot
#

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.

upper flower
#

hm, thats inefficient

viral parrot
#

yes,, very

#

but it would take us 100 to coount 10

#

10*10

#

or ten square

#

10**2

upper flower
#

yeah

viral parrot
#

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?

upper flower
#

we could go as large as we want

#

10**10

viral parrot
#

yes we could

upper flower
#

but we wouldnt

viral parrot
#

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

upper flower
#

yea

#

ok but whats the point of all this tho

viral parrot
#

the point is to understastand that something takes larger time then others

#

from constant time to insane long time

upper flower
viral parrot
#

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

woeful phoenix
viral parrot
#

then its pretty alright

carmine apex
viral parrot
#

if your code is n**3 it will be pretty bad.. agree?

upper flower
#

yea

viral parrot
# upper flower 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

upper flower
kindred saddle
#

Halo

upper flower
#

ight i get it

woeful phoenix
viral parrot
# upper flower i see

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

viral parrot
#

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

upper flower
#
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

woeful phoenix
viral parrot
#

yes. lookup in an array in python is constant

upper flower
#

ok nevermind

#

i get the core point

tardy rain
#

What if your array isnt sorted gri

viral parrot
#

if your array is unsorted, how efficient can you sort it?

woeful phoenix
# upper flower the arr

I'm not sure what you're reducing in that example
you're just describing the complexity of an array index lookup

viral parrot
#

thats a better question to look into @upper flower

upper flower
viral parrot
#

if its very slow, make it faster

upper flower
viral parrot
#

or just as fast

upper flower
#

sounds hard but cool

viral parrot
#

yes, its very hard

#

but important

upper flower
#

also

#

does the speed of the algo change as u change the language? eg from python to javascript

viral parrot
#

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

upper flower
#
def sort():
  arr = [1,4,51,23,6,8]
  arr.sort()
  print(arr)


sort()
viral parrot
#

no

upper flower
#

so you can call this an algorithm?

viral parrot
#

you cant use the sort there

upper flower
viral parrot
#

you have to write it yourself

upper flower
#

heh?

#

how do i write it myself

#

what do u mean

viral parrot
#

you cant use .sort

#

you have to write the algorithm that does it yourself

upper flower
#

HMMM

bleak maple
#

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?

upper flower
upper flower
viral parrot
#

someone called Tim already wrote pythons .sort algorithm

tardy rain
#

It wont be 😩

tardy rain
#

Thats why you dont usually implement sorting functions yourself

#

You do it now for practice and learning

upper flower
#

ok.

viral parrot
#

if its n*2 it is worse... heck if its n it is still worse! πŸ˜„

upper flower
#

oh god wait

#

im so confused hold on

carmine apex
#

honest question why are things that can be radix sorted not radix sorted

upper flower
#
sort()
```so i put the list in the parenthesis here (the sort() is the algo)
#

is that the basic idea

viral parrot
#

yes, but you cant use .sort

upper flower
bleak maple
carmine apex
#

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

viral parrot
#
def gri_sort(my_list: list[int]):
    # coode here
    return my_list
upper flower
#

wait wait wait

#

so basically sort is like ascending to descending right

viral parrot
#

yes

upper flower
#

HMMMM

bleak maple
#

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

viral parrot
#

uni students normally get a week to solve this problem after learning about this topic @upper flower

upper flower
#

im thinking of ..

bleak maple
#

@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:

upper flower
#

yeah this is insane

#

i cant think of how to do this

bleak maple
#

I forgot to add "5", re: stability, but that's true also

viral parrot
# upper flower i cant think of how to do this

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

upper flower
#

right

viral parrot
#

sometimes you dont have a scale to weigh your things

#

and you have to rely on normal counting

upper flower
#

i should go sleep now idk if i should try to make a sort algo if it takes uni students a week

bleak maple
#

That's a GREAT reason to try, IMO.

upper flower
#

im just a dumb high school guy

bleak maple
#

A week is just to give everybody time to finish given real life schedules etc, it's not gonna necessarily take you that long.

viral parrot
bleak maple
#

You're never too young to learn to do a thing, unless that's something like power-lifting a massive weight.

viral parrot
upper flower
#

ight..

#

i will try to make it

#

but gotta sleep now

bleak maple
upper flower
#

thanks for the help

#

bye

viral parrot
#

our pleasure!

upper flower
#

gn

viral parrot
#

and thanks guys for letting me explain my own way!

bleak maple
#

May wolves guard your coffin well!

viral parrot
#

its very easy to want to jump in and hhelp or correct detaiils

bleak maple
#

Cool server

carmine apex
bleak maple
viral parrot
#

yeah.. behemoth! πŸ˜„

bleak maple
#

BURN HAIL THE KVLT BURN

viral parrot
#

did we just show our age @bleak maple ? πŸ˜„

bleak maple
carmine apex
#

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Ε„.
yert

viral parrot
#

well, you always have Dimmu Borgir πŸ˜„

bleak maple
carmine apex
bleak maple
#

I own a bunch of albums that you aren't even allowed to buy/sell on Discogs

carmine apex
#

can always discover older bands well after their prime

viral parrot
#

sure... but you dont really see anyone changing musical taste after 28ish

bleak maple
bleak maple
#

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

viral parrot
#

those norwegians and their black metal..

#

oil and black metal! πŸ˜„

bleak maple
#

The Discord role setup on that server is hilarious

royal lakeBOT
#

src/go/token/token.go line 25

literal_beg```
raw zephyr
#

reminds me of this trick from the Golang source code

#

it feels like such a hack lmao

round pendant
#

is it to then do literal_beg < x < literal_end?

raw zephyr
#

yes

#

although, I don't think it has *_end "tokens"

royal lakeBOT
#

src/go/token/token.go line 34

literal_end```
raw zephyr
#

im blind

harsh tundra
jovial oriole
#

usually no seasoning

#

it comes with salt

#

but it isnt "raw", the can is sterilized in produciton

bleak maple
#

lol I just got invited to the Amazon "Vine" program

#

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

lament cairn
#

i bet one of those agreements are "dont call it a dropshipped product"

bleak maple
#

It does say you aren't allowed to say you are a "Vine Voice" when contacting a 3rd-party seller

bleak maple
#

@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.

smoky hearth
#

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

bleak maple
# smoky hearth Honestly, you can't do it that way

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.

smoky hearth
#

GDP is a too unfocused metric unfortunately

tardy rain
#

Why are we comparing different countries' average salaries for fullstack?

bleak maple
#

This is for all jobs, not fullstack.

#

I'm investigating small-medium businesses globally to prove a friend is wrong.

smoky hearth
bleak maple
smoky hearth
#

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.

bleak maple
#

Doing the PPP adjustment is actually crucial, and a step I forgot. Nice.

smoky hearth
#

Yeah πŸ™‚

#

That's why Switzerland got downranked

#

And the north countries

polar wolf
smoky hearth
#

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

bleak maple
#

Like, very regular.

polar wolf
#

Huh

#

I thought the list had uk above usa for software engineers

smoky hearth
#

yeah that was ai generated

#

and only looking on gdp

bleak maple
# polar wolf 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.

polar wolf
#

Usa and uk are trash

bleak maple
#

In the above statement I am not defending/selling the USA in any way by the way.

#

Lycia is my favorite nation.

polar wolf
bleak maple
#

Gonna hike this trail next year if I can fit it in.

polar wolf
#

Ah

smoky hearth
#

that's cool

bleak maple
#

and Czechia, and Finland

smoky hearth
#

yeah and latvia they have the good girls

bleak maple
#

and riflemen

smoky hearth
#

riflemen?

#

ah okay like hunters

#

how good must be poland that it ranks so high, this really arouses my interest

bleak maple
solemn tulip
bleak maple
#

A nerdy math joke reply today is my most-engaged-with Tweet in a long time

tardy rain
#

It definitely isnt right for the UK at least

#

Or literally any country with progressive taxation

#

(which is most countries)

smoky hearth
#

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

bleak maple
#

This is starting to look more plausible ranking-wise to me. Nice.

smoky hearth
#

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

tardy rain
#

Where do you feel it ranks

smoky hearth
#

below germany above uk

tardy rain
#

Some of those net values seem off

smoky hearth
#

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

open cliff
# smoky hearth

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")
royal lakeBOT
smoky hearth
#

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

bleak maple
#

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.

uneven pine
#

Why are we moving over here?

bleak maple
#

Oh the other convo seemed unrelated to that

worthy oracle
bleak maple
uneven pine
bleak maple
# bleak maple

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."

tardy rain
#

Master manipulator here

#

AMA

uneven prism
#

does anyone know @fathom hazel

bleak maple
#

What's everybody's favorite programmer joke?

uneven prism
#

hey defiler do u know @fathom hazel

#

??

bleak maple
#

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."

bleak maple
uneven prism
#

ok

royal lakeBOT
solid pollen
#

@narrow pecan are you?

wooden silo
narrow pecan
#

!remind @solid pollen 5y both still here?

royal lakeBOT
#
Aye aye, cap'n!

Your reminder will arrive on <t:1917105488:F>!

acoustic moss
#

2020 holy hell

smoky hearth
bleak maple
#

incredible things happened today with someone who hacked into my extension to make it work without a paid subscription

The hack? intercept all server calls locally and return values the extension would expect from a paid user https://t.co/AJLI1MILpL

lament cairn
#

muffled screaming

lament cairn
#

most companies and ppl would be like
"Hi,
Cease and desist for you.

Go to hell,
<name>"

bleak maple
vale raven
vale raven
#

Oh, and concurrency

bleak maple
#

Well played, that's my second and third favorites right there.

vapid nymph
vale raven
#

Thanks

bleak lintel
#

good to know the reminders system works lol

solid pollen
solid pollen
#

I keep forgetting to unmute this server and move it up my server list

#

I should hang out in here every so often

shell raptor
#

Any book recommendations for learning modern C code?

uneven pine
#

Does modern C truly exist?

shell raptor
#

Well... atomics didn't exist in 1972, did they

shell raptor
#

ooh free book

shell raptor
jaunty wraith
shell raptor
#

ah

#

I'm probably in the former category

wooden silo
jaunty wraith
#

you could just read both Β―_(ツ)_/Β―

sturdy heart
#

hi gus

#

is dr angela yu 100 day python a good course ?

woeful phoenix
jaunty wraith
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);
| ^~ ~~

solemn tulip
jaunty wraith
solemn tulip
#

do silent pings show up in mentions? pithink

undone granite
#

@solemn tulip only one way to find out

solemn tulip
#

Seems like yes, TIL

uneven pine
#

Silent pings????

jaunty wraith
jaunty wraith
uneven pine
#

Explain?

jaunty wraith
#

start the message with @silent and it will not send a notification for any mentions

brazen ingot
#

Δ§

solemn tulip
uneven pine
#

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

solemn tulip
#

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

uneven pine
#

It definitely still pinged me

#

I mean

solemn tulip
uneven pine
#

As pingy as it can get

jaunty wraith
uneven pine
#

Seems virtually useless if all it does is what, turn the sound off?

#

I still get the toast notification

solemn tulip
#

audible ping idk, I was viewing the channel already

jaunty wraith
jaunty wraith
tardy rain
#

Wake me up inside

dull cliff
#

AI lacks context. I definitely think much learning comes from tinkering and making stuff.

uneven pine
#

Lrn2cfg

dull cliff
#

I hope I'm in the right channel for this kind of discussion and I didn't wake anyone up. πŸ™‚

dapper dew
#

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

willow narwhal
#

You can configure channels to ping you, can't you?

dapper dew
#

TIL

uneven pine
#

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.

bleak maple
#

Yeah I have exactly one low traffic server run by a friend that I leave set that way

narrow pecan
narrow pecan
solid pollen
#

omg I remembered to unmute this server and move it up the channel list

bleak maple
#

I love this current channel title.

solid pollen
#

is bast still around

vapid nymph
#

@coral void? No they died last night.

#

Sorry you had to find out this way @solid pollen

coral void
solid pollen
vapid nymph
#

Jesus between the two of you have over 20 mutual friends and 40 mutual guilds

solid pollen
#

lol makes sense

bleak maple
#

Setting your junior engineers up with AI coding tools:

solid pollen
#

what could go wrong, worst case scenario the tool uninstalls itself

bleak maple
#

best-case

solid pollen
#

you're not wrong

#

although to be fair

bleak maple
#

I really don't like junior/senior as ideas much but I don't have a great replacement.

solid pollen
#

if bad AI code coming from a junior on a critical piece of your infrastructure gets to prod, you have a real procedure issue

bleak maple
#

To me, I will take a junior with the "Beginner's Mind" before I take a senior who has forgotten that.

solid pollen
#

absolutely

bleak maple
#

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?"

solid pollen
#

that'd be a weird ass interview question

bleak maple
#

I've had it

#

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

coral void
#

Makes me smile when my otns come up

bleak maple
#

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?"

vale raven
#

Counter question: What does an agent give you that β€œjust running your Ansible playbook more often” doesn’t?

bleak maple
#

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

vale raven
#

At least link the repo

#

so I can sapm issues about our lord and savior Ansible

vale raven
bleak maple
#

I'll edit that phrasing

vale raven
#

(not attacking, just countering)

bleak maple
#

No you're right, that was sloppy.

vale raven
#

count-er-ing

bleak maple
#

I like to live intentionally.

vale raven
#

count...

#

fuckit

#

"debating"

#

can't speel

bleak maple
#

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.

bleak maple
# vale raven At least link the repo

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

vale raven
#

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

bleak maple
#

I'm only still in the Epic Games one (Unreal Engine source code access), the PyDis one, and the Rubinius one.

bleak maple
vale raven
#

That's a neat embed

#

Oh damn

#

This has got stacks of artsy diagrams

bleak maple
#

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 EasyGoldSkull

#

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

vale raven
#

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?

bleak maple
#

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.

vale raven
#

It’s nice

#

I like it

bleak maple
#

That's a sad single arm representing a thing that is multi-paradigm and interconnected.

#

The robot looks sad to me.

vale raven
#

It looks like a dying skeleton is hanging upside down

#

Thanks Lance

bleak maple
#

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.

vapid nymph
#

I figure that's helpful

undone granite
smoky hearth
#

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.

wooden silo
#

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.

smoky hearth
#

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

wooden silo
#

It's not the end of the world if the structure you choose is not optimal.

#

And you can restructure later if you want.

smoky hearth
#

all these examples group it by feature

smoky hearth
wooden silo
#

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.

wooden silo
smoky hearth
#

hm ok

#

I guess then I continue reading my book

jaunty wraith
bleak maple
#

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."

tardy rain
#

But are children ever innocent

#

Little shits

wooden silo
#

Is it easier to figure out what the system does if you organize by type or by feature? Probably the latter.

bleak maple
#

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?

smoky hearth
#

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

wooden silo
wooden silo
smoky hearth
#

yes

#

which tool can you recommend for automatic document generation in ts projects

tardy rain
#

An intern of choice

tardy rain
#

Have you ever met a child gri

upper flower
tardy rain
#

Exactly

upper flower
#

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

tardy rain
#

Youre fully a teenager

upper flower
#

make my blood boil

upper flower
tardy rain
#

🀨

#

I mean its not an insult

upper flower
#

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)

undone thorn
#

ah

upper flower
#

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

undone thorn
#

on the bright side

#

this is all math you will probably never do again in your life

upper flower
#

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

undone thorn
#

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

upper flower
upper flower
undone thorn
#

sounds like you'll never be proud of yourself

upper flower
#

i meant if i had gotten that one wrong i wouldnt reach the 20 mark

#

it would be 17/25

undone thorn
#

why care about what didn't happen

upper flower
undone thorn
#

how is that information useful to you at all to improve or reflect on

#

what could you gather from that

upper flower
#

it did happen yk i got what i wanted

upper flower
undone thorn
#

there you go then, take that lesson and be proud of yourself nonetheless

upper flower
#

xd okay

wooden silo
#

It just tends to feel pretty different once those hormones settle down

upper flower
#

and when do those hormones settle down...

wooden silo
#

Early to mid 20s for boys

#

A bit earlier for girls

upper flower
tardy rain
#

Im 29 and i still dont feel like an adult

#

At least i dont do cringe shit anymore

#

Those were difficult times

wooden silo
#

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.

tardy rain
#

I dont think its in the plans for us to have kids

#

Does that mean i can keep fucking around

wooden silo
#

I mean, yeah

tardy rain
#

Excellent

wooden silo
#

You're not gonna have a defenseless innocent human being die on your watch if you mess up too much.

tardy rain
#

No spawn of mine would ever be defenseless

wooden silo
#

So you're spared from that nightmare scenario.

vale raven
#

Takes forever to get enough skill points to upgrade

wooden silo
#

Human children are notoriously incompetent and useless

#

Compared to almost all other species

stark prawn
#

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

wooden silo
#

It seems to be evolutionarily advantageous

#

Our big brains are worth the upfront time and resource investment

#

For the purposes of survival and reproduction

alpine tusk
#

a pretty risky play tbf

wooden silo
#

You'd think so, but the results speak for themselves

alpine tusk
#

though nevermind, it's not like we were dropped with this disadvantage out of the blue into the wilderness

wooden silo
#

Yeah, it'd be tough to bootstrap with our current specs

#

We kinda rely on our pre-existing knowledge base and social structures

alpine tusk
#

can't wait till we get synthetic super intelligence

wooden silo
#

I'm kinda fine without it

alpine tusk
#

all we have to do is just grow a human brain, but bigger

alpine tusk
wooden silo
#

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.

stark prawn
#

I don't see it going well under capitalism\

wooden silo
#

Yeah, it doesn't feel too good to have US and Chinese tech giants at the helm of this type of venture.

alpine tusk
#

would you rather it's left unexplored for the time being?

harsh tundra
wooden silo
alpine tusk
#

that makes sense

uneven pine
#

Knock the spam off

thick ore
#

choose my programming language? python

#

obviously

vale raven
thick ore
#

rust is a must

alpine tusk
timid latch
#

πŸ¦€

mossy mango
#

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

graceful basin
mossy mango
graceful basin
#

Typically ninja, or cmake --build (which will typically call ninja or make)

mossy mango
#

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

mossy mango
#

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 πŸ’š

smoky hearth
royal lakeBOT
#

@wheat lynx

It has arrived!

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)

undone granite
#

this dates back to 2020, impressive

vapid nymph
#

thanks, finally remembered to sign up this year

shell raptor
#

Did octoberfest become less annoying for open source projects?

#

oh, projects now have to manually tag themselves as hacktoberfect

mossy mango
mossy mango
bleak maple
#

Finally arrived! ABBATH

green breach
bleak maple
#

"The Evolution of the Cult"

green breach
#

Huh, forgive my ignorance but what is Black Metal?

bleak maple
#
The Decibel Store

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.

#

Β«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...

β–Ά Play video
#

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.

shell raptor
#

SΓ³lstafir is also the name of a different band

bleak maple
#

Yeah, a cool one.

digital granite
#

like sugar on my tongue

#

tongue

#

tongue

#

her body is so milf

#

milf

#

milf

late orchid
#

sup

digital granite
#

invite me if she comes

#

cums

#

comes

late orchid
#

erm what

bleak maple
#

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.

rough sapphire
#

Hi

dusky depot
#

.

#

M

#

?

#

M

bleak maple
#

What in laser-space-hell are WebUSB and WebHID?

#

"Web Bluetooth" sounds like it comes with a free Advanced Persistent Threat in the box.

vapid nymph
bleak maple
vapid nymph
#

Yeah

#

Or configured an ESP32 that had a browser config

bleak maple
#

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.

vapid nymph
#

Lol

bleak maple
#

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.

vapid nymph
#

What the heck is my name set to

#

What is a @vapid nymph

bleak maple
#

Macera is adventure/quest in Turkish.

#

I assumed that was the joke.

vapid nymph
#

It is?!

bleak maple
#

Hai

vapid nymph
#

Ok let's give this a shot

bleak maple
#

(Turkish at bottom)

vapid nymph
#

Dvorak

#

Why is it laid out like this

#

Ow

#

Hard layout

sharp jasper
lament cairn
bleak maple
sharp jasper
#

why someone would name themselves "macerated pepper" now is another question

bleak maple
bleak maple
harsh tundra
sharp jasper
#

It's fine, but seems post facto.

lament cairn
opaque merlin
#

Helo friends

vapid nymph
bleak maple
vapid nymph
#

And I was thinking of superstarify

#

So it's supposed to look like something you'd think is a singer name

harsh tundra
# vapid nymph Why is it laid out like this

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

bleak maple
#

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.

vapid nymph
#

Ah so Colemak is better than dvork

bleak maple
#

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.

sharp jasper
#

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

vapid nymph
#

Learning three new layouts for fun brb

bleak maple
#

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.

vapid nymph
#

Me!

bleak maple
#

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.

vale raven
#

I could probably do something fancy
But my mentall illness keeps me from feeling capable of doing so

bleak maple
#

He pre-seeds the secrets in the container in a really badass way with a thing he wrote in Zig etc.

bleak maple
vapid nymph
#

I should learn more languages

#

And finish my embedded project

bleak maple
#

Every language you learn is another sturdy place to stand attached to the cliff face you are edging along.

harsh tundra
# bleak maple Yeah, my buddy there runs like 4 or 5 "layers" on his custom main desktop keyboa...

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

vapid nymph
#

I have a project written in vite that gets compiled onto a microcontroller

vapid nymph
#

Using some c code that bundles the built files

harsh tundra
bleak maple
#

"Where we're going, we won't NEED roads..."

harsh tundra
#

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)

bleak maple
#

Is my buddy's take haha

vapid nymph
#

Tell them I'm learning Colemak just to spite them

#

Also I love RFC 2549

uneven pine
#

I did give dvorak the ol college try back when I was 17

#

I spent about a month with it before I gave up

bleak maple
sharp jasper
#

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

ripe birch
#

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

tardy rain
#

Efficiemcy

#

I also replaced all my shoes for slip ons for quick access

#

And uh, velcro instead of belts

harsh tundra
# bleak maple

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"... 🀦

ripe birch
#

@harsh tundra btw greetings Nikita the second

harsh tundra
harsh tundra
harsh tundra
bleak maple
shell raptor
#

The Protected Audience API facilitates selecting an advertisement to display to a user based on a previous interaction with the advertiser or advertising network.

bleak maple
#

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.

bleak maple
#

I'm sure it's fiiiine!

vale raven
#

full stop

#

TF did you just do?

carmine apex
#

oh neat they made a new attack map

vale raven
#

oh I misread that

#

I thought that said "this just came across my screen" and thought they got ransomed

carmine apex
#

last one i knew of was by nordstrike or whoever, which went kerblam several years ago

carmine apex
vale raven
#

You're probably wrong

vale raven
vale raven
#

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

vapid nymph
#

Hi can you tell I'm an open source dev?

carmine apex
#

no

vapid nymph
#

And unpaid pls help me change this

vale raven
#

lol I missed the days mine looked like that
It was fun to jump around

vapid nymph
#

Also lol @ 3 prs to prek when I don't even know rust

vale raven
#

corpo life

ripe birch
vapid nymph
#

You should contribute to Monty :3

vale raven
#

gib gud first issue

vapid nymph
bleak maple
vale raven
#

Is Monday a holiday?

vale raven
vapid nymph
#

If you want those awful embeds gone, petition pydis to accept me adding an autoresponder fixer

acoustic moss
#

the embed isnt even that bad 😭

vale raven
#

Cmon Roy, it's pretty bad

carmine apex
acoustic moss
#

i am currently unemployed

carmine apex
#

clearly not, you work for github

bleak maple
shell raptor
vale raven
#

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

jaunty wraith
#

probably the one with the three options

vale raven
#

Probably

#

OH

royal lakeBOT
#

mkdocs.yaml line 14

palette:```
vapid nymph
#

Yeah it only goes in the one file

#

I don't have mkdocs material insiders

vale raven
#

okay but like

acoustic moss
vale raven
#

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

bleak maple
vapid nymph
#

If it works then it's right

vale raven
vapid nymph
#

I think read the docs will automatically build on a pull request

vale raven
#

Oh yeah I did see that

vapid nymph
#

Alternatively, you can use uv run mkdocs serve

#

Just make sure you install all groups first

wheat lynx
# royal lake <@493839819168808962>

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.

vapid nymph
#

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

wheat lynx
royal lakeBOT
#
Sure.

Your reminder will arrive on <t:1791136855:F>!

wheat lynx
#

Yeah I'm not very active here anymore, but definitely not gone

vale raven
#

Just add >=3.10,<3.11 and uv will do it for you

carmine apex
pallid herald
#

Hi

#

I am new

#

Any one help me to start my python learning and study

vale raven
#

Hi new

vale raven
pallid herald
#

Hi

#

I want to learn python from scratch

wheat lynx
shell raptor
#

wasting so many bytes

bleak maple
#

EBML is so much better

#

(the way the Matroska video/audio container format works for example)

vapid nymph
ebon shell
#

deitydork is amazing

#

almost as good as godlygeek

vapid nymph
#

@vale raven thank you for the contribution

#

I'll check it to see if auto mode is enabled too

vale raven
#

Hopefully it works right

vapid nymph
#

(it should default to and have prefers dark mode support)

#

The third option of this

bleak maple
vale raven
#

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

solemn tulip
ebon shell
bleak maple
#

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.
toxic crown
#

#ot1-perplexing-regexing

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!

bleak maple
#

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

upper flower
thick ore
#

i dont get it

upper flower
#

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

frosty current
#

Is this just a shitposting channel?

upper flower
mossy mango
#

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

woeful phoenix
mossy mango
#

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

woeful phoenix
#

you should check out cscope

mossy mango
#

I haven't used it for anything yet

mossy mango
#

it's good?

woeful phoenix
#

yeah
I've used it on large C codebases and it comes in real handy

mossy mango
#

what can you find with it? does it get tripped up by macros and stuff

#

like find definitions?

woeful phoenix
#

it can handle macros too (i.e. it'll find #defines)

mossy mango
#

oh wow

#

can it show the function

upper flower
#

ok

#

physics aint as hard as they say

woeful phoenix
#

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

mossy mango
upper flower
#

projectile motion stuff

#

classic ig

mossy mango
#

yeah sounds like

#

Newtonian I think

#

we did lots of box problems as well

upper flower
#

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

mossy mango
#

nice

upper flower
#

actually

#

i have a test tmr as well

#

applying same technique lol

mossy mango
#

you prob do fine

vapid nymph
#

@vale raven you are now a Monty contributor woo

vale raven
#

πŸŽ‰

bleak maple
bleak maple
#

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

glad folio
bleak maple
glad folio
#

See pin