#ot1-perplexing-regexing
1 messages Β· Page 637 of 1
Does anyone know of a Discord server for OpenCL programming?
@twin hearth contact @polar knoll if you want details on your mute
okay, so why did you mute me, every time id dm modmail, it would tell me that i dont share a server with modmail
you should look into that
you're apartment angels?
yes
i've only done this because modmail nor anyone else could get contact through the server
Do you have DMs disabled?
tfw you fix all the bugs except one and make a ton of new bugs in the process of fixing that one bug
π₯΄
oh i made an ISSUE there before hmm
{{

remind me of trying to put a { in a rust format!
format!("{{}}", "foo") returns "{foo}"
I don't know how or why this confuses me so much
i only learned that after reading the source code a while ago when someone suggested adding the backslash to f-string expressions
(and no i can't add backslashes to f-strings it's too complicated)
!e
print(r"\")
@floral apex :x: Your eval job has completed with return code 1.
001 | File "<string>", line 1
002 | print(r"\")
003 | ^
004 | SyntaxError: unterminated string literal (detected at line 1)
!e
print(r"\\")
@floral apex :white_check_mark: Your eval job has completed with return code 0.
\\
!e
print(f"\\")
@rough sapphire :white_check_mark: Your eval job has completed with return code 0.
\
@acoustic moss arent u a core dev of python?
definitely
i am definitely not a core dev
when your snake in the snake game is just long enough to wrap around a box without hitting itself
oh shit, i didnt even notice, that snake is not hitting his head anywhere, he is slither.io approved
pretty sure you can bump overlap your tail in slither.io
due to that GIF i have concluded that the blush is actually pink stripes on the face
ya but u can't touch it with ur head
oh no
??????
there's a difference between that snake game on google play and slither.io
also i dedicated this whole game just to prove you wrong
in the few seconds i was away posting this image i just went straight and didn't get killed by anyone
!e
print(βHello Worldβ)
@elder steppe :x: Your eval job has completed with return code 1.
001 | File "<string>", line 1
002 | print(βHello Worldβ)
003 | ^
004 | SyntaxError: invalid character 'β' (U+201C)
!e
x = 69
print(x)
@elder steppe :white_check_mark: Your eval job has completed with return code 0.
69
!e
x = 69
y = 69**2
print(y)
@elder steppe :white_check_mark: Your eval job has completed with return code 0.
4761
#bot-commands
!e
x = 69
y = 69**2
print(y)
@dull shuttle :white_check_mark: Your eval job has completed with return code 0.
4761
#bot-commands
Not cool man , not cool
print('no')
!e
print('no')
!e
import random
print(random.randint(0,100))
print('WHAT NUMBER U GOT')
a = int(input())
@split dust :x: Your eval job has completed with return code 1.
001 | 64
002 | WHAT NUMBER U GOT
003 | Traceback (most recent call last):
004 | File "<string>", line 4, in <module>
005 | EOFError: EOF when reading a line
#bot-commands
Lol how the hell where you about to give the input 
i am (not)? a core dev
Let's use bot.wait_for
LMAO
hi
me on my test: Q 7,355,988,069,420,069,420) the earth flat? yes(n't) ... Teacher: You said the earth is flat- Me: No I wrote yesn't which means no Teacher: Oh ok.
@robust plaza saw your message re North Korea hackers, and just wanted to bring that chat into this off-topic channel! π
Nation state hackers are definitely interesting - for good and bad reasons. You should listen to some the Darknet Diaries podcast - the host has talked about the Lazarus group and some of their doings in a few episodes.
function getRandomItem<T>(array: T[]): T {
return array[Math.floor(Math.random() * array.length)]
}
function was generated by github copilot
const apparelLocation = ["HEAD", "TORSO", "ARMS", "LEGS"] as const
type TypeApparelLocation = typeof apparelLocation[number]
// ...
class Apparel {
location: TypeApparelLocation
constructor() {
this.location = getRandomItem(apparelLocation)
}
}
using the function gives error
"Argument of type 'readonly ["HEAD", "TORSO", "ARMS", "LEGS"]' is not assignable to parameter of type '("HEAD" | "TORSO" | "ARMS" | "LEGS")[]'.
The type 'readonly ["HEAD", "TORSO", "ARMS", "LEGS"]' is 'readonly' and cannot be assigned to the mutable type '("HEAD" | "TORSO" | "ARMS" | "LEGS")[]'."
few "fixes" i found
- removing
as constfrom the variable made it work but i can assign any value tolocationand not just those 4 - removing type annotation on the function and use a plain
array: anyalso works but it's giving a warning
a bit new to typescript so apologies if it's an obvious mistake by me
is there a more solid fix?
so what i'm trying to do is
- create a variable containing an array with literal values
- create a type declaration (an union of literal) from that array
- use that type as an annotation on a class attribute
as to why i need the first reason is because i need do a loop somewhere else (in my case a .vue file)
@rough sapphire i got a false value when comparing column A1CF
in case that matters
wut
[Out] False
but take a look at just pre_processed_df['A1CF'] == train_df['A1CF']
In [95]: df["A1CF"] == df2["A1CF"]
Out[95]:
0 True
1 True
2 True
3 False
4 True
5 True
6 True
7 True
8 True
9 True
Name: A1CF, dtype: bool```
i wasn't aware you could use in like that
are you sure that's how it works?
well that's not a categorical value
it's a continuous value
continuous values are different between the two dataframes
and only the ones from pre_processed_df are kept
ok, it seemed you were trying to check if the column values matched from each df in order to check that their orders matched
In [106]: df[["A1CF"]]
Out[106]:
A1CF
0 0.0
1 0.0
2 0.0
3 NaN
4 0.0
5 0.0
6 0.0
7 0.0
8 0.0
9 0.0
In [107]: df2[["A1CF"]]
Out[107]:
A1CF
0 0.0
1 0.0
2 0.0
3 NaN
4 0.0
5 0.0
6 0.0
7 0.0
8 0.0
9 0.0```
tho it's interesting i would have expected these to be `True` all the way thru
apparently nan doesn't equal nan
!e
print("Hello world!")
@rare surge :white_check_mark: Your eval job has completed with return code 0.
Hello world!
lets go
Yo guys, idk where to ask
Do you think I can somehow extend my system disk space with this "unallocated" space?
(basically: can I merge last 2 partitions without wiping /dev/nvme0n1p5
I'm pretty sure i've done that before
Yes, You can do it
its not fun, its annoying
just dont do that again
u take it serious :<
@rough sapphire this is my main account π
@rough sapphire is the alt, which i dont use lol
no way
are u talking to kavya or saying that kavya is my main account?
smh, its kayya and no, we are completely different entities
okk xD
sparky is shit?
..
lmao
Wait, you the reptile boy, right?
Yerl iirc
π
nice eyes puts finger inside them
noo, please don'tπ₯Ί
run in the lΓΆΓΆp
out of energy
funny shaped hamster you have there
that's why education is important
-the name of the meme
π
π
Huh
Itβs a chat group in my app which is a pydis copy
Ah cool
looks like you can speak portuguese
the channel is correct
all that's stopping a sudden fusion of metals is a white/yellow line and a mutual agreement not to play bumpercars
nah im just joking lol
Would make sense
Robin sounds like a rage quitter ngl
yo
Get raided 1 time and BOOM IM OUT
Yeah
lmao
y'all bullying him
i have 2^5 incoming friend requests, so no
10
go outside
pass
I have 849 LMAO
lmao
exit()
you cant even get top 5k world wide in split gate
i placed 6th global last season is that not enough for you
split gate π
No
get better
1st
i wouldve placed 1th for sure
fake girl pfp
No point in playing if you cannot get first
lil spat with one of the game mods
ayo
me and my buddy were so good they thought we were cheating lol
sheesh
yeah cheating because yall kept missing shots
Yeah man a rage quitter

hes mad hes bad at coc
ya got gaming pc Robin?
ye
LMAO
pog champ
I'm good at it
clash of clan π³
right
LMAO
i destroyed you in that 1v1
you got 25-3d
youre jealous a 12 lvl better than you
my what
nah
yo mum
yo
i should probably go to bed
its jhonathon55 status
of
go to sleep pls
didn't see tha
no thanks
so i can kiss you goodnight already
..
bro what

leave the guy be
Jonathan running rn
let Robin have peace

:0
And this is how channels loose the emote reaction permissions.
especially #discord-bots
Not sure if it's ok in off topic
None of your concern
Nope
..
Wat
lmao
i can spam
:")
lmaoo
:
why am i feeling like the convo ended
lol
idk, change your pfp too
~~ to which one? ~~
I have a suspicion it's abby
mine
π nice
π my friends will think i'm catfishing
on discord
LMAOO
Reminds me of that time kayya tried to catfish
π π
Ashley couldn't help kayya be more like a woman
yeah?
l
could someone try joining the minecraft server mc.innac.org I just need to test it out. java 1.18.2
connection refused
Perhaps
That was like 6 hours and 6 minutes ago
Bro you gave them your ip
@soft violet
No, I didn't, I connected through a VM
Do you mean a VPN?? Cuz a virtual machine won't help you there
That Virtual Machine had a vpn
Good π
5 minutes craft Lore
The original by RYANcomedy :
https://www.youtube.com/channel/UCqaU6hYa4NMX1LPUys01aDA
The original video : https://www.youtube.com/watch?v=kras7YQ3W9U
@wraith nimbus hey, sorry we don't allow surveys
Alright I understand
why are corn flakes magical 
like ever had a bowl of cereal at 2:00 AM
yeah
yea can't say it wasn't magical
cereal is appropriate for all hours of the day
but my preference is,.. honey bunches of oats
like as in porridge?
WAT
I love the little honey-ball things in that
idk I'm British
Honey Bunches of Oats is a breakfast cereal owned by Post Holdings and produced by its subsidiary Post Consumer Brands. Created by lifelong Post employee Vernon J. Herzing by mixing several of Post's cereals together and having his daughter taste them, Honey Bunches of Oats was introduced to markets in 1989 after three years of development. The ...
the honey clusters are the best
oh you poor thing
I haven't had that
at least that brand
are they like Crunchy Nuts
yes those things are divine
do you have other post cereals?
me and my brother pick those out of the box while we eat
we call them "english muffins"
if you cross pancakes with waffles
so what's a non-english muffin
this is a crumpet
this is a muffin
agreed
that looks like a muffin ig
you call that crumpets??
no no
no that is a muffin
this is a crumpet/english muffin
we call these english muffins
wtf
but we don't call that muffins
it's like calling Auschwitz a Polish concentration camp
okay but that's like saying "french fries come from france"
they don't but we say it anyway
hm
perhaps
idk why we do, but that's the brand i had growing up
incorrect, they're freedom fries
fish and fries just rolls off the tongue
ngl fish and chips sounds so unappetizing to me
not that I eat fish
alright i kind of noticed that while typing
americans
mwahahahaha
isn't that a fast food in the US
5 guys
I've only been in one in the UAE
it looks so shit
went inside and immediately my hunger passed lmao
american fast food kinda sucks
idk if 5 guys counts as fast food like mcd or burger king
since they are actually cooking patties
see i was told that by college friends and just went with it
but the last time i had it again they didn't taste that good at all
i do like the vinegar tho
more places should do that
but really, can someone show me a typical fish and chips picture?
i love fish & seafood in general, so it's not that i dislike fish
like mussels & chips/fries is so good
Fish and chips is pretty basic to be called seafood tbh
Just a slab of cod and potatoes
Burger and fries are kind of a staple of fast food in general
Now for something odd
https://en.wikipedia.org/wiki/Toast_sandwich?wprov=sfla1
Literally toasted bread between two slices of bread
Mr. Depp has sued Ms. Heard, his ex-wife, on grounds that she defamed him in an op-ed she wrote for The Washington Post. In this comical exchange he talks about leaving a line of cocaine on the streets.
AH lawyers were talking about his addictions when the case is about DV allegations, ok.
Everybody's favorite old lady from the 80s, Clara Peller, drives like a lunatic in her search for The Beef.
Yeah lmao π€£ they've spent their entire time proving he is an addict not an abuser well he will win.
really hope he does, amber's lawyers are just plain dumb, i was giga pissed when they were questioning Baruch, like wtf sorta question is "how hard did you kiss amber on the cheek.."??????
tf does that even prove
pLeAsE reSpEct tHe cOurTs tIme
Yeah yeah I saw that and she was trying to depict it too fucking weird
Like if he kissed amber therefore he is perverted so therefore his testimony doesn't matter
she made it seem like greeting was a bad thing like tf
Lmao saw depps reply was on point
but man props to johnny for staying calm and having mild humor in such a dire situation
Amber Heard`s lawyer Destroyed Johnny
For awesome stuff check this :
https://www.fiverr.com/thedrew94/send-you-a-japanese-mystery-box?context_referrer=search_gigs&source=top-bar&ref_ctx_id=9e79467717d173d915d20fb956f6db8c&pckg_id=1&pos=10&context_type=auto&funnel=9e79467717d173d915d20fb956f6db8c&seller_online=true&imp_id=5d58a01a-c83f-4106-bee2-...
hearsay papers πΏ π€£
please don't use ableist language here
i haven't watched these trial clips yet. worth?
i feel like they might just depress me lol
very worth, especially that video i linked
wouldn't call it depressing but it's just plain dumb when ambers lawyers start opening their mouth
it's just.. baffling
Amber Heard pooping on their bed πΏ
π
she literally admitted to hitting johnny but the case is still somehow ongoing
reverse the roles and depp would be in jail
Sure
Yes some parts definitely watch the ones with cross examination
They have depp and back n forth with mr rottenburn
sometimes stupidity depresses me
that was straight out dumb because even he was confused as to what point he was trying to make lmao
When depp told him to repeat that oral use thing I lost it, gutsy shit lmao
yeh $50m because johnny is generous, down from 200m
XD
failed to compile assembly, fallback to C
huh?
she's basically pretending hard to make it seem like she was a victim of domestic violence
π π
ah close enough
lemme cry some more so that people will side with me
nvm the tapes where I admit to hitting Johnny
but he had to grow up he is such a fuckin baby
breaking character, like this is a movie smh π
How many millions of years of evolution do we need as humans to get bone claws like wolverine
i hate k&r brackets so much
very real formula - (420/69 == 6 or 9)
Depends how many years you need to save up to pay me to inject molten adamantium into your arm.
I said bone
Not adamantium
Also we would be fucked
No way we can moved that much weight with our body
you need jagged, exposed bone extruding from a human hand?
just get a bone formation issue at a young age!

That we retract in and out
get a muscle AND bone formation issue at a young age!

How about just become Cyborg
too unrealistic
bone and muscle deformations are much more efficient
Then why not just become Batman
too expensive
Lmao
bone and muscle deformations are much cheaper
Get bitten by radioactive spider free lmao
deleted last message....
find me that spider
I'm ready
With great powers...
I like that comparing trash can Emojis miight not be Something youβre all interested in lol
Realized*
comes great bites π
idk tbh
i so want to superstarify you vester
innocent
cause they never use nitro emojis
If you donβt wanna see emojis, I can send you some other pics
eyo
π³
π
i wish i can make adult jokes in situations that seem funny as much as real adults do
im the F# simp*
@last mantle open at your own discretion. Once you've seen it, you can't unsee it...
god no
hmm
I saw an actual ad for this a while ago (it's a screenshot). It seems... very strange
i saw more strange things, which won't let you sleep at night
The one on the right
both are same
Not quite
so not true, one is a garbage collector the other's a trashcan
in India,
we have equality, we put all the garbage, trash, e waste, eco-friendly waste
in one big trash can
||Danish||?
Incredible.
P9WtEH'
wow
where did u get that from?
I made it
π π nice
Designed the emojis, and then made a script to tell me where to place the emojis to write things
ah thats really cool
i dont mind either but if i had to choose ig the one on the right
If someone comes knocking at your back door at 4am tonight, please open up
sure
Branding Bot emojis >>>>
someone should write a script that converts strings into these characters
Thatβs what I did π
So for somereason my End and Home key on the keyboard are not working.
Plus some other weird stuff like my F5 lowers brightness without holding Fn
#ot1-perplexing-regexing```
^^^^^^^^^^^^^^^^^^^^^^^^

immigrant scholarship
all i did was write 2 mediocore essays about the challenges of moving to the US and my love for my major/field of study
maybe 7-8k will go to tuition and the rest is going straight to investments π€£
sheeeeeesh
it probably comes with conditions like you can't use it for other things, though
i thought of that aswell, but i havent seen any terms saying that. But I believe it will be refunded to me since it exceeds my tuition π€·ββοΈ
but ill email them to make sure
very nice
yup. also i did receive smaller scholarships for around 2k last semester. 1k went to tuition and the other got refunded, hopefully this is the same aswell lol
funnily enough rules are a tad bit weird iirc
basically, if i'm not mistaken
you ARE allowed to use whatever you don't use for education
but you won't GET it from them if you say you are
aka if you go upto them as say, "i'm going to buy a new car w/this" they won't give it to you
but if you say "i'm going to buy books/courses with it along with extra classes fees"
they'll hand the cash over
@blazing steppe i'm losing my shit LMFAO
https://www.youtube.com/watch?v=UXzw2Dgdwkk
I donβt understand why his objection to his own question was cut out from some live feeds, answers anyone?
i watched the depp video from yesterday
i can't not like him
- disclaimer idk any actual details of the case
who is he ?
right?! even his exes are fond of him, yet the only person that ever had a problem with him was amber πΏ this justice system ain't right
Like a static site generator?
He be Jack Sparrow from Pirates of the Caribbean
yea somthing like that
are there som library
for that ?
lol he is a lawyer ?
thnx
No, he's an actor
lol , most lawyers are paid actors
If cpython converts python to c for faster running can't it compile into an exe???
Oh
@dim pewter look into nuitka
You will love that
Lmfao
awesome
i'm glad this hearing is public
Yeah the public ought to know how twisted and incompetent Law can be
I think there we can clearly see JD covering his head laughing after the Judge calls out with "but you asked the question"
Johnny Depp Ends Testimony Proclaiming Heβs Victim Of Domestic Abuse in a $50M Defamation Trial, here is a clip of AH's lawyer objecting with hearsay to his own Question to a testimony as soon as he heard "told me". Hearsay has become the favorite word of this trial.
team AH is falling apart
that's actually really funny
I drunk too much. Its been three days and I am not able to recover from hangover
Please suggest something
Should I?π
lmao
open sauce pls? 

how much did you have
@rough sapphire explain this
explanation?
why they trash?
which one did you have?
and sadly i don't know if there's gonna be any fixing it
refuses to turn on, however plugging in the charger makes it blink thrice
i've tried a lot of stuff on google, reset pin under the laptop, clearing cmos, removing batteries
why did you get it?
mmmmmm it was on sale
oh so you got it new?
how much you get it for?
700 can get you a lot more these days
like what?
oh wow
you can upgrade the ram as well
you're right
up to 64gb
2x32
interesting
i retract my statement
thanks
Open source? The script or the emojis?
The emojis are available here https://github.com/python-discord/branding/tree/main/emotes/tilesets
The script is lost, somewhere deep within a backup of an old computer of mine lol
I made them in a vector design program (Affinity Designer at that time, I think). Part of the lemon beard tile set is based on the lemojis weβve made for this server

nice





makes me wonder what other things you could create with emojis
Basically anything
π³
What are you even thinking about

did someone mention canadian currency?
(CANADIANS HAVE JOINED THE CHAT)

hearsay
@tardy rain thanks for the heads up, went ahead and cleaned it out as well in case you notice the message is missing
Thanks frien
started following you 3 days ago catnitrogen
let me see if i can cause a segfault
i wonder if i can assign pointers to arbitrary memory locations like in C.
I seriously doubt it honestly
if not, this is not a systems programming language.
at the very least you should be able to have arbitrary memory locations.
(it's not)
void *x = (int *) 1
...without special loading
...and with a program that is burnt onto a ROM.
CEMT P SHUT I
hmm..
the build process better not be utter trash.
okay maybe it can be used as a systems programming language..
interesting
the more you know
well, all it does is objcopy magic
Linux moment
ugh, everybody's copying linux!
Linux's project layout is pretty good i imagine.
so i think it might be a good thing.
honestly never actually looked into the Go build system.
look at blackbit's token ring hack for linux 5.17
...I sholda said "good compiled languages have them"
that's still not true
fine, but I'd be wary before making such generalizations about languages you've never heard of
OS PL/I doesn't have 'em unless you explicitly enable 'em
but yeah you ain't gotta have em
python is technically compiled (it has a compiler)
so your point is invalid immediately
to a bytecode interpreter
I wanna see a physical python bytecode CPU
you can get physical jvm processors
when I say compiled, I mean something that makes a language that runs directly on a real processor, not an emulator π
also python is gonna generate machine code sometime in python 3.12+
and still no plans for pointers
I'm not holding my breath
every language technically generates machine code... that's what a JIT is
but, it's not a "precooked binary!"
where was i talking about JITs
like, if a compiler only produces code that runs on a mythical machine... that's a language processor
python is a jit
no it isn't
unless you're on some weird system
PyPy is one but normal python isn't
correct
but yeah, I wanna see a retargetable python compiler for an inmos or something π€£
I fully believe that one will exist Soon β’οΈ
Anyone familiar enough with GitHub to answer this thoery:
This is the main branch URL of the document which will remain current to any pushes to main
https://github.com/PagerDuty/developer-docs/blob/main/docs/webhooks/11-Webhook-IPs.md
This is the static url of the document, but is branch agnostic meaning updates won't reflect here:
https://raw.githubusercontent.com/PagerDuty/developer-docs/bafbbd6c297bdaf05c2d7526b82081cc45797d3e/docs/webhooks/11-Webhook-IPs.md
I think that's how github/git references things. Branches are just floating reference points with a name. The ...797d3e ref is a single point in history.
My brain is mush. Somewhere in this haze I'm yelling at myself that I know this. But here we are, regardless.
Does that long number correspond to a certain commit? I'm not too familiar with how raw.githubusercontent works tbh
the long number is a commit hash iirc
I believe you are right about all of that, Preocts. You can have commits that are completely untied to any branch, too.
π Thanks for the second eyes on it.
I should not be doing this now... but can't sleep! 
Gather PagerDuty webhook IP safelist from their help documents repo
This is to replace an extremely useful endpoint they are removing for some reason that would provide a simple, programmatically consumable IP list. Smile.
is my snark showing yet?
it's coming through the "for some reason" and the "smile"
This is such an ugly hack I'm building. I love it.
even an ugly hack can be made pretty β¨ https://github.com/Preocts/pagerduty-safelist-gatherer
Commits (objects) are built as trees with each one having one or more parents
then its not a tree π
it's just upside down
although technically it would be a forest
so, i ran this code py exponents = lambda base, exp: (lambda b, e, x=1: [(print(x), x := b*x) for i in range(e)][-1])(base, exp) print(exponents(999999999, 999999999)), here is the output -
Hey @jovial oriole!
You either uploaded a .txt file or entered a message that was too long. Please use our paste bin instead.
i really hope this works
Hey @jovial oriole!
It looks like you tried to attach a Python file - please use a code-pasting service such as https://paste.pythondiscord.com
!paste exists
Pasting large amounts of code
If your code is too long to fit in a codeblock in discord, you can paste your code here:
https://paste.pythondiscord.com/
After pasting your code, save it by clicking the floppy disk icon in the top right, or by typing ctrl + S. After doing that, the URL should change. Copy the URL and post it here so others can see it.
nope, doesn't work
exceeds the char limit
and pastebin too
Β―_(γ)_/Β―
Sad
sadge
dm π
bash-3.00$ uname -a
SunOS solaris10 5.10 Generic_118855-33 i86pc i386 i86pc
bash-3.00$ make
c99 -c -DNDEBUG -I. -I./Include -DPy_BUILD_CORE -o Objects/dictobject.o Objects/dictobject.c
"Objects/dictobject.c", line 429: too many struct/union initializers
"Objects/dictobject.c", line 658: warning: statement not reached
"Objects/dictobject.c", line 797: warning: statement not reached
"Objects/dictobject.c", line 871: warning: statement not reached
"Objects/dictobject.c", line 936: warning: statement not reached
"Objects/dictobject.c", line 1003: warning: statement not reached
c99: acomp failed for Objects/dictobject.c
make: *** [Objects/dictobject.o] Error 2
bash-3.00$
this is gonna be fun
in theory cpython 3.6 ought to work on Solaris... right?
What's that
Ah
why on EARTH are google links so long
what I'm trying to say is that there's a lot of good info online besides what I can explain in one sitting
I wish they were as short as https://goo.gl/search/solaris+oracle
Oh damn that link does work
Breh what a coincidence
python is horrible for the environment, it has a garbage collector but no recycler
python does actually recycle quite a few things, such as lists.
@weary moat pardon the ping but what is the UKPA about besides pycon uk
Your site looks really young
What other events do you have going on
Also what on earth is matrix lmao, why not use discord
You ping me and use a phrase like lmao and seriously expect a polite response?!
Just wondering, not trying to be rude
If you want this to take off wouldnt it make more sense to use a more popular platform?
Also im more interested in your events really
Never mind i guess, i'll wait and see how it pans out
Or not
Im gonna need a postmortem on this interaction lol
lmao
π€£ mans really took offense to lmao
π€£
Is anybody here Georgian? I am interested cuz I want to know a bit about your language (if you are Georgian)
Twice, only? 
yes
man is stalking a whole country
import my_mod # is an empty file
setattr(my_mod, "foo", "bar")
print(my_mod.foo)
is there a way to do this kind of stuff for javascript?
Segmentation fault π
hmmm
!shadowrealm
>>> sys.getsizeof(1)
28``` 
In theory shouldn't 1 and 0 take only one bit?
same for booleans
all python objects have some overhead
their refcount, a pointer to their type
ints in python arent just pure numeric data like in c or java, they're full fledged objects
i've stopped caring bh
i couldn't give the slighest shit if my code harms the enviornment
also even lower level languages don't have just 1 bit for booleans, they use a full byte because thats the minimum amount of memory most platformss support allocating
i'll be dead before we see any change
not allocating, addressing. Generally, allocation happens in larger byte blocks (16B for GNU malloc, word size for some others afaik)
oh
got it, thanks
even C's bool is 1 byte
whoops, wasn't meant as a reply
Zig does supports ints of every size from 1 bit up, though.
ah right, packed or something.
I believe C++ does some template insanity to make std::vector<bool> bit packed
is zig even a contender? compared to Rust/Nim?
C gets arbitrary sized ints with 23, but they just get padded if the platform cant support them
is zig a strict superset of C++?
being better C than C
isn't that V?
zig has comptime blocks allowing arbitrary code execution at runtime
EDIT: fuck, compile time, of course.
nope, V has a runtime and a GC
zig is just C, but without decades of legacy cruft
and leveraging modern tooling
that's not unique to zig, every lang offers it in some way π
and it's not like Rust where you have to do a goddamn "proc-macro crate" to get to do that.
so zig has no GC?
nope
so it's memory unsafe?
yup
...how do you do it in C, say?
it is closer to C in its memory model than anything else
dlls?
you can't do sth like C++ constexpr stuff
suppose you have a compile-time constant array. How do you, in C, calculate at compile time how many elements in it are even?
In Zig it's as simple as a for-loop in a comptime block.
compiletime offers almost nothing tho..?
what if we have dynamic data structure like list
that mutates during runtime
C++ also has constexpr, which does sth similar. Nim has this to an even greater degree
the comptime evaluation would be meaningless then
yeah, it's more for precomputing stuff
i believe rust has it too?
without the comptime keyword
it checks length of array
then I'm missing the point
the idea is being able to run arbitrary code at build time
ye, but I don't think you get full on arbitrary code with rust
but yes, the feature is getting more prominent
though lisp macros run at runtime just like anything else
Rust does allow doing about anything in procmacros, but the problem is that it's annoying. You have to explicitly mark your crate as a procmacro crate, and then manually transform the syntax tree. In Zig, meanwhile, it's literally just writing normal code in a comptime block.
(and Rust's declarative macros are less powerful. Something as simple as counting elements in an array can only be done using recursion and is expensive)
you have #. to run things at read-time, but even reading happens at runtime in the very traditional lisp abstract machine
is Rust really the only statically strongly typed language with powerful macros? π³
there's this nice article, say
https://kevinlynagh.com/rust-zig/
D macros (well, they are called templates, but they are mostly macros) are also quite powerful
and well, haxe has macros, and can run arbitrary code. As can nim
cause there is tons of dynamically typed langs with powerful metaprogramming
ooh, nim
yeah, metaprogramming is way easier when you don't have a type system
it's why it took decades to get good macros outside of lisp
VHDL is kind of interesting in this regard, since it isn't really an executable language, so the only code you can run happens at synthesis time, everything else is vaguely declarative.
π¬
how do rust macros work, do you just invoke them as functions with exclamation mark or?
that or #[macro] afaik, though I didn't really mess with rust macros too much
there's two fundamentally different kinds, procedural and declarative. The former are basically functions that get passed the syntax tree involved and can alter it arbitrarily, the latter are defined, well, declaratively, like
macro_rules! reversed{
($arg: expr, $fun: expr) => {$fun($arg)}
}
fn print<T: std::fmt::Display>(x:T){
println!("{}", x);
}
fn main(){
reversed!("yay",print)
}
can procedural macro for example read from file and place the read string into the code? π
like ./something.txt and it has token1 written in it
and you'd just put that as part of the code?
There's a builtin for that, actually π
Includes a UTF-8 encoded file as a string.
and an equivalent for including as raw bytes.
It's handy; I've used that before for loading shader files at compile-time.
but I think it's also possible for a custom proc macro.
where it gets really obnoxious is if you want to like.. parse JSON at build time.
how come
because you need a json parser
in pure rust at that
in nim, the stdlib has a ton of pure nim parsers for most common text formats, so you can use those, but in rust, it gets more annoying
eh, they serve different goals
You could hypothetically use Zig as Nim's C compiler
nim has its insane matrix of backends and runtime dials, zig is just C but better
the way i see it, they both apparently serve no goals π¦
zig aims to replace C, nim aims to be adopted in the finance industry levaraging its ada-like typesystem
Nim has ada like types?
yup
that's so nice
I still go a little "wow!" whenever I hear of Zig's tiny size (no more than 60ish MB) and first class cross compilation
you get all the ranges, newtypes, etc.
I can only name two things right now that aren't finance related
Nitter and Godot-Nim
honestly, I have low hopes for nim
Well at least Aph isn't here to hear that
the fact I found a compiler bug within like an hour of using it, after they made a 1.0, is just... sad
i have low expectations from Nim/Zig
o templates are macros??
D templates take ast fragments and can manipulate them in arbitrary ways
that's a macro in my view
I have decent expectations for Zig. Aims to be a C replacement, an improvement of it
Doesn't try to overshoot itself. Just tries to be a better C, that's all
the string templates or whatever its called is cool
yeah, nim can do that too
D never caught on, did it?
nope
it was mis-advertised
it is however not a bad language
but it is also not a systems programming language
why not
GC for one
and overall, having a runtime
you can turn the runtime off, but most libraries don't work then
ah
Isn't Go also advertised as a systems programming language despite of those?
but we already established GC doesn't mean it's NOT a system programming language
GC langs can be system programming language
hmm, that's fair
back when D started to exist that wasn't really the case
since GCs were still kind of bad
back in the era of "figure out what java GC an API is using by it's latency graph"
@graceful basin Didn't you tell me about Pyramid before? The Python web framework
I did
You said it never caught on, right?
to my knowledge, it didn't, yeah
Do you have any guesses as to why?
I assume that most people think they know the scope of their project
and those are called eponymous templates (ig) which are different from
T func(T)(T a) {}``` right?
ye, the main difference is that D templates get full names
whereas C++ templates just have the name of the single symbol they produce
i see
!help shadowban
!shadow_ban <user> [reason]
Can also use: sban, shadowban
You cannot run this command.
Permanently ban a user for the given reason without notifying the user.
TIL.
used mostly for raids. Sending a DM to 10,000 users gets us rate limited, so we need a way to ban a whole botnet without sending ten thousand DMs.
Couldn't help myself adapting this masterpiece.
Original Source (at 29:48): https://www.youtube.com/watch?v=lGH5mBbOLXE
Follow My Work:
Instagram: @nickwiththehat
Twitter: @nick_withthehat
Website: https://www.nickcatal.com
I OWN NOTHING! All characters and settings belong to their rightful owners.
Kinda looks like what the Svelte Discord does
They've been using threads to do what the Forum Channels feature does
rust community server has had forum channels live for quite a while now
I got this popup on my private server. dumb that I don't actually have the ability yet
are you on canary
i asked about it in discord devs server
and they said, that it was an accidental pop-up
hlo can anyone donate ur old account dated before 2019 to me i badly want to flex plsss
won't you get ratelimited for doing so many bans at once?
time to see what this forums thing is all about
huh, can't create one, same error at mina
we have ways.
but, yes, ratelimiting is a real risk when dealing with raids.
but we've made those mistakes and learned from them
@drowsy pumice you can always do the same thing in rust
the _ => bullshit too
same thing as python's ```py
match 5:
# ...
case _:
print("oh hey nothing matched")
yuh
but the _ is used to catch an error
in what language
_ => {print!("fucky wucky happened")}
rust also has this thing that doesn't involve errors btw and this is how it's used in rust for most cases
rust looks kinda nice
why is there a stack overflow emoji

















