#ot1-perplexing-regexing

1 messages ยท Page 116 of 1

grave cove
#

bro got cooked by the whole lobby

frozen radish
#

nice by that logic u must also delete ur account

stable fulcrum
#

what happened here?

marble bay
#

I went to check mine but then realised it's just midnight so I have a total screen time of only 2 minutes today!

#

๐Ÿ’ช

terse skiff
#

๐Ÿ˜ญ๐Ÿ™

marble bay
#

Aight imma go sleep

glossy niche
#

does anyone know anything about object oriented databases?

#

I'm not trying to do anything with them

#

I just think their cool

young shoal
#

what about them?

glossy niche
#

what about them

young shoal
#

they're interesting

glossy niche
#

I wanna know if there is some theory that explains the wide range of db's we have today

wicked haven
glossy niche
#

KV, graph, object oriented, ob-relational

#

sql

#

I wanna know if there is something that makes each different rather than just being vibes

graceful basin
#

You model data differently

glossy niche
wicked haven
glossy niche
graceful basin
#

There is way more written on sane data modelling in RDBMS than in OODBMS

glossy niche
#

like, in Sci literature ?

graceful basin
#

Just in general IG

#

Fewer publications, books, blog Posts, Tutorials, articles, ..

glossy niche
#

that is treu, which is precisely why I find them interesting

#

document db's and OO db's are different things

#

at least afaik

#

oh mb yert

#

as I understand it so far, the primary distinguishing feature of oopdbms is that they store objects as one big chunk rather than over multiple tables, basically highly denormalized

#

another thing I read in multiple places is that they lack query flexibility due to how they store things as big chunks kind of like a blob store

tight granite
#

kill me

#

500+ packets lost in the first 10 seconds

drowsy rose
#

what is vivek doin

grave cove
#

he wants your kidneys

drowsy rose
#

Twitter โ†’ (@Ayase_0404) https://twitter.com/Ayase_0404
Instagram โ†’ (@ayase_0404) http://instagram.com/ayase_0404
INST โ†’ https://piapro.jp/Ayase_0404
NICONICO โ†’ https://www.nicovideo.jp/mylist/64177300

Ayase 1st. EPใ€Œๅนฝ้œŠๆฑไบฌใ€2019.11.17 RELEASE๏ผ
Official XFD โ†’ (https://youtu.be/2Idh4ILwE8o)

้…ไฟก ใฏใ“ใกใ‚‰โ†“
https://linkco.re/aexrrVnX

CDใ”่ณผๅ…ฅใฏใ“ใกใ‚‰โ†“
https://ay...

โ–ถ Play video
#

song dump

#

fire song

tight granite
#

vivek no

drowsy rose
#

not my kidneys

torpid bone
tulip falcon
tight granite
#

what's an algorithm I can use to safely verify that I (the server) wrote this text?

#

something like a signature but idk how to go about it

graceful basin
#

A digital signature is a mathematical scheme for verifying the authenticity of digital messages or documents. A valid digital signature on a message gives a recipient confidence that the message came from a sender known to the recipient.
Digital signatures are a standard element of most cryptographic protocol suites, and are commonly used for so...

tight granite
#

or any specific algorithm

graceful basin
#

seems like cryptography is your best bet, HS256 is what jwt uses, but can't find an impl that's not jwt

#

but maybe you do in fact want jwt

tight granite
#

sorta? i'm trying to implement an admin system with one-time keys

#

oh i just realized i don't need signatures

#

oh i do need signatures

burnt solar
#

Is pistachio ice cream good?

acoustic moss
#

yes

signal canopy
#

now i want some

acoustic moss
#

many people dont know this but as an adult you can just buy ice cream whenever you want

acoustic moss
frozen radish
#

i just had a fat burger

#

Witness

burnt solar
#

I have never had pistachio ice cream

acoustic moss
#

ok hear me out

burnt solar
acoustic moss
#

why did society decide to expand burgers in the vertical direction

#

instead of the horizontal

frozen radish
frozen radish
#

horizontal would make it a sub

acoustic moss
#

hmm i was thinking more of a pizza sandwich

frozen radish
#

idk wth that is

acoustic moss
#

thats because i made it up rn

frozen radish
#

i forget u americans call non beef burgers sandwiches

frozen radish
acoustic moss
#

im not american ๐Ÿ’€

frozen radish
#

my mistake your passion for cake confused me

burnt solar
#

diabeto roll back to kitchen

frozen radish
#

simply have a higher metabolism

bright grove
#

me

tulip falcon
#

Or pepper

burnt solar
#

yuck

tulip falcon
#

Non-dessert ice cream

young shoal
#

savory ice cream

low chasm
#

small question; I've got a static site generator that I've built, and a server that I intend to deploy the site it generates on. To do this, I've got two options:

  • I can have an instance of the SSG running on the server, use a github action that SSHes into the server when new content is pushed to my blog, and runs git clone to clone the new stuff, and then rerun the SSG to build everything (with caching and whatnot, so only the new stuff is built).
  • Or, I can have my SSG just run on github actions when new content is pushed, and then use rsync or something to push the generated website files to the server.
    I'm not sure which one to go for/what would be more idiomatic.
#

I'll be pushing to github whenever I write new content.

grave cove
acoustic moss
#

holy shit

frozen radish
#

no u fucking cannot because gravity

#

im about to smash this see u boys on the other side

grave cove
#

do not the candy

frozen radish
#

its actually just not as good as regular kitkat

glossy niche
#

unless you are building something that needs to be built on the same platform, it's always better to use a single machine for builds and then transfer the build files elsewhere

#

this has a number of benefits

#

like, if you have a compute heavy build, you only need to do it once

#

it also simplifies the deployment logic because you just have to pull the build and run it

#

AFAIK CI is responsible for building and testing while CD is for deployment

#

like, the companies I've seen mostly use Jenkins CI to build and test which produces a docker image and then argo CD and k8s handle the deploy, the builds r completely centralised

#

this is my opinion as a guy with about couple years of exp, more informed opinions welcome pithink

high verge
glossy niche
high verge
#

wth are you talking about

#

im talking about your python docs

#

for projects

glossy niche
#

not sure what u mean then

#

wait nvm

high verge
#

forget it man

#

you're stressing me

glossy niche
#

sorry I'm tired asf

ocean pond
small coral
#

wah-

grave cove
low chasm
#

so build times are usually just like, milliseconds

low chasm
#

Swagger is a tool for generating API documentation.

low chasm
#

or well, it's kind of moot now since I've decided against both

spare oriole
#

use a github action that SSHes into the server when new content is pushed to my blog
scary

low chasm
#

I'll write a custom webhook instead

#

that way no ssh is involved

ocean pond
bleak lintel
#

for the most part

spare oriole
bleak lintel
#

you can lock keys down with command limitations in authorized_keys, you can restrict user privileges so CI can literally just copy files, you can run everything on a Tailscale network that you join in the deploy stage so you don't even have to have SSH exposed outside of a VPN (see https://github.com/jb3/blog)

#

but the big thing is: rsync is just SSH lol

#
# ~/.ssh/authorized_keys
command="rrsync /usr/share/nginx/site" ssh-ed25519 .....
#

this would allow that SSH key to only change files in /usr/share/nginx/site on connect

#

cool nicer radio options on forms have been deployed

tight granite
#

hell yeah

tulip falcon
#

How cold?

spare oriole
#

that's great weather

#

skill issue

glossy niche
#

sameeeeeee

#

but only if low humid

tulip falcon
#

It's hot asf and humid here

glossy niche
#

~~skill issue ~~

glossy niche
drowsy rose
#

frieren anylsis bc biredome
arguably, the demons can represent nature itself. you can see the hero party as analogous to the advancement in technology, human knowledge and the collective wisdom of society, like in frieren being a thousand years old, representative of the culmination of knowledge, and the defeat of the demon lord being the ultimate triumph of society against nature.

#

frieren w

tulip falcon
#

What

#

Where is frieren

drowsy rose
#

???

grave cove
#

i eated the frieren

#

sory

drowsy rose
#

nooo

#

@strange blade gon

ocean pond
# glossy niche <:pithink:652247559909277706>

I think you should tell her that you like her. If she feels the same way, that's awesome. If she doesn't, that's unfortunate. But then leave her alone. That's all.
If you disagree with this, or don't want to do this, then that's your decision. I'm not gonna try to convince you anymore.

ocean pond
solemn tulip
#

I require under 30 to survive

carmine apex
#

bold of yall to not specify units

#

yall can have either 29 or 31 Kelvin, per requests

solemn tulip
carmine apex
#

not sure it'll help much

solemn tulip
#

can I become a superconductor?

stark prawn
#

you are already super

solemn tulip
#

you're saying I need to become a conductor

tight granite
#

i have an abstraction for connections, connection handlers, and connection listeners

#

i just now realized i have to redesign this thing to support UDP

#

...since it doesn't have a concept of connections.

#

there is an option tho: after 1 call to ReadLine on a UDP "Connection", I'll just close the "connection"

#

yeah that seems like a valid choice

acoustic moss
#

premature abstraction claims another life

#

this is why i dont abstract until i rewrite the same logic the 3rd time

solemn tulip
#

and now things are getting shoehorned into the wrong abstraction

#

the correct abstraction is probably a Session or something

#

and the communication can be beneath that abstraction

#

or I guess any way to have some external API that doesn't vary between TCP/UDP

young shoal
#

the real way is to not care about udp and realize the mild speed gains are not worth

uneven pine
#

It's really easy to forget that it's tornado siren test day and get very confused

tardy rain
#

The US where they build their straw houses right where tornados form

#

Not the smartest idea

willow narwhal
#

Found a new wordle variant:

Flagle #848 - 5/6 ๐Ÿ

๐ŸŸฉ๐ŸŸจโฌ›โฌ›โฌ›
๐ŸŸฉ๐ŸŸฉโฌ›โฌ›โฌ›
๐ŸŸฉ๐ŸŸฉ๐ŸŸจโฌ›โฌ›
๐ŸŸฉ๐ŸŸฉโฌ›โฌ›โฌ›
๐ŸŸฉ๐ŸŸฉ๐ŸŸฉ๐ŸŸฉ๐ŸŸฉ

https://flagle-game.com/

acoustic moss
#

lol this is almost trivial without hard mode

uneven pine
#

Semantle is my favorite

carmine apex
#

how darest all of ye disrespect worldle

jaunty wraith
#

worldle ๐Ÿ”› ๐Ÿ”

glossy niche
barren chasm
#

You wish

#

I have the power of basic offense spell

#

Zoltraak

glossy niche
#

she canonically does not

#

she just gets eaten

barren chasm
#

Uh

#

Afaik robin is not a mimic

#

But a bord

glossy niche
#

any human is a mimic if their jaw opens up enough

barren chasm
#

Uhh

#

๐Ÿคจ

glossy niche
#

dislocated jawophobic, are we?

barren chasm
#

Yes?

#

What's wrong with that?

barren chasm
thin swallow
#

Structuring a couple of github hosted git repos
Repo A: Main project
Repo B: fork of the project. No changes compared to repo A. Only adds some extra files/changes config

Any idea i could version control those extra files/config?

grave cove
#

what is the point of having 2 repos

thin swallow
#

repo A is public
repo B has private, potentially sensitive config files added

grave cove
#

use env vars

thin swallow
#

it isnt particularly sensitive, more like data that should be version control + is in a private org repo

thin swallow
grave cove
#

don't check in the .env with version control

thin swallow
#

need to version control added template files and certain, non .env config

grave cove
#

you shouldn't be having 2 almost identical repos just for config

thin swallow
#

second one is using that repo with added data/files

#

except that id like the added data + template files to be version controlled

thick osprey
#

Juggling keeping both repos in check with each other will be a nightmare. You'd be better off having the code repo public and building a private repo which installs the code repo instead of being a fork or clone.

For the configs, if it is sensitive data that would could as secrets then keep it in a secrets vault. Don't commit it.

#

You could consider having the private repo contain a sub module of the public repo. Slightly less nightmare keeping them sync'ed with a few tradeoffs of sub module complexity.

ocean pond
severe laurel
#

has anyone played once human?

solemn tulip
#

or is it fine to just have it locally version controlled

#

if it's fine then you can use one repo with a separate branch for that stuff, that you then rebase on top of the main branch

tardy rain
tight granite
#

one day i'll be a real human

terse skiff
dreamy silo
#

@timid latch Going here not to interrupt that other conversation.

#

I've taken up hobby circuitry and was interested in making a bunch of flip flops, to make a sort of ram. Had me wondering how they handle read and write, since how does memory know which bits to focus on?

Bunch of transistors?

timid latch
dreamy silo
#

Wow.

#

That must be a lot of gates.

#

Cartoonish.

#

We scold developers for using big if condition blocks for dialogue options, but that's essentially what this is lmao

timid latch
dreamy silo
#

what game is that

#

I'm suspicious

timid latch
#

Logic world

dreamy silo
#

Ah

dreamy silo
#

Impressive.

#

Let's see... I suppose for every gate, you could cut the possible addresses in half, right?

#

Bit by bit?

#

"If the first bit is 1, then all addresses starting 0 are not important"

#

I think that's sane enough.

#

I'd probably need a bigger breadboard though.

timid latch
dreamy silo
#

I wonder if there are other ways to arrange memory.

#

Something alien.

timid latch
#

There certainly are, this is the simple naive way, I am sure the hardware gods have some crazy things up their sleeves

#

For example, when reading from a CD the process is completely different

dreamy silo
#

I've got to use my head and think

timid latch
#

Because there you physical have to move the disk/read-head

dreamy silo
#

Yes, physical memory.

#

Oh!

#

What if, circuit wise, you had a carousel pointer or something?

#

And you you just waited for it to be the address you asked for?

#

And then you took that data?

timid latch
#

Huh

#

Interesting idea

dreamy silo
#

What if you simulated what the cd does, but solid state?

timid latch
#

You would basically have a very very large shift register

dreamy silo
#

Actually I'm not sure if there's any benefits to it, now that I think about it.

timid latch
#

Can't imagine that being that efficient

#

I mean there's a reason reading CDs is slow

dreamy silo
#

I have many ideas for more "aimless" paradigms.

#

Ones where there is no clear point of reference.

timid latch
#

They are fun to reason about

timid latch
#

It's basically a shift register with a bunch of transistors to swap the direction

dreamy silo
#

Like, what if, instead of addressing, you had a carousel, and you selected your address by waiting?

#

Prediction?

#

You could write at an unknown address, and then use that as a flagpole for sync.

#

Or something like that.

dreamy silo
#

I was trying not to toast a transistor while attempting to make it do a signal inversion.

timid latch
dreamy silo
#

If there's no burnt toast smell, it's no simulator of mine

timid latch
#

I do want to do more irl circuits, but I don't really have the space

dreamy silo
#

Oh, I have teeny tiny breadboards. I just use small wires and pliers.

#

I pull apart small electronics with the hopes of being able to use LCD screens, processors and memory but the protocols are complicated.

#

Did you know that some 7 segment displays can't display more than one digit at a time, and it just flashes it fast enough for you to not notice?

timid latch
dreamy silo
#

The ones you get on calculators.

#

Like the cheap ones.

timid latch
#

I didn't know that, but I guess it makes sense

dreamy silo
#

Where you can see the individual segments.

#

Maybe this isn't it.

timid latch
#

I guess the converters from binary to segments is an expensive component or something

dreamy silo
timid latch
#

So how does the input work on those? Does it take the digits in pulses?

dreamy silo
timid latch
#

Fair

dreamy silo
#

At least in the ones I looked up.

#

A pin corresponds with a segment.

timid latch
#

So the external circuit does the conversion, makes sense

dreamy silo
#

In multidigit displays, apparently it has select pins for the focus digit, then it has the usual pins for digit segments.

#

Yeah, I was annoyed when I realized I couldn't use these unless I had a controller of some kind.

timid latch
#

Well you could likely get a chip/rom to convert from binary to segments, and also another to convert to decimal encoded binary

dreamy silo
#

Yeah, I don't really have those. Technically I could unsolder some but I can't really understand the pins.

#

I have mystery circuit boards bought for a steal.

#

The logical step is to build upwards from twigs and stones.

#

It's a tech tree, I'll level up.

barren chasm
#

Bwahh

timid latch
barren chasm
#

Morning viv!

timid latch
#

"morning"!

brittle void
#

guys

barren chasm
#

Lol it's midnight for me

brittle void
#

i need a help

barren chasm
#

Barely passed

brittle void
#

more like a reply

barren chasm
#

But the midnight tummy rumbles :<

tight granite
#

you're offline

#

i think it shows that for me because i dont have u added

timid latch
#

We can...

barren chasm
#

Me too

tight granite
#

ok it says binge

#

popcorn emoji

barren chasm
#

No the inappropriate and cringe one

tight granite
#

๐Ÿฟ

brittle void
#

not that

barren chasm
#

๐Ÿ† one

brittle void
tight granite
#

what

#

there's nothing

brittle void
#

im sry

tight granite
harsh tundra
#

For context for mods

timid latch
#

I think it's technically a activity, not a status

tight granite
#

โ“

brittle void
#

pls dont

barren chasm
#

Lol I was too lazy thanks nicky

tight granite
#

mobile users smh

#

always get the features first

brittle void
#

ok now i've removed it, now i can feel free

barren chasm
#

Lol

tight granite
barren chasm
#

I'm tired

#

Might sleep for a bit

timid latch
#

I saw a castle today

barren chasm
#

Maybe

tight granite
#

average frieren

barren chasm
#

Considering it's midnight

#

It's fine ii usually wake at like 10am

harsh tundra
tight granite
#

MOLESTATION????

barren chasm
#

I'm underage

brittle void
#

i'll delete them all

barren chasm
#

1000 years young

timid latch
#

blue_siren calling cops blue_siren

tight granite
#

tryna strike a chord...

tight granite
#

-# /hj

barren chasm
#

F diminished 9th

#

Oh not that chord

tight granite
#

was that the joke

barren chasm
#

No

#

It was the chord in the tab sheet in front of me

#

Humans and these "jokes"

tight granite
#

ghost ops convicted of molestation and sexual assault in the Python Discord server...
-# /j obviously

harsh tundra
# tight granite MOLESTATION????

If someone tells you they're beating meat while you write with them, it is. Being femme online and having femme friends on instagram, this is just one step behind actually sending pics of that :x (although in that case it's usually guys literally saying they're beating meat to the photos of those femmes, which is more disgusting than just random talk like here)

barren chasm
#

Wtf am I reading

timid latch
#

Castle!

tight granite
brittle void
harsh tundra
#

I've also gotten threats online ๐Ÿคท but that was because I'm openly queer

timid latch
barren chasm
#

Lol

brittle void
#

btw, whats the filter for that sky bro?

tight granite
#

oh i see you haven't escaped the simulation yet

barren chasm
#

Skyfilter grimoire

timid latch
#

I actually touched grass, okay

tight granite
#

grass.. more like ARTIFICIAL GRASS!

#

(you touched more grass than I ever will in my lifetime)

timid latch
#

You think I went thru the effort of faking a picture of a castle xD

#

I would have just found one online if I wanted to do that

barren chasm
#

Where is tthe castle

timid latch
#

Oslo

#

It's the Norwegian Royal Castle

barren chasm
#

All i see is like a parliamentary building

harsh tundra
#

There are chicks on my grass

timid latch
harsh tundra
barren chasm
rough sapphire
#

buy or nah?

terse skiff
# timid latch Castle!

Oslo is so pretty, if you go up there at night you can see how beautiful Norway is at night fr

uneven pine
#

Customer has a timed order for 11:30AM.
Comes in before the order even drops at like 11:10
Complains it's taking so long when we make it early

Leaves the store at 11:22 unsatisfied that her 11:30 order took that long

#

๐Ÿซ 

frozen radish
#

to compell someone to be 20min early

uneven pine
#

@frozen radish pizza.

frozen radish
#

fuck why did i do that now i need pizza

glossy niche
uneven pine
#

Meanwhile I'm trying SO hard to escape TO tech

glossy niche
#

tech is better where I live cuz it's one of the few jobs that actually pay yert

acoustic moss
#

what do u work in

pliant nexus
#

the most annoying thing ever when listening to music on youtube

rough sapphire
#

not really snnoying

#

i use mobile data and this saves me and those who binges inut

#

in yt

storm field
#

wow

tardy rain
#

Easy peelers goated

terse skiff
#

just get spotify

tight granite
#

I'm convinced nobody actually likes boiled eggs

#

They're so ass

small coral
#

and generally something to eat if super hungry

tulip falcon
tight granite
small coral
#

..what kind of boiled egg made u say this

tight granite
#

every single one of them

solemn tulip
#

yogurt makes for a good potassium sauce ๐Ÿ™ƒ

glossy niche
#

joe Gurt + tahini is a good sauce imo, but it's served cold

#

you can add garlic to it if you like garlic

pliant nexus
#

quick question, did python ever have seperate types for int8, u_int8 and stuff like that or has it always been just the int?

#

i'm not talking about numpy btw

acoustic moss
#

afaik python 3 has always had just int

#

python 2 had plain ints which were C longs and long ints which were arbitrarily large

fading frigate
#

Python 4 when

pliant nexus
#

am i misreading this or is this book actually suggesting that there is int8, int16, int32, int64, uint8, uint16, etc

tulip falcon
#

Sounds like a rust/python crossover book ๐Ÿ˜‚

pliant nexus
#

it does say, The following table describes the range of values for different types of int data types (classes) in Python

pliant nexus
#

it also has a table for complex types, being complex64, complex128 and complex_

tulip falcon
pliant nexus
#

the book isnt refering to numpy

#

its refering to python itself

#

it doesnt even mention numpy

#

guess thats another one to add to my list of Wrong Stuff in this book

tulip falcon
#

If the book is talking about implementation details like this and doesn't explain that the size of int is deduced automatically, then something is a little off there.

pliant nexus
#

which i dont think there is

tulip falcon
pliant nexus
#

this is my list of stuff which i found to be wrong in the book

pliant nexus
tulip falcon
#

I was doing a cursory Google search, I don't know.

#

What book is this again?

pliant nexus
#

it has a entire unit for teaching python

#

and it was also my school book

#

lol

pliant nexus
pliant nexus
#

since it says that the table is for classes in python

spare oriole
#

maybe the author assumed people would be only be using numpy

pliant nexus
#

neither has the author even taught what importing is

#

this is a book for beginners btw, so i dont think this is implied

tulip falcon
#

I'm reading this but idk if it's a reputable source

#

Integer in python can be of any length up to the amount of memory you have

#

Cross referenced sources for that

pliant nexus
tulip falcon
pliant nexus
#

it has been wrong about stuff like this before as well

tulip falcon
#

Which is kind of cool imo

pliant nexus
tulip falcon
#

Yeh

#

Err.... "Int64 two digit"

pliant nexus
#

yea no, i kinda misread the pic ๐Ÿ’€

tulip falcon
#

Bunch of implementation details going on like changing size of digit based on platform

#

Now I'm confused why a digit would be 32 bits if it only represents base 10 ๐Ÿ˜‚

acoustic moss
#

someone copy pasted from the wrong docs ๐Ÿ˜ญ

pliant nexus
#

๐Ÿ’€

#

even worse considering its a school book

#

the one students are required to buy ๐Ÿ˜ญ

tulip falcon
acoustic moss
#

yeah it stores ints as an array of digits

#

just not base 10 digits

#

base 2^30 or whatever digits

tulip falcon
#

We r learning brainmon

acoustic moss
#

mm

tulip falcon
#

doesn't AI use numpy? Isn't the book about AI?

acoustic moss
#

it doesnt mention numpy anywhere on that page

tulip falcon
#

Will we still need numpy/vectorization when we get JIT'd

graceful basin
#

Probably

#

Making a JIT identify vectorization opportunities in Python is still going to be difficult

wicked haven
pliant nexus
#

and since its for beginners, i dont think it's implied without explicitely being told

glossy niche
#

w3books

barren chasm
#

I see what you did there

pliant nexus
#

how do you split a string into words and then store them into a vector in c++?

#

i'm currently using stringstream but i'm not sure if it is optimal

terse skiff
pliant nexus
#

what kind of question is that? what do you use, 2 fleshy balloons named "lungs"?

#

weirdo /j

uneven pine
#

You be fair splitting a string to words is more of a Google question

#

The answer depends if you're using String objects or char* []

pliant nexus
#

i dont wanna deal with c-strings ๐Ÿ’€

uneven pine
#

C strings are pretty easy, anyway, there's your Google query then.

pliant nexus
#

huh

#

what do you know

#

that actually worked

uneven pine
#

Crazy

pliant nexus
#

impossible

glossy niche
#

or just impl it on your own

pliant nexus
glossy niche
#

hmmmm probably sub optimal but maybe the compiler takes care of it

pliant nexus
#

thats what i was wondering

glossy niche
#

the C++ compiler is smart enough to optimize the hell out of this probably

#

not that this matters but you can check compiler explorer for that

pliant nexus
pliant nexus
solemn tulip
#

it would be nice to get some basic string operations into the stdlib

#

I know absl has some good ones, but pulling in absl is a bit much in many cases

solemn tulip
#

this is just slightly terrible

std::vector<std::string_view> words(std::string_view str) {
  std::vector<std::string_view> result;
  auto start = str.begin();
  while (start != str.end()) {
    start =
        std::find_if(start, str.end(), [](char c) { return !std::isspace(c); });
    auto end =
        std::find_if(start, str.end(), [](char c) { return std::isspace(c); });

    if (start != end) {
      result.push_back(std::string_view(start, end));
    }
    start = end;
  }
  return result;
}
carmine apex
#

i see you already noticed it, @fading fable, but congratulations on making the besiege dev's attention https://steamcommunity.com/games/346010/announcements/detail/4237406000210417108

Hey Everyone! We're thrilled to present the very first edition of our Community Highlights. This series is dedicated to celebrating the incredible talent, creativity, and passion within our amazing community. From breathtaking builds to stunning artwork and ingenious mods, we're here to showcase the best of what our players have to offer every m...

fading fable
#

ye :p

#

they also posted a tweet using a map i made

dim pivot
dim pivot
sinful isle
#

Hey everyone

#

How are yall all doing this lovely day

uneven pine
#

Terrible

fading fable
#

i have like 2k hours in it

patent girder
#

Is that the game where you build contraptions to yeet and destroy various things?

dim pivot
#

It barely flies

fading fable
#

it takes some effort

fading fable
#

ive been having fun trying to push the game to its limits

#

or doing weird shit in it

patent girder
#

Cool stuff

fading fable
#

It was a hassle to get working and its super laggy for any reasonable resolution/color count but it works

patent girder
#

what the...

fading fable
#

its an animation player using level editor logic

patent girder
#

Oooh

fading fable
#

It has enough events to crash/freeze the game if you look at them ingame lol

patent girder
#

lmao

sullen pier
sonic yew
#

Are there any alternatives which i could use as a mentor? Anyone familiar with these? I was hoping to use it to schedule studies and summarize textbooks so i can prep a little before the day's classes

rose hare
#

also it does say that your 4o limit resets after that time, so just wait a bit then you can continue
obviously if you don't want to wait, you need to pay a sub

sonic yew
dim pivot
#

Gemini, in theory have a larger context window, so you can upload larger file

tight granite
#

there are so many c/c++ students with superiority complexes on programming social media

#

someone said python was unreadable gahahaha

young shoal
#

there are just people with superiority complexes

jaunty wraith
#

there are just people

pliant nexus
#

fairly certain rust has the same issue ๐Ÿ’€

tight granite
#

some

#

well im so cooked because im fairly sure im gonna get ratioed for defending python in the comments

strange blade
#

ratio

#

skill issue

#

cope

tardy rain
#

Arguing with nerds was your first mistake

tight granite
#

im also a nerd

tardy rain
#

Your second mistake

tight granite
#

just a diff breed

dim pivot
#

I guess I'm the problem

#

/j

#

Joke aside, I do think languages like rust and golang promote cleaner code, compared to python

#

But a large portion is a skill issue on my part

acoustic moss
#

rust i can understand

#

go is debatabls

#

e

dim pivot
pliant nexus
dim pivot
#

Personally I found golang easier to learn than rust

sterile sapphire
patent garden
#

@sterile sapphire I still havent forgotten u

sterile sapphire
#

forgotten?

#

have we met on this server?

pliant nexus
#

just like me fr

sterile sapphire
#

say sike rn

#

Escucha el nuevo disco โ€˜Sin Miedo (del amor y otros demonios) โˆž' de Kali Uchis aquรญ: https://smarturl.it/KaliUchisSinMiedo

Follow/Seguir Kali Uchis:
Website: http://kaliuchis.com/
Instagram: https://www.instagram.com/kaliuchis/
Twitter: https://www.twitter.com/KALIUCHIS
Facebook: https://www.facebook.com/KaliUchis
SoundCloud: https://soundclo...

โ–ถ Play video
patent garden
sterile sapphire
#

fam i've never heard of you

#

unless you're saratri's clone lol

patent garden
#

u never replied

sterile sapphire
#

oh

#

that's you

#

lmao

#

sorry man

#

i probably had something else to do

#

i believe there is no such thing as mastery in coding

#

you are constantly developing/refining

patent garden
#

can you touch 1s and os

sterile sapphire
#

huh

small coral
#

lost the game!!!

tight granite
#

STOP

#

Why

small coral
#

must announce if you lost

pliant nexus
#

poor @tight granite , lost all his money gambling

#

how are they going to afford microsoft products now ๐Ÿ˜ญ

tight granite
#

the doctors have been giving me pain meds and it feels so good

small coral
#

i just did the most niche optimization ever

tight granite
#

oh man

small coral
#

shrank a 48-byte struct-union into a 16-byte one

tight granite
small coral
#

do i really need this much optimization when parsing midi files >->

tight granite
#

yez

small coral
#

now that i think about it this is an extreme level of optimization

#

too extreme mayhaps

tight granite
#

dont matter if the code is readable :3

small coral
#
typedef union {
    struct {
        uint8_t *msg;
        uint32_t delta:28;
        uint32_t :4;
        uint8_t :8;
        uint8_t type:4;
        uint8_t chno:4;
        uint8_t b0:8;
        uint8_t b1:7;
        bool is_meta:1;
    };
    struct {
        union {
            struct {
                uint8_t *data;
                uint64_t :28;
                uint64_t len:28;
                uint64_t mtype:7;
                uint64_t :1;
            };
            struct {
                uint8_t channel;
            };
            struct {
                uint32_t tempo;
            };
            struct {
                uint8_t hour;
                uint8_t min;
                uint8_t sec;
                uint8_t frame;
                uint8_t frac;
            };
            struct {
                uint8_t num;
                uint8_t den_pow2;
                uint8_t click_clock;
                uint8_t bb;
            };
            struct {
                int8_t accidental;
                bool is_minor;
            };
        };
    };
} MEvent;
#

wall!!

#

anyway.

tight granite
#

what the hell man

#

is_minor

small coral
tight granite
#

why need that info anyway

small coral
#

idk

#

parsing a MIDI file ๐Ÿ‘

fading frigate
#

felt like sharing

#

also nested unions is wild

small coral
#

ya-

#

idk why i did that

fading frigate
#

ive never seen that before

small coral
#

i'm just gonna put a comment to distinguish ig-

fading frigate
#

do c unions support rtti in c++?

small coral
#

turned c typedef union { struct { ... }; struct { union { ... }; }; } MEvent; into ```c
typedef union {
/* no-meta (sys-exclusive and MIDI) event struct */
struct { ... };

/* meta event structs */
...

} MEvent;

fading frigate
#

ah shouldnt you have an rtti attribute?

small coral
#

RTTI?

#

it's included in the structs

fading frigate
#

run time type information

small coral
#
/* no-meta (sys-exclusive and MIDI) event struct */
struct {
    ...
    uint8_t type:4;  // <--- here
    uint8_t chno:4;  // <--- here as well
    ...
    bool is_meta:1;  // <--- here too
};

/* meta event structs */
struct {
    ...
    uint64_t mtype:7;  // <--- here (for meta structs)
    uint64_t :1;
};

...
fading frigate
#

just strange to put it in the union types

small coral
#

it is

#

but that's an optimization thing :p

fading frigate
#

ah okay

#

how so?

#

your method is?

#

or wraping the union with a variant struct?

small coral
#

all the fields are basically accessible from the union itself

#

so

fading frigate
#

oh i see

#

you're ducktyping

#

interesting

#

kinda ducktyping

#

almost ducktyping

small coral
# small coral so

there's a problem if one of the structs' data in a certain type can overwrite these type info fields so i built it in a way so that it doesn't

#

this is hard to explain i^i

#

so like

#

type and chno can be overwritten (by len) if is_meta is false

#

mtype can be overwritten (by b1) if is_meta is true

fading frigate
#

oh god

small coral
#

is_meta cannot be overwritten

#

so type, chno, and mtype are type-specific type info fields

fading frigate
#

do you have getters and setters for this?

small coral
#

i will maybe

fading frigate
#

i feel like this would quickly unravel into chaos if you dont

#

lol

small coral
#

a few assert()s here and there to make sure it works properly :>

fading frigate
#

if only c/c++ had properties

tight granite
fading frigate
#

idk if its possible for them to add them to the c++ standard

#

wait are they in the standard

#

no way

#

actually

#

which standard

tulip falcon
#

Any method can be a getter and setter if you try hard enough

fading frigate
#

damn I guess not

#

yea but python style properties would be so nice in c++

small coral
#

okay now where do i start.

fading frigate
#

?

small coral
#

i made the struct

#

now i need to implement it

fading frigate
#

good luck

tulip falcon
#

Rust struct?

small coral
#

just sprinkle another union in there and i'm done :>

fading frigate
#

but also rust structs are pretty nice I have to admit

#

and im not the biggest fan of rust so good on them.

small coral
#

what am i doing..

fading frigate
#

I feel like this is definitely the kind of thing c++ was invented for lol.

#

just let classes and std::variants do the annoying unsafe parts for you.

small coral
#

now everything is useless :>

tulip falcon
#

Provided to YouTube by Reprise

Brain Stew ยท Green Day

Insomniac

โ„— 1995 Reprise Records

Unknown: Bernd Burgdorf
Guitar: Billie Joe Armstrong
Producer: Billie Joe Armstrong
Lead Vocals: Billie Joe Armstrong
Unknown: Jerry Finn
Engineer: Kevin Army
Bass Guitar: Mike Dirnt
Producer: Mike Dirnt
Background Vocals: Mike Dirnt
Unknown: Richard Hu...

โ–ถ Play video
#

My stereo has been blasting shit out loud all night and it's 4am ๐Ÿ˜‚ my stereo is my favorite earthly possession

small coral
#

at least i still have just 24 bytes ;-;

small coral
#

no errors..?

brittle void
#

bro's talking to himself

small coral
#

now i just have to check the output :D

small coral
brittle void
#

do u have a private server for u alone?

small coral
#

7 straight hours :p

small coral
#

well-

#

depends-

#

i have private servers where i test discord features n stuff

brittle void
#

have one just for urself, and add some bots in it

#

imagine having multiple ai girlfriends in a single server

#

craving for ur existense

#

ok i might have to go outside and touch some grass

brittle void
#

be happy with your, whatever you are suffering from

small coral
#

ai doesn't feel real >->

brittle void
#

but an ai girlfriend will accept however u are
it doesn't check standards on u

small coral
#

mmhh..

#

i can do that with myself already v-v

brittle void
#

but imagine ...

#

your private server will be your one and only utopia

strange blade
#

wtf

#

weirdo

#

Get a girlfriend. Level hard (it's a very difficult problem on Leetcode)

small coral
#

nice joke ^^

#

i've accepted the world as it is now.

brittle void
#

im just joking

#

we know its a joke throught this whole time

#

im not a weirdo

small coral
#

anyways :3

#

spending 7 hours straight coding must be pretty unhealthy but i did it!!

small coral
#

read a MIDI file

brittle void
strange blade
#

Oh sorry it's level super hard

brittle void
#

ok, but link?

#

it got almost the funniest number

#

its fake

#

my hopes are crushed

strange blade
#

Well what did you expect

brittle void
strange blade
#

Because it's NP-incomplete

#

duh

small coral
brittle void
brittle void
# small coral ya i think-

cool
but whats the point?
did u try to reinvent the bicycle to learn smth new as a practice?
or its just u forgetting to do a google search?

#

pls tell its the 1st option

brittle void
#

๐Ÿ†’

small coral
#

also i need to interface this with python n i don't know how to do that with other midi file readers .^.

small coral
#

the-

#

why does the data change inbetween function calls ;-;

#

.

jaunty wraith
small coral
#

C is confusing :D

jaunty wraith
#

the C stands for Confusing

#

use Rust

small coral
#

why does the address change :D

stable talon
#

use zig

small coral
#

oh.

#

i figured it out.

#

it's realloc() acting strange

#

:p

#

.

#

FINALLY

#

oki i sleep now.

#

bai

solemn tulip
brittle void
solemn tulip
#

I know

#

I'm confused how realloc would be acting strange

#

the

why does the data change inbetween function calls ;-;
sounds like re-using an invalid pointer or something

novel vapor
#

hey guys, does any of you worked with LDplayer before? its an android emulator

green parrot
#

do they ban forever for mention spamming once on discord.py's discord server?
because I got banned for that like 3 years ago or something and am still banned on all of my accounts

wicked haven
green parrot
ocean pond
#

would u date a girl who is dating another girl

grave cove
#

depends on if its exclusive

#

some people are ok with that and have talked it over already

uneven pine
#

p o l y a m o r y

willow narwhal
#

"About 0โ€“100 years, but it's harder for such short amounts because nuclear testing increased the amount of ยนโดC in the atmosphere."

glossy niche
severe laurel
#

I downloaded this program called โ€œTCPOptimizerโ€ that doubled my PCs download speed (400Mbps to 900Mbps)

Is this a real thing or is it able to psyche out googles internet speed test lmao

wicked haven
severe laurel
#

it feels too drastic to be real, but i did use this program to fix my roommates download speeds over a year ago. he was actually having issues, and i was just testing it out rn

wicked haven
severe laurel
#

sus

terse harbor
#

dude

#

i saved cake

#

so i could eat it multiple days in a row

#

so i wouldnt have to waste money with dinner

#

then this fucking waste of a human comes and throws it away because it was "hard and tasted like a brick"

#

did i fucking ask you???? it was my cake dude

#

im grieving over my cake

#

it was a great chocolate cake

uneven pine
#

Well tell them they have to buy you more cake

#

Plain and simple

#

Ruin their life if they don't.

#

:')

karmic gust
#

if you're eating cake for dinner multiple days in a row they might've done you a favor

small coral
tulip falcon
#

Let them eat cake

small coral
dim pivot
#

Is the cake real?

young shoal
#

linked lists go hard ๐Ÿ˜ฉ

tight granite
#

linked lists are hard*

young shoal
#

nah

#

linked lists are triv

tulip falcon
#

Linked list gang

sterile sapphire
#

mostly bc i could never wrap my head around them

#

rEvErSe a LiNKeD LiSt

solemn tulip
sterile sapphire
#

idk man

#

ds/algos were never my strong suit

tulip falcon
solid elbow
#

linked lists are pretty much the simplest data structure

sterile sapphire
#

it's concerning i can't use them the right way

#

but i will work on it

#

i will improve.

#

making a promise to myself

sterile sapphire
#

maybe coding is for me and the approach i'm taking is wrong?

sterile sapphire
solid elbow
#

sure

sterile sapphire
#

i have to press harder on my mac to type than ever before

#

ah

#

yea

#

thought so

solid elbow
#

that more likely means there's something under the keycap

sterile sapphire
#

i think i still have a chip on my shoulder

#

from failing CS that freshman year

#

even though i've grown so much

#

done so many internships and gotten my first FTE offer

solid elbow
#

do you enjoy coding?

sterile sapphire
#

i like it when shit works

#

it feels satisfying

#

when it doesn't i get frustrated easily

solid elbow
#

that's not a great quality in a software developer

sterile sapphire
#

yea

#

good thing i'm not one phew

solid elbow
#

there's a lot more times when something isn't working than when it is

sterile sapphire
#

well i mean

#

i kind of am

#

so

#

yea i'm working on it

#

handling the frusration

sterile sapphire
#

low code platform tho

young shoal
#

yeah. you really need persistence

sterile sapphire
#

i'm good at debugging excel models

#

idk what it is with me and coding

#

it's like i have the fucking yips

young shoal
#

maybe some fundamentals missing

sterile sapphire
#

probably.

young shoal
#

debugging excel seems as hard or harder than coding, so

sterile sapphire
#

i guess so.

#

i mean no print statements and whatnot

young shoal
#

i wouldn't know where to start ยฏ_(ใƒ„)_/ยฏ

sterile sapphire
young shoal
#

i'm not in the class

sterile sapphire
#

true that

#

i'm just saying

#

i think you'd find excel easy

#

almost too easy

sterile sapphire
young shoal
#

no

sterile sapphire
#

oh

#

i must've confused you w someone else ๐Ÿ’€

#

sorry

sterile sapphire
#

@solid elbow, you work in the finance industry right? Do you have any tips for me?

solid elbow
#

I work as a software developer - I don't really do any finance-y stuff

sterile sapphire
#

ah ok

#

ty for responding

small coral
#

really, this time

steel orchid
#

offtopic

#

dumb qn as well but curious to know

#

Does learning coding need talent?Cuz i see my peers and others learning at hyperspeed

sterile sapphire
#

no

steel orchid
#

and im cruising slowly

sterile sapphire
#

it needs persistence

#

you have to keep going dude

steel orchid
#

and still i hv no idea what works

sterile sapphire
#

people learn at diff rates my guy

#

if you wanna do this

#

for a living

#

you will learn your own learning rate

#

you will gradually improve as well

steel orchid
#

i see

sterile sapphire
#

yep

#

it's an iterative process

#

and gradual

#

slow even

steel orchid
#

cuz i hv code,that i dont fully understand,and i hv to work with it.

#

i feel dumb

sterile sapphire
#

don't

#

just don't

steel orchid
#

dont work with the code?

sterile sapphire
#

no

#

i mean

#

don't feel dumb

#

ask qs

#

raise your hand

#

don't sit there confused, bc that is the true sign of being dumb.

steel orchid
#

uhhh its next js and python flask stuff so kinda hard to ask,idk where to post cuz its quite big for the context

sterile sapphire
#

hm

#

help channel?

steel orchid
#

ig so

drowsy rose
fringe rain
#

I mean technically you can use any language right

brittle void
#

try asking it in hebrew

small coral
#

added flags to my midi reader program

#

yayy!!

small coral
#

added single track player caus why not

rough sapphire
#

we should play sometimes

acoustic moss
#

play me uwu

pliant nexus
#

it allows to screenshot stuff like this

#

2 different occasions btw

acoustic moss
#

again

#

you cannot blackmail me

carmine apex
#

why, because that requires a sense of shame?

fringe rain
#

bro said he was going to sleep

acoustic moss
pliant nexus
#

i really dont

fringe rain
#

ill lead by example and sleep, i wanted to sleep early today anyways

#

gn gogiboy

pliant nexus
#

goddamnit

#

gn

#

i suppose i should close discord now....

#

ughhhhhhhhhhhhhh

terse skiff
tulip falcon
#

OK I make big progress on the thing I was stuck on

#

i need keep up momentum pls

#

Give me green squares in git heatmap

#

A quick devops side mission ๐Ÿ˜‚๐Ÿ”ฅ

pliant nexus
#

masu masu

#

i'm up~~