#voice-chat-text-0
1 messages Β· Page 470 of 1
ah
okey
no
everyone is here
well on #voice-chat-text-0
worm
its def not meu :3
I was developped jpeg encoder in cpp
same quality compared to mozjpeg
Oh I once trained LLM
Openai does censor, I got blocked to use Openai because I asked about the CIA and it's wrong doing
lol
I'm serious
You guys know the research where they let the ChatGPT to manage a vending machines business
yea then it did somethung bad
huh??
can somebody give me a link to that research?
thanks
I'm thinking about getting mistral for two projects and finetuning it for a) NPC ai in video games and b) as a like supplement for guys who need help dating
You reading it rn???
yep
Interesting isn't
yeah
lol
It's you not the phone.....
The phone is just a machine doing that you told it to do
Don't buy cable from temu π
Don't buy cable from temu
what are we doing this for?
ai project xD
bruh why do when i join i only hear such dark stories π π
not like these π
i mean i was stuck in an elevator once that was terrifying
like 14 to 20 min
yeh π
yeh like there was no space
better have that water bottle with you..
until the elevator service comes, you know what to do
π thanks
is it better working on a project in a group or alone?
i mean in a team u could learn from others but alone it is just convenient on ur own
i mean sometimes i am short tempered 'sometimes'
like i dont like being bossed around
yeh i started working in projects for building a frontend website and i was kind of the lead but it was so stressful nobody fuckin worked π
It happens so often
yeh
either play the game or get played by it
tomcat go brrrrrr
aerospace and computers go very well
but its one of the hardest jobs
yeh lol
that was like 9 incidents
and besides that same machine saved soo many lives
as far as i know
and no your wrong
the issue was when the cursor would go over a certain thing (its a swedish cheese typa thing) that would happen where it would kill the person
its not even the critical part, you'd have to work with soo many other people, and you must be knowledgeable way beyond coding
and also no army general is gonna have a fun time with you when your the main cause of a 2 billion dollar f35 crashing
i mean aerospace is not always about fighter jets and rockets
i mean there is analysis stuff and drones maybe
in order to get into lockheed you must be smarter than elon musk
making websites is not at all close to making microwaves and is not at all close to working for boeing
yeh but maybe ai and data
elon just made the worlds first hypersonic jet
it has huge industry application in drones and radar and stuff
If your working with an actual aerospace company your gonna work with physicians,mathematicians, engineers
like crazy
"quants"
damn thats a gr8 difference
there is a general consensus mathematicians are smarter than physicians
bruh what
@dry jasper getting in the car while u driving seems scary π π
thats what reddit says so i have to agree
i had read that in order to get into the world of 'quants' math is the best major , followed by physicist, then engineer and cs
engineer=cs
@dry jasper just so you realize supersonic doesnt only apply to aero
what is left ??
air is a fluid
No, supersonic flow in air is not strictly linear. While linearized supersonic theory is used as an approximation, particularly for small perturbations, real supersonic flow is characterized by non-linear effects and shock waves. This is due to the density and pressure changes that occur as air becomes supersonic.
Linearized supersonic flow theory assumes flow perturbations are small, and propagate along Mach waves with an angle equal to the freestream Mach angle.
Shock-expansion theory relaxes this assumption a little bit by evaluating the local change in Mach angle and flow direction, moving downstream. Through shockwaves the flow angle and Mach angle will increase, and through expansion waves, the flow angle and Mach angle will decrease. Consequently, thicker bodies can be evaluated. This is still limited to thin geometries in most cases though, because for low Mach numbers and/or high deflection angles, a weak shock solution does not exist. A shock with no weak solution is often referred to as a βdetachedβ shock, which results in regions of subsonic flow. Other techniques must be used to solve flow fields with both subsonic and supersonic flow.
which i think means its non linear
I love Linearized Supersonic Flow Theory because the entire basis is "But I wanna use linear equations". I mean like yes there's more to it but the literal explanation was "The Linearized Supersonic Flow Theory assumes small perturbations to the flow, meaning the flow is only slightly perturbed from a perfect freestream. The assumption of small deviations allows the use of linear equations to describe the behavior of the flow, and perturbations are treates as traveling along Mach waves, which have a fixed angle equal to the freestream Mach angle."
When mathematicians get lazy
have you heard of stochastic calculus
yes, but why do you ask?
Stochastic calculus is used because it provides a mathematical framework for dealing with random processes and phenomena, particularly those with uncertainty or randomness.
as a 'hopefully one day' machine learning engineer , should i learn c++ along with python
ikea
thats cool - I learned something @whole bear
Eleven-year-old Indian-origin twins, Krish and Keira Arora, were admitted to the elite Mensa membership club of children with a combined IQ of 314. Krish was the first of the twins to be accepted after scoring 162, which is believed to be higher than Albert Einstein's estimated score of 160. here is the new elon musks of the world lol
hello freinds
would any of you take a job working for elon musk if you had the chance
Elon is a workaholic , and drives everybody around him crazy
combined iq
combined how exactly?
spending most of work time arguing on twitter is not workaholism
so just a meaningless number
elon said everyone cannot go home until the work is done...they have to eat/sleep at the office 24 hours a day
and have to work all day long
yes
with no pay
thats not workaholic, thats called a criminal
lots of burn out - over there
he is doing alot of world firsts
!e
from math import erfc
print(f"{erfc(.5 ** .5 * ((162 - 100) / 15)):%}")
:white_check_mark: Your 3.13 eval job has completed with return code 0.
0.003575%
just means top ^that high^ in a list
yeah those kids must have really good genetics
correction: half that
f"{.5 * erfc(.5 ** .5 * ((iq - 100) / 15)):%}"
how can i make money
find a job
java enterprise
did you just workout the std of this XD
dude, not sure if that's Safe For Python
its a fatboy slim song?
Provided to YouTube by Jive
I See You Baby (Fatboy Slim Remix) Β· Groove Armada Β· Gramma Funk
Vertigo
β 1999 Zomba Records Ltd.
Released on: 2000-02-22
Associated Performer: Groove Armada feat. Gramma Funk
Composer, Lyricist: Andy Cato
Composer, Lyricist: Tom Findlay
Composer, Lyricist: Toi Wooten
Engineer, Mixing Engineer: Simon Thorn...
thingy made $4.18
omg my brain ¬¬ I'm forcing myself while stressed to do shit ¬¬
maybe give myself an hour and not just wake up and stare at code
average developer:
hello
wassup guys
why do some guys use just vim over intellij and pycharm?
vim is terminal editor you wont get to use mouse right
well, even without it, how do you guys code so fast?
@whole bear
@haughty pierwhat u are doin
@whole bear https://github.com/NixOS/nixos-hardware is what you need to enable "microsoft-surface-pro-intel"
@halcyon compass π
LLM Text-Adventure Game - Discover and download custom models, the tool to run open-source large language models locally. Explore a community-driven repository of characters and helpful assistants. Talk to customized characters directly on your local machine. Visit Open WebUI Community and unleash the power of personalized language models
The Forgotten - LLM Text Adventure Game - Discover and download custom models, the tool to run open-source large language models locally. Explore a community-driven repository of characters and helpful assistants. Talk to customized characters directly on your local machine. Visit Open WebUI Community and unleash the power of personalized langua...
hey opal mist your japanese sound off
@lost aurora π
your accent is too hard for japanese
@solar sierra π
cleaning
Bill Gates too Autistic too make a clean OS
Zak too Autistic to tell the difference between too and to
smig
sup ik
It sounds like analogue whine from your audio cable setup.
Like a bad connection.
its static cus my laptop is grounded
was goin on?
i can feel low current electrecution...
It doesn't sound like it's static.
painful if you touch pointy part
@wise loom Yo ^^ i am bebou mdr
@wraith jetty π
i know, hi
it still have medical purpose tho
med talk π£οΈ
what π
its ik null
@warm trellis
its "ik null"
it is...
insert NODE next_node; at the top of find_node ?
you're right, next_node is an index in the nodes vector
it would be define
so, maybe lift that from there, a few lines up, so it can be available inside the while loop too?
its gonna get defined anyways π
huh? no, it's defined in that small scope
you need it in the entire scope of the function, because you're using it in the while loop
it should work cus that will be defined no matter what
it same even if its inside that else block
or not
as per your screenshot, next_node is only available currently inside the else branch.
if you want it available on a broader scope, define it at the beginning of the function.
sus
so else block is a local block?
anything created inside is only available inside?
god sake why
correct
hello ! i do not yet qualify lmao, will talk whenever 3 days have passed ahaha
what?
i can't voice verify lol, cause i just joined ahah
ohh
what r u guys up to?
god sake why
check https://discord.com/channels/267624335836053506/764802555427029012 for the conditions to get voice verified.
previously they are talking about drugs and drug adiction
yes yes i've seen that, but i just joined the server so i don't meet the requirements, lol
how'd you get your background to be cool??
sorry if my questions are dumb, i started learning python about a week ago so i'm not yet seasoned at all ahaha
this will not work
that's cool
cus int& need declaration
so far i've learned a lot of stuff tho !! and I managed to program a simple rock paper scissors game against the pc :)
yes sure, but it's my first project, i only did it to start learning python :P
i mean by rng is random number generator
what guys doing?
!source @worthy timber
wait
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
me???
im not understanding lmao
i ping you cus you where murmuring that you want resources to learn stuff
import god
dont mean it literally
@lethal shell go on #βο½how-to-get-help
ill sugges learn web development first
true
the first impression is kinda the hardest part
especialy for those who dont have good looks
i cant relax with my c++ school project
π₯²
uhhhhh english please...
Fartlek is a middle and long-distance runner's training approach developed in the late 1930s by Swedish Olympian GΓΆsta HolmΓ©r. It has been described as a relatively unscientific blending of continuous training (e.g., long slow distance training), with its steady pace of moderate-high intensity aerobic intensity, and interval training, with its...
Quack
Explain.
Im a duck
mhm
also my parents never gave me attention
@astral coral quack
@dry jasper Quack
O.O
o.o
I am here but no speaky
we sp[eak in a different language
Partial Hem
Pseudo Hem, if you will
If you had socks made from crocodile skin, would they be sockodiles?
@peak depot At least it got done
ahh cutting onions make me cry...
@dry jasper "And I just can't hide it"
I've never had that happen to me. I've gotten the burning but never the eye watering
I really can't think off a witty come back XD
Damnit Gary
dammit car
damet garm
Ah okay
Ψ―Ω Ψͺ Ϊ―Ψ±Ω
Neat
Channel abonnierenβΊβΊ http://ytb.li/Fard
BELLUM ET PAX hier kaufenβΊβΊ http://fard.fty.li/BellumEtPax
Fard folgenβΊβΊ http://fard.fty.li/social
Channel abonnierenβΊβΊ http://ytb.li/Fard
BELLUM ET PAX hier kaufenβΊβΊ http://fard.fty.li/BellumEtPax
Fard folgenβΊβΊ http://fard.fty.li/social
Channel abonnierenβΊβΊ http://ytb.li/Fard...
I farded
what is going on?
@copper adder
Channel abonnierenβΊβΊ http://ytb.li/Fard
BELLUM ET PAX hier kaufenβΊβΊ http://fard.fty.li/BellumEtPax
Fard folgenβΊβΊ http://fard.fty.li/social
Channel abonnierenβΊβΊ http://ytb.li/Fard
BELLUM ET PAX hier kaufenβΊβΊ http://fard.fty.li/BellumEtPax
Fard folgenβΊβΊ http://fard.fty.li/social
Channel abonnierenβΊβΊ http://ytb.li/Fard...
I have no idea. I'm having my second monster
I'm going to regret many things
@worthy timber You're really quiet
No no no
Monster energy drink
Olympus Monsters. π πΎ
So is it all just based on context clues at that point?
@astral coral Did Chris go ahead and restore your video perms?
yeeeeeee
Good
@short spruce Please do not attempt to purchase or rent other accounts
It's highly against their terms of service
In fairness Shakespeare makes little sense now as it is
Madar (madar) to nafase man hasti
Az shadegie hamishe berakhsi
Hich sani nemitooneh jaaye toro war dare
Ino mikhunam ke khodaham bavar kone
Madar (madar) to nafase man hasti
Az shadegie hamishe berakhsi
Hich sani nemitooneh jaaye toro war dare
Ino mikhunam ke khodaham bavar kone
@copper adder We're getting background noise from you
Madar (madar) to nafase man hasti
Az shadegie hamishe beraghsi
Hich zani nemitooneh jaaye toro var dare
Ino mikhunam ke khoda ham bavar kone
Madar (madar) to nafase man hasti
Az shadegie hamishe beraghsi
Hich sani nemitooneh jaaye toro var dare
Ino mikhunam ke khodaham bavar kone
Can you mute when you're not talking, Ali? We're just getting a lot of background noise
All good
Everywhere in the world is locking things down again
ehh political wars
The pendulum is swinging back to the right
best commedy ever
@primal shadow Sup
mir geht es gut
hello
disapointed
Same
yo chat whats a bfs
better file system
the fuck was that?
What was what
Breadth first search?
And if German doesn't have a word for it, it'll slam all the words together until it has one
We have that in English as well
What is a hard drive or solid state drive in German?
@astral coral what was that you doing there?
I still don't know what nvme stands for
Never checked
That sounds right
No that sounds accurate
Non-Volatile Memory Express
something stupid I'm working on
Ah right, Express in this case being PCI-E
Since it uses the same connection I think
NVMe (Non-Volatile Memory Express)
Oh right, PCIe
Which is express in that context as well
Spanish is neat
I should have paid more attention to it in high school
I could explain...poorly...but I'm also tired.
"The most spoken if you ignore the actually most spoken language"
oh I like stupid π
As a second language, got it
explain poorly with non-programmer language
Do you have actual money in there or is it just doing mock exchanges for now?
mock :L
as second language
Good
yeah no fuck that
Huh
I am working on my pasta
English makes sense
π
Quack
We were only caring about second language
Interesting that they exclude creole
Oh okay that makes sense, I forgot it's a combined english and french lang
@dry jasper If we go by what you said as a second language, French crushes, yeah
Which nation?
@dry jasper π
Ascension?
Holy Roman Empire
Depth first search adds to the right and pops from the right. Breath first adds to the right and pops from the left.
Adding to the stack indicates a discovered node to be processed. Popping from the stack involves also checking that node.
As nodes are processed, its reviewed neighbors are added to the stack. If a node path is exhausted/is a dead end, it is discarded and the next node in the stack is popped.
d
breadth
like bfs will get the current options of a node?
The point is, breadth first and depth first are the same algorithm with one small difference between them.
.xkcd 2407
Christianity itself has so many sects in the US that it's difficult to use it in a political way without losing one side.
Maybe this could be the reason behind little to no christian radicalism
instead of just digging a hole like dfs?
also isn't bfs a big file scanner on α΄Ι΄Ιͺx or whatever
okay, bsd, thankfully, doesn't have that stand for that
bfs looks scary
@hexed timber π
1MB iirc
@dry jasper android
maybe I should visit the island it's named after
maybe I even have
what a horrifying URL
opensolaris operating system manual for bfs section 1 of the unix.com man page documentation.
tf I'm looking at
anyone got yt links for indian coders teaching stuffs
Links?
yes channel links
is this Indian enough
https://www.youtube.com/watch?v=0hQvWIdwnw4
Please subscribe to our YouTube channel @ https://bit.ly/devoxx-youtube
Like us on Facebook @ https://www.facebook.com/devoxxcom
Follow us on Twitter @ https://twitter.com/devoxx
Java 8 makes it relatively easy to program with parallel streams and to implement asynchronous tasks using CompletableFuture. When someone says itβs easy, cautious...
These are channels I would suggest :
Chaiwithcode
Codewithharry
Telusko
Codestoryshanghai
Venkat Subramaniam is a great speaker
im more expecting this
https://www.youtube.com/watch?v=Y9Zw6xOGly0
exactly
all indian coding tutorial videos: https://youtube.com/playlist?list=PL6UWhLpTFLr99Ximb_KRLa9X7HyKQTpy-
pls consider donating me: https://www.buymeacoffee.com/nefos
Abdul bari
thanks
does chaiwithcode uses yt?
Yes
@gentle flint vibe jira
Quack
A channel dedicated to chai and coding in HINDI. A lot happens over chai and I am a big-time chai lover. Let's sip tea and write some code and some chit-chat.
Ab ye b Hindi me linkne to mat bolna, abhi ke liye itna hi likenge.
Baaki baad me.
Sponsors ka welcome h: team@hiteshchoudhary.com
Sports betting, SKILLS based Games etc apps ka promotion...
He does have an english channel as well ig
might learn hindi soon
@peak depot "angry sun that's about to melt everything off the face of the Earth" type of sunny
Ha ha, use caption
why? @chilly obsidian
@chilly obsidian Telusko would be best if you like to learn in english.
I'm aware of a certain Russian channel that parodies that
focused on "teaching" Python
u mean this?
Explore our top courses and take your skills to the next level with our expert instructors.
Yes
his vids is in hindi
ah...
https://discord.gg/B7tqy6c9 live hacking
@chilly obsidian
https://youtube.com/@hiteshcodelab?si=9C_1fM-QZLfoYExz
Here's his english channel
Website: https://hiteshchoudhary.com
Hey there everyone, Hitesh here back again with another video!
This means I create a lot of videos, every single week. I cover a wide range of subjects like programming, what's latest in tech, new frameworks, open-source products etc. I keep my interest in a wide area of tech like Javascript, Python, PHP, Mac...
nice
+1 guy invited to my marriage.
the what just released
I got Chinese, Vietnamese channel as well would you like to learn from them?
list them all
my my.... cant imagine what its gonna be like in my marriage.... full of dsalgo experts
Nvm
@peak depot epic metal collab from 20 minutes ago
what happend
oh, he got banned I think
well, kind of expected
Who?
pythonistrash
or one of the channels reuploading his videos
I have no idea what platform the original is on
well, to be more precise, he is not really parodying tutorials
more of his own cursed niche
what does python do to get this much hate from him
Dude, I've had two Monster energy drinks and I'm still tired
for views i suppose
safe environment
Don't die
Some of them have inappropriate name
Back in a sec
:))) i have no idea what is inside genius heads
I'm bored. I want to do something.
somebody have any idea?
.... thanks
wait nvm no thank you
gotta delete my history
Animmo you'r here? @dry jasper
yes
@chilly obsidian If you do have access to bilibili, use it.
You will find many folks over there!
i think i deserve a ban
Do you have an idea for a group project? I want to do something
not really
is it chinese yt?
Yep
can i have your github to see your projects?
eat it
wdym by "many folks";)
give it to me if you don't want it? @gentle flint
A brownie or broonie (Scots), also known as a brΓΉnaidh or gruagach (Scottish Gaelic), is a household spirit or hobgoblin from Scottish folklore that is said to come out at night while the owners of the house are asleep and perform various chores and farming tasks. The human owners of the house must leave a bowl of milk or cream or some other of...
@haughty pier @gentle flint "true sysadmins use ed"
"you should start a pycharm dev container each time, mounting your config dir into it"
I've had to debug software on Astra Linux before
such a pile of garbage
Astra Linux containers running on Astra Linux host
why would you ever
last night's commit: https://github.com/aaronchall/config/commit/e0777eed105325c51e78fc9bab1c1637d63963d0
is github a some sort of church?
Astra seems to be Debian-based
no, NixOS is
β¨ written in Rust β¨
underlying tech is interesting
oh wait no
Go
I'm confusing with something else
TiKV
TiKV is in Rust
@rugged root you can extend postgres with a mongo interface
DocumentDB/FerretDB
Hey @midnight agate π
How are you doing?
Good here. Just pinning resumes to telephone poles at this point
I'm not even getting rejections
They just don't respond at all
Cargo.lock line 4125
name = "miow"```
meow
oh, wow, I did guess correctly that it's Windows
π
I think I know of TiKV because of Raft
oh, I see someone's trying to pretend they're smart because they've watched that one Australian youtuber before
if no, you have no clue about internal Russian politics
Kovalchuk and other Kovalchuk
there are multiple
it's surprising how few people even know about them
like inside Russia too
sounds like a poor heuristic but perhaps you could explain what you mean.
@haughty pier what's a good python API
thanks for confirming. you have no clue about internal Russian politics.
What is Vranyo?
Vranyo plays an important role in defining the relationship between the Russian people and their state. The best way to understand vranyo is to contrast it with another Russian term, lozh. Both lozh and vranyo translate as βfalsehood,β but there is a meaningful distinction. Lozh is a genuine lie: one party says something recognisably false while expecting to be believed. Vranyo, by contrast, describes a story told that both sides know is untrue but nonetheless is responded to as if it were the truth. In Part Four of Dostoyevskyβs The Idiot, General Ardalyon Ivolgin spins Prince Lev Nikolayevich Myshkin a tale claiming to have convinced Napoleon to retreat from Moscow. Myshkin knows the story is false and Ivolgin is likely aware of this fact, yet Ivolgin tells it with a straight face and Mishkin smiles and plays along.
o is stressed in that word, not a
@peak depot and used as an internal spying mechanism
that's how current patriarch got enough influence to reach his current position, in part
@haughty pier can you answer my question bro?
Weather you like him or not, Ronald Reagan was a charismatic politician. He used humor to win over his audiences and it was a better way to put a point on his message.
@AnyHistory
#shortvideo
#ronaldregan
#history
Footage from: Ronald Reagan Presidential Library
wrong answer
damn
trolled again
I need to talk more
@haughty pier
did you get a new job yet
one that actually pays enough money for you to buy a car
and fix your calve problem
don't have a cow man
when I get voice perms, do I get video perms?
no
does @haughty pier have video perms?
like his camera?
blessed
we are saved
mods dun did a gooder again
Aaron likes smelling shoes
!rule 4
4. Use English to the best of your ability. Be polite if someone speaks English imperfectly.
it says - Aaron is a bad girl
for some reason google translate thinks that says Arron not Aaron
it does
it's transliterated
for funnies
it makes more sense in Yiddish
google translate isn't very good with Yiddish and Hebrew
@haughty pier there was a non-English sentence
we hate Ruby here
it's verboten to even think of it
but it's okay to smell shoes
do you still have that video?
we de-GIL'd it
!e ;
:x: Your 3.13 eval job has completed with return code 1.
001 | File [35m"/home/main.py"[0m, line [35m1[0m
002 | [1;31m;[0m
003 | [1;31m^[0m
004 | [1;35mSyntaxError[0m: [35minvalid syntax[0m
I forgot... can you run multiple pythons with 1 CPU core (non-hyper threaded)?
like can they just pagae allocate different page tables?
ok so...
it's a OS's thing to worry about
if I have 1 CPU core with no threading... I can run them as green threads then?
ok
so we no longer need @haughty pier at his job
we can let him go now
just separate processes
or threads
if you only have one processor core, GIL won't slow you down
where is the "e"?
!source eval
Run Python code and get the results.
there
!e;
Β» enumerate
Β» exit()
Β» environments
Β» envs
Β» empty-json
Β» for-else
Β» except
Β» equals-true
Β» on-message-event
!e ;
:x: Your 3.14 pre-release eval job has completed with return code 1.
001 | File [35m"/home/main.py"[0m, line [35m1[0m
002 | [1;31m;[0m
003 | [1;31m^[0m
004 | [1;35mSyntaxError[0m: [35minvalid syntax[0m
Python doesn't have true green threads, it has coroutines, GIL-restricted OS threads and multiprocessing (multiple interpreters)
so Aaron and I plan to make an AI to help us generate money so we can retire
so it's still restricted
interesting
I'm not surprised that Aaron Hall would mislead
you need to compile CPython with certain flags to remove GIL
it's now a compilation option
true green threads being an upstack abstraction that's mostly transparent to the programmer
Go, Lua, Java
some other languages
Rust pre-1.0
I would never mislead you
how many bits does it take to store a 32 bit number in python?
a lot
"half-lie is still half-truth"
this is bad
Aaron is known for this
!e
import sys
x = 0
for _ in range(101): x += 99
# hopefully by now x is not interned
print(sys.getsizeof(x))
:white_check_mark: Your 3.13 eval job has completed with return code 0.
28
sys.getsizeof(object[, default])```
Return the size of an object in bytes. The object can be any type of object. All built-in objects will return correct results, but this does not have to hold true for third-party extensions as it is implementation specific.
Only the memory consumption directly attributed to the object is accounted for, not the memory consumption of objects it refers to.
If given, *default* will be returned if the object does not provide means to retrieve the size. Otherwise a [`TypeError`](https://docs.python.org/3/library/exceptions.html#TypeError) will be raised...
approx 224
@peak depot aren't they all fake
the birds
they're all spy drones
compulsive nix condition:
a need to talk about how you've just upgraded nixos every five minutes
Ruby's exception handling used to be exceptionally slow compared to Python
thanks Rails for 400ms compute per request
π
!d os.fork
os.fork()```
Fork a child process. Return `0` in the child and the childβs process id in the parent. If an error occurs [`OSError`](https://docs.python.org/3/library/exceptions.html#OSError) is raised.
Note that some platforms including FreeBSD <= 6.3 and Cygwin have known issues when using `fork()` from a thread.
Raises an [auditing event](https://docs.python.org/3/library/sys.html#auditing) `os.fork` with no arguments...
eh
@haughty pier not really, multiprocessing spawns processes a bit more independently
not really fork
!d concurrent.futures.ProcessPoolExecutor
class concurrent.futures.ProcessPoolExecutor(max_workers=None, mp_context=None, initializer=None, initargs=(), max_tasks_per_child=None)```
An [`Executor`](https://docs.python.org/3/library/concurrent.futures.html#concurrent.futures.Executor) subclass that executes calls asynchronously using a pool of at most *max\_workers* processes. If *max\_workers* is `None` or not given, it will default to [`os.process_cpu_count()`](https://docs.python.org/3/library/os.html#os.process_cpu_count). If *max\_workers* is less than or equal to `0`, then a [`ValueError`](https://docs.python.org/3/library/exceptions.html#ValueError) will be raised. On Windows, *max\_workers* must be less than or equal to `61`. If it is not then [`ValueError`](https://docs.python.org/3/library/exceptions.html#ValueError) will be raised. If *max\_workers* is `None`, then the default chosen will be at most `61`, even if more processors are available. *mp\_context* can be a [`multiprocessing`](https://docs.python.org/3/library/multiprocessing.html#module-multiprocessing) context or `None`. It will be used to launch the workers. If *mp\_context* is `None` or not given, the default [`multiprocessing`](https://docs.python.org/3/library/multiprocessing.html#module-multiprocessing) context is used. See [Contexts and start methods](https://docs.python.org/3/library/multiprocessing.html#multiprocessing-start-methods).
this
asynciothreading+queuemultiprocessing
you almost certainly need asyncio
whatever else you're doing, asyncio is the easiest orchestration mechanism
it interoperates with the other two
@hallow flame queues usually
the best mechanism
asyncio is for IO-bound tasks and orchestrating concurrency in general
!d asyncio.loop.run_in_executor
awaitable loop.run_in_executor(executor, func, *args)```
Arrange for *func* to be called in the specified executor.
The *executor* argument should be an [`concurrent.futures.Executor`](https://docs.python.org/3/library/concurrent.futures.html#concurrent.futures.Executor) instance. The default executor is used if *executor* is `None`. The default executor can be set by [`loop.set_default_executor()`](https://docs.python.org/3/library/asyncio-eventloop.html#asyncio.loop.set_default_executor), otherwise, a [`concurrent.futures.ThreadPoolExecutor`](https://docs.python.org/3/library/concurrent.futures.html#concurrent.futures.ThreadPoolExecutor) will be lazy-initialized and used by [`run_in_executor()`](https://docs.python.org/3/library/asyncio-eventloop.html#asyncio.loop.run_in_executor) if needed.
Example:
^ this is how you combine asyncio with concurrent.futures
yeah, for IO like moving, definitely asyncio
also consider using a proper controller+workers thing where you can just spin up more processes when needed that can take work via ZeroMQ or whatever else
@hallow flame have you measured whether you're hitting 100% core usage?
this is the first thing you must do
do not do anything before you measure
optimisation without measurement is pure guesswork
stream data if possible
@hallow flame that's reading the whole, not opening
you don't need to read the whole file to operate on it
!d mmap
Availability: not WASI.
This module does not work or is not available on WebAssembly. See WebAssembly platforms for more information.
Memory-mapped file objects behave like both bytearray and like file objects. You can use mmap objects in most places where bytearray are expected; for example, you can use the re module to search through a memory-mapped file. You can also change a single byte by doing obj[index] = 97, or change a subsequence by assigning to a slice: obj[i1:i2] = b'...'. You can also read and write data starting at the current file position, and seek() through the file to different positions.
if you want to go the funny route
this looks as if you've read the whole file into a bytearray object
but
it doesn't take up ram
@hallow flame how are you taking lines?
for line in file?
iterating not indexing in that case
you must not use file.lines() or whatever it's called
are you processing the file in any way?
okay, first thing: stop reading the whole file into memory
do this
open it
don't .read it
no
it doesn't
!e
with open(__file__) as file:
for i, line in enumerate(file):
print(i, line)
:white_check_mark: Your 3.13 eval job has completed with return code 0.
001 | 0 with open(__file__) as file:
002 |
003 | 1 for i, line in enumerate(file):
004 |
005 | 2 print(i, line)
what you described before sounded like you're doing list(file)
aaaa
something broke
!e
from itertools import batched
from subprocess import check_output
with open(__file__) as file:
for i, lines in enumerate(batched(file, n=2)):
with open(f"out_{i}.txt", "w") as out:
for line in lines:
out.write(line)
:white_check_mark: Your 3.13 eval job has completed with return code 0.
out_0.txt
from itertools import batched
from subprocess import check_output
out_1.txt
with open(__file__) as file:
out_2.txt
for i, lines in enumerate(batched(file, n=2)):
with open(f"out_{i}.txt", "w") as out:
out_3.txt
for line in lines:
out.write(line)
oh look
@hallow flame something like this? (in this example it splits into chunks of two lines)
wdym less sophisticated
that's the dumbest way possible
ignore the subprocess part
I forgot to remove it
* she not he
^this is just split in Unix
it also has by-size splitting
(the command)
and, if you need that to run in a cluster, just use Manta
Okey
π¦
"just"
also consider using AWK
if split isn't flexible enough
47ms
@hallow flame remember how a few minutes ago you talked about vim taking somewhat longer than that to start
@haughty pier i use arch btw π
haha
do you fear technology's yes answer should be windows
-# act like i never said anything
H8
it's very difficult to outdo that option
Hi
I'm currently using Windows unfortunately
and Ubuntu
and Ubuntu (another)
and openSUSE
and microOS
and Alpine
I think that's all?
not counting phones
only Windows and openSUSE are non-server ones there
mine are macos, macos, macos, macos, windows, Debian, arch
nice gift cart bro π
it was $50
oh
even better π€
animmo hop in vc rn
or else
-# jokingggg
bahaha
how do 2 people in the span of 9 minutes get hacked π
and send in the same channel?
hello, good morning
i need help with sumthing python related and i wondered if i could ask here)?
sorry for the late reply, do you still need help?
yes
actually
however i cannot screen share on the call because i am a new user on the server
so uuh
yeah @scarlet halo
yea
you can share screenshots and recordings here though
but i dont think that'll be necessary
so, whats up?
Click here to see this code in our pastebin.
the problem is that when i try to select the third option
in quintil selection
it still sums up the quintil bonus var
instead of not summing it up
line 38 should have some code under it. shouldn't it?
actually idk, i was trying to do it without the elif line but uuuh
the issue was pretty much the same
interesting that you're using sets instead of lists in the while loops.
doesnt mean anything but just a little interesting...
anyways
oh.
i found the issue!
you see here:
# quintil_bonus
if quintil_choice == "1" or "2":
print("applying bonus")
total_payment += quintil_bonus
python (and most other languages, i think) treat or as a completely new statement. so its saying (quintil_choice == "1") OR ("2") and "2" gets converted into a boolean (to check if the if block should be executed) and any string that isnt "" becomes true
so basically this just means your if statement is always true
so i have to change the or for an and?
what you want to do instead is ```py
if quintil_choice in {"1","2"}:
oh
that was a very subtle detail. im surprised i caught up on that lmao
ok so let me get it straight once again so i dont forget
what "OR" did was to make the number 2 a boolean
not really.
if statements can be true, or false
or means if this or this is true then execute, if one is false, then no biggie
and means if this and that is true then execute, if one is false, then dont execute
in your code you could do
if quintil_choice == "1" or quintil_choice == "2":
but that makes you repeat yourself
which isnt the best
oh yeah, if statements need booleans so thats why the "2" was true
do you understand?
yeah pretty much
if quintil _choice in {1,2}:
{} is a set when using {1,2,3} but a dictionary when using {"one":1,"two":2}
yup
actually that helps a lot
because if i wanna write with normal words i can use a diccionary
could i see an example?
yeah you want a screenshare? or...?
because i am pretty much not sure of how my implementation will result
wdym, whats wrong?
maybe on text?
i was thinking of changing {'1','2'} to a diccionary
however, what about the selection part?
you dont need that here
okie
welcome back
the code works fine, still different than my original plan
originally i wanted it to be more word based
like more direct
instead of 2 and 1's, the actual words
however this was truncated by my own implementation
and i have the test in like 2 days so
ohhh
yeah i got you
uhh
you want me to just feed you code or walk you through it?
i wasnt going to give you a choice lmao, i'd walk you through it anyways lmao
lmao
β¨ illusion of free choice β¨
ah yes, you used an if statement not properly written on me
btw
rulez
yes
same
i actually use Nvim for the whole plugins and stuff
yeah same
gentoo linux user here, guilty of charge
my neovim starts in like 50ms
yeah
okay anyways lets get back to problem solving
code please, gonna need to see what im teaching
i can almost guarantee you ive seen and written worse
#Ejercicio 1
#Recordatorio: Los Quintiles son grupos,solo hay 3
print( str(1), '\n' , str(2) , '\n' , str(3), )
print('Seleccione Su Quintil')
#la gente entre el quintil 1 o 2 recibe un bono de 60 mil pesos
#la gente mayor a cierta edad: en este caso a 65, recibe un bono de 40 mil pesos extra
seleccion=int(input())
if seleccion == 1 or 2:
print(' ahora seleccione su condicion de empleo', '\n', '[Empleado?]', '\n', 'o' , '\n' , '[Desempleado?]')
empleo=str(input())
if empleo == 'Empleado' or 'empleado' or 'EMPLEADO':
print("ahora ingrese su edad:")
edad=(input())
if edad > '65' :
subsidio_final = (280000 + 40000 + 60000)
print('Su subsidio de arriendo es', subsidio_final)
if edad < '65' :
subsidio_final = (280000 + 60000)
print('Su subsidio de arriendo es', subsidio_final)
if empleo == 'Desempleado' or 'DESEMPLEADO' or 'desempleado':
print("ahora ingrese su edad:")
edad=(input())
if edad > '65' :
subsidio_final = (350000 + 40000 + 60000)
print('Su subsidio de arriendo es', subsidio_final)
elif edad < '65' :
subsidio_final = (350000 + 60000)
print('Su subsidio de arriendo es', subsidio_final)
#me tomΓ³ un coco y medio pero logrΓ© hacer que esta cosa funcione luego de como una hora, siento la deshonra en mis pelos de los brazos -Jose
Silva
this is the original code, the one before it was interviened by part of the python comunnity
would be nice if i could read whatever language this is
spanish
give me the new code π i cant do this
Click here to see this code in our pastebin.
jeez how many people get hacked per hour
in this server
and more importantly how do you fall for it
anyways
never got hacked lol
steam is good, but they would never gift ya something
unless it is on an official platform
i got hacked once a really long time ago
wait what is quintil?
dude that statement started playing once upon a time by toby fox in my head
you know whats crazy
im listening to toby fox rn
not once upon a time
but its the UT sountrack
π
π
okay Megalo
yes
what theme is it ?
oh, just a selection menu about quintils
that's all
!paste
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 Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.

so what i did is, add some constant strings (values that will never change, usually marked with CAPS) which hold the input prompts. also two dictionaries containing "strings":numbers. then check if the input is in the corresponding dictionary, if it is then okay. if not then ask again (like it was doing before)

