#voice-chat-text-0
1 messages · Page 538 of 1
!e
class Base:
@classmethod
def aaaaaaaaa(cls):
print("aaaaaaaaaaaaaa")
cls.scream()
@classmethod
def scream(cls):
print("AAAAAAA")
class Derived(Base):
@classmethod
def aaaaaaaaa(cls):
super().aaaaaaaaa()
print("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
@classmethod
def scream(cls):
print("AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA")
Derived.aaaaaaaaa()
:white_check_mark: Your 3.14 eval job has completed with return code 0.
001 | aaaaaaaaaaaaaa
002 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
003 | aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
this probably illustrates enough of how it works
So, for context, I want this to be computed once per class. It's also unique for each class.
Like a cached/define once class attribute basically.
so it is computed?
No it's a constant dictionary.
I mean like constructing the dictionary each time as computation.
you didn't call it?
!e
class Base:
var = 2
class Child(Base):
def print_var(self):
print(self.var)
child = Child()
child.print_var()
:white_check_mark: Your 3.14 eval job has completed with return code 0.
2
class Stuffening(ABC):
@abstractmethod
@classmethod
def _stuff(cls) -> Stuff: ...
@classmethod
def stuff(cls) -> Stuff:
try:
return cls.__stuff
except AttributeError:
cls.__stuff = cls._stuff()
return cls.__stuff
class Stuffening(ABC):
@abstractmethod
@classmethod
def _stuff(cls) -> Stuff: ...
@classmethod
def stuff(cls) -> Stuff:
stuff = cls._stuff()
cls.stuff = staticmethod(lambda: stuff)
return stuff
hmm
!e
class Test:
...
Test.test = staticmethod(lambda: print(1))
Test.test()
Test().test()
:white_check_mark: Your 3.14 eval job has completed with return code 0.
001 | 1
002 | 1
it can start off as a classmethod and then get rewritten to staticmethod
slightly cursed but possibly works
staticmethod is there because we're no longer interested in cls value
(but the outer method still needs to remain classmethod so we even know what to rewrite)
!d functools.lru_cache
@functools.lru_cache(user_function)``````py
@functools.lru_cache(maxsize=128, typed=False)```
Decorator to wrap a function with a memoizing callable that saves up to the *maxsize* most recent calls. It can save time when an expensive or I/O bound function is periodically called with the same arguments.
The cache is threadsafe so that the wrapped function can be used in multiple threads. This means that the underlying data structure will remain coherent during concurrent updates.
It is possible for the wrapped function to be called more than once if another thread makes an additional call before the initial call has been completed and cached...
(can't see the stream, playing something)
!e ```py
def _make_callable(value):
def f(self):
return value
return f
class MyClass:
var = _make_callable(123)
instance = MyClass()
print(instance.var())```
:white_check_mark: Your 3.14 eval job has completed with return code 0.
123
@molten pewter Hungary is leaving ICC agreement seems like
they are going to openly disobey the arrest warrant for an international criminal soon
unless Orban goes full troll move and arrests Putin
not since Russian air defence shot him down
@fluid crest @wet spoke 👋
huh?
I like to wave to people who can't talk yet in case they haven't seen the accompanying text channel to the voice chat.
ok
Good day everyone,
I think I'm enjoying this coding session but I seem not to see any display streaming again
Maybe something via...__get__?
yea i didn't see too
no one streaming
So you can meta on how custom fields are accessed.
Or whatever the getattr stuff is.
Ohh
@somber heath can you kindly share your screen so we can collaborate and learn 🤲
Unable.
given it's Roblox, likely Luau not Lua
hmm
hi
Where are you from?
HK
🇭🇰
hongkong
@upper basin eventually you'll have to let go of inheritance as the main driver for code organisation, it tends to get seriously problematic at some point
@tacit crane btw, you can put a decorator that turns coroutines into tasks, and then lru_cache should work
@tacit crane it's just a function, so yes
== by default works as is
yay
but
not yet max rank
time to game again
@somber heath
i mostly don't use but ok
how i can talk with push to talk?
!e ```py
class MyClass:
def getattribute(self, key):
print(f"Getting {key}.")
return super().getattribute(key)
greeting = "Hello, world."
instance = MyClass()
print(instance.greeting)```
:white_check_mark: Your 3.14 eval job has completed with return code 0.
001 | Getting greeting.
002 | Hello, world.
You can set a key to be your talk button.
Bindings.
get me a second
I've mine set to right alt.
Something something component of a solution.
@upper basin
@somber heath how about now?
Observe for yourself.
The green ring.
attack keyboard🤓
still only S
ordered by what?
@upper basin But you said you wanted people to be able to just write the constants as simply as a = b and to have it callable, yeah?
Morning
2024
@primal shadow
lies
FBI taking work away from CIA? how dare they
couple of years
optimistically long time
@molten pewter These days, that might depend on the doctor in question.
yet
Higher on the list mightn't mean it's significantly more corrupt.
A ranking doesn't show interval.
(on that list, higher means less corrupt)
Well, which whatever.
Rank 1 could be 9001, rank 2 might be 9000, rank 3 might be 6.
by their perceived levels of public sector corruption
so you just have to convince everyone you're not corrupt
median score is 40, in who knows what units
Antarctica just doesn't exist on that map
those damn penguins are hiding their corruption levels
those imperialists
from abc import ABC, abstractmethod
from typing import Callable
class Circuit(ABC):
gate_mapping: dict[str, Callable] | None = None
def __init__(self) -> None:
self._define_gate_mapping()
@classmethod
def _define_gate_mapping(cls) -> None:
if cls.gate_mapping is None:
cls.gate_mapping = {}
class CirqCircuit(Circuit):
def __init__(self) -> None:
super().__init__()
@classmethod
def _define_gate_mapping(cls) -> None:
if cls.gate_mapping is None:
cls.gate_mapping = {"h": lambda qubit: f"H({qubit})"}
I don't remember the argument list for it
just so you don't repeat it on each instance's instantiation
(slightly tautological)
def __init__(self) -> None:
self._define_gate_mapping()
this is called more often than it could've been
then do it when the class initialises
Ooh? Seems like my voice permissions have been lost?
you're still verified
Doesn't react when I click it in discord
Transfer files between parent and storage nodes without opening ports or using a reverse proxy.
Parent Will have Opened Ports and stuff like that
I need to send file upto a GB and also have to send from storage node to parent node too
Any help Someone?
the verification button shouldn't do anything, since you're already verified
Currently connecting storage node to parent with websocket to do some stuff
@vocal basin any help? if you know
how many files are sent in parallel, how often does the file get sent?
will increse gradually like from 1-10 in a min to maybe 1k-10k
you will need to chunk it somehow and/or keep track of the progress unless your connection is reliable enough to do GB in one go
really shouldn't be doing more than one file at a time over a single connection
How is everyone doing today?
thanks i will check it out
you'll probably run into bandwidth issues before running into CPU issues
... unless you want to prioritise smaller files
Mhm.
I'd generally split those files in two separate queues, small files where you want low latency and large files where it's fine to wait several seconds
In my current project i have a parent node
where i have some file
i am compressing and encrypting it and saving in parent temporary
and sending the file in minimum 5 child node & i will have 100 child node to start with
i will sometime check the file and download from the child to parent
this is the main plan
so re-publishing a file?
Performance flagged for non-Discord reasons. The excuse to crack down on it was seized.
then definitely look into this one
it specifically focuses on doing publish-subscribe with files
what if i send file via websocket?
i think for big file it might have problem
"or maybe he isn't and this is all a cover story
"
with big message chunks it should be fine
what should be the max chunk i should use
no less than several tens of kilobytes
ok man thanks. i will try different aproach
@upper basin or just get ice cream delivered to you
creates a 0 as in turns 1 into 10
(binary)
only one that we know of
I don't remember if we had snow this summer
What's this discussion about
@willow light said that Maine reminds his mother of Norway
you can find some of them there
@warm jackal -> @rapid crown
or directly ask Chris (Mindful)/Hemlock
Gonna go take a quick break.
@wet spoke
what's up
hmmm i'm making mischief
making mischief, what are you doing?
encode a mischief string
I don't know what a mischief string is
some swear discourse
so, curse words and shit
!e
code
!e
import sys
print(sys.version)
:white_check_mark: Your 3.14 eval job has completed with return code 0.
3.14.0 (main, Oct 14 2025, 03:22:25) [GCC 12.2.0]
!e
import base64
lists=[86, 109, 120, 83, 81, 50, 69, 121, 84, 110, 78, 105, 77, 50, 104, 87, 89, 107, 100, 111, 85, 86, 90, 113, 84, 108, 78, 106, 82, 108, 74, 86, 85, 87, 53, 107, 97, 50, 82, 54, 77, 68, 107, 61]
lists2=''.join(map(chr,lists))
for mvp in range(5):
lists2=base64.b64decode(lists2)
print(lists2.decode('utf-8'))
:white_check_mark: Your 3.14 eval job has completed with return code 0.
Hi Modori
"now do the same in javascript without using any letters"
@tacit crane are the files persisted on the central server?
or just temporarily held for the duration of the transfer between clients
!e
def HelloWorld(text): print(text)
HelloWorld("print")
:white_check_mark: Your 3.14 eval job has completed with return code 0.
print
Hlo
hi
Hru
is fine
hongkong
yes
i so want it
yes
Good
my teacher like teach me so much easy thing and surplus thing so i want blow up the school
lol
Oh so you want to raise the bar
no
Genius Man
Raise it step by step
👀
Math is the reason I love coding
cool
Best of luck with your journey
!e
print('run code')
:white_check_mark: Your 3.14 eval job has completed with return code 0.
run code
done with Websocket
Chunk Size: 512Kb
Scheama:
data = {
"type": "file_chunk",
"identifier": self.identifier,
"chunk_index": self.current_chunk_index,
"total_chunks": self.total_chunks,
"finished": False,
"data": chunk.hex(), # send as hex string
"file_name": self.file_name
}```
Recving as .part file like : ( {identifier}_{file_name}.part{chunk_index} )
After Finish Just Rebuilding from part.
Net Speed: 980 Mbps
Took 18.9s
Test File Size 1GB
you're sending hex over the wire?
hm
just bytes?
do proper binary format
send one message with metadata, then another message with data
async def send_file(self, websocket: WebSocket):
try:
self.start_time = time.time()
async with aiofiles.open(self.file_path, 'rb') as f:
while True:
try:
chunk = await f.read(self.chunk_size)
if not chunk:
break
data = {
"type": "file_chunk",
"identifier": self.identifier,
"chunk_index": self.current_chunk_index,
"total_chunks": self.total_chunks,
"finished": False,
"data": chunk.hex(), # send as hex string
"file_name": self.file_name
}
await websocket.send_json(data)
self.sent_bytes += len(chunk)
self.current_chunk_index += 1
except WebSocketDisconnect:
logger.warning(f"WebSocket disconnected while sending file to node {self.node_id}")
return
except Exception as e:
logger.error(f"Error sending chunk {self.current_chunk_index} to node {self.node_id}: {e}")
return
finally:
await asyncio.sleep(0.001) # slight delay to avoid overwhelming the connection
# send finished message
await websocket.send_json({
"type": "file_chunk",
"identifier": self.identifier,
"chunk_index": self.current_chunk_index,
"finished": True,
"file_name": self.file_name
})
duration = time.time() - self.start_time
logger.info(f"Sent file {self.file_name} to node {self.node_id} successfully in {duration:.2f} seconds.")
except Exception as e:
logger.error(f"Error sending file to node {self.node_id}: {e}")```
so in first one send all?
metadata
right
await websocket.send_json({
"type": "file_chunk",
"identifier": self.identifier,
"chunk_index": self.current_chunk_index,
"total_chunks": self.total_chunks,
"finished": False,
"file_name": self.file_name
})
await websocket.send(chunk)
something like this
finished would there indicate whether or not to expect a bytes message
I'm only talking about splitting this part
await websocket.send_json(data)
are multiple send_files ran concurrently over the same websocket instance?
yes
if yes, this needs to be under an asyncio.Mutex
internally WebSocket is mutex-ed too
I recommend using asyncio.Queue of files with a single task processing everything related to a single websocket instead
i can make the parent to do that
sync file 1 by one for each node
i will have 50+ storage node and 1 file will be stored in 4 nodes
because of the way WebSocket and other message framing protocols work, they really prefer if there's at most one owner of that resource writing to it
oo
somewhat same for reading, but not entirely
!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.
(depends on whether multi-part sends are involved like in a structure I suggested)
async def _handle_messages(self):
try:
async for msg in self.ws:
if msg.type == aiohttp.WSMsgType.TEXT:
try:
data = json.loads(msg.data)
logger.info(f"Received message: {str(data)[:120]}")
try:
asyncio.create_task(node_file_receive_manager.handle_file_chunk(data))
except Exception:
logger.error(f"Error handling file chunk: {traceback.format_exc()}")
except Exception:
logger.error(f"Error parsing message: {traceback.format_exc()}")
elif msg.type == aiohttp.WSMsgType.ERROR:
logger.error(f"WebSocket error: {self.ws.exception()}")
break
except Exception:
logger.error(f"Error in message loop: {traceback.format_exc()}")```
@vocal basin
Anyway Thanks for helping
if you have time for it, read through chapters 1~7 (without the last one) of this book:
https://zguide.zeromq.org/
it really needs to be read through, without skipping/shortening
OK
there are many historical parts for why certain things are the way they are
and also code samples all the way through
((chapter 8 is based on certain mispredictions, and has a very wide scope))
@tough marsh 👋
sup what u guys doin?
I just remember the name of it
so far, out of demos I played, these games I'll definitely buy later:
- Lumines Arise (from creators of Tetris Effect)
- Cyan Heart (some random horror game)
- Stackflow (funny Tetris)
- Million Depth (the least safe to stream of all these)
currently working on this
https://docs.rs/ruchei-itertools
once it is somewhat useful and correct, this might get renamed to async-itertools
I got used to that after several years so that's no longer really disorienting for me
@chilly wolf easy fix in my case: just don't have plans at all
i play 0 ~ 0 games
Alchemy Factory
A medieval sandbox blending alchemy, automation & shopkeeping!
As a magic apprentice, build your empire of automated production lines crafting potions, metals, and jewels. Rise from a humble shop owner to an industry-dominating alchemy magnate!…
November 2025
out of 0 downloaded
@primal shadow magical satisfactory
or something of that sort
wait...
0/0 games played O_O
That one looks interesting
RTS, a lot of stuff going on
and this is just hard drugs
https://store.steampowered.com/app/3847360/Lumines_Arise_Demo/
This is a free Demo of the puzzle game Lumines Arise. The Demo offers a sample of the single-player and multiplayer gameplay from the full game.
FEATURES…
I played that
I still have it installed
last time played: 2022-02-19
Cairn I'll probably buy too
This is the demo version of our survival-climber Cairn. You play as Aava attempting your first ascent before heading to mount Kami. After a warm-up in the climbing gym, you climb to the summit of Mount Tenzen. You have full freedom to explore the small mountain ridge, forage, bivouac, and improve your technique in a low-pressure environment.…
@wind raptor
❌ game
✅ automation platform
"need to wait some hours until you can switch to 60fps, since it's still Friday in Canada"
if it was a day ago
but
today is not Friday
next demo I'll play
https://store.steampowered.com/app/4039010/OPUS_Prism_Peak_Demo/
previous three games in the series were quite great
@wind raptor very epileptic coverage visualisation
@wind raptor is there a reduced flicker mode I wonder?
I doubt so
@wind raptor the lines lighting up
@wind raptor I'm not currently having serious problems with photosensitivity, but in case someone watching the streams asks to turn it off, there is this
@craggy vale Make sure you really know what you're doing there. If you do it at all, you've got to be really careful you're using exactly the right stuff.
yeah
Because one little snag, one little whoopsy, and if they haven't designed it to be resistant to screwups, you're up shit creek without a paddle.
GDDR is largely irrelevant for retail consumers, just like all the marketing nanometres, since we aren't exposed to having to deal with that as an interface
whatever issues I used to have more often didn't end up developing into full photosensitive epilepsy
even though I started having those at an older-than-expected age, which is already a concern
@wind raptor does it simulate soil depletion?
"What do you use these resources for?"
"Unlocking things."
Finally, my dream of opening locked doors by using a potato shall be realised.
lockpickling
sup
I'd expect the game also allows reducing flying resources?
hmm, I don't see so in settings
some other game I played had such setting
@slow urchin 👋
you know what has no end?
MINESWEEPER
MINESWEEP MINESWEEP MINESWEEP
i love minesweeper
I'll switch what map I play once I reach 5000 hours
hey
as in I'll just play 2201 mines not 2200
for example
it kinda looks like terraria or something
just cover the entire damn thing
(this is synced to what I'm currently playing)
ohnoe
explosion
from misclick
anyway
another try
brb too
I don't remember, did we play PvP at some point?
nope
will take a couple more years to finally get to 1500 Elo
another attempt
https://minesweeper.online/game/5168085200
how many mines does it have initially?
or is it actually some sort of boundless mode thing
99 mines
so expert but on a bigger field?
instead of 30x16
!e
print(24 * 20)
print(30 * 16)
:white_check_mark: Your 3.14 eval job has completed with return code 0.
001 | 480
002 | 480
... or differently arranged
(idk if the last row there is actually last, or if there are more underneath)
!e
print(99 / (30 * 16))
print(2200 / (100 * 100))
:white_check_mark: Your 3.14 eval job has completed with return code 0.
001 | 0.20625
002 | 0.22
How can I join the voice call and unmute
!voice
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
!voice
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
if you have embeds disabled, that message tells to go to #voice-verification
gambling didn't pay off
self.agent = self.loader.loadModel("Untitled.obj")
^^^^^^^^^^^
AttributeError: 'Myapp' object has no attribute 'loader'
#==={imports}===#
from panda3d.core import *
from direct.showbase.ShowBase import ShowBase
class Myapp(ShowBase):
def __init__(self):
self.agent = self.loader.loadModel("Untitled.obj")
self.agent.reparentTo(self.render)
app = Myapp()
app.run()
from direct.showbase.ShowBase import ShowBase
class MyApp(ShowBase):
def __init__(self):
ShowBase.__init__(self)
app = MyApp()
app.run()
super().__init__()```
panda??? is it 2d graphics lib?
is this level 1000???
100x100/2200
💀
22% density, relatively high but still within normal
@storm smelt @wet spoke 👋
what's up
@vivid widget 👋
hi
thank you
!e
class hiA:
def init(self,something):
self.something=something
def printer(self):
print(self.something)
class hiB(hiA):
def init(self,something='Preset'):
super().init(something)
def see(self):
super().printer()
hiB=hiB('hi')
hiB.see()
:white_check_mark: Your 3.14 eval job has completed with return code 0.
hi
!e
raise MemoryError('just nothing')
:x: Your 3.14 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File [35m"/home/main.py"[0m, line [35m1[0m, in [35m<module>[0m
003 | raise MemoryError('just nothing')
004 | [1;35mMemoryError[0m: [35mjust nothing[0m
🤓
!e
f"{1:0<{1:0<10}}"
:x: Your 3.14 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File [35m"/home/main.py"[0m, line [35m1[0m, in [35m<module>[0m
003 | f"[1;31m{1:0<{1:0<10}}[0m"
004 | [1;31m^^^^^^^^^^^^^^[0m
005 | [1;35mMemoryError[0m
?
:x: Your 3.14 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File [35m"/home/main.py"[0m, line [35m1[0m, in [35m<module>[0m
003 | f"{1:0<[1;31m{1:0<{1:0<10}}[0m}"
004 | [1;31m^^^^^^^^^^^^^^[0m
005 | [1;35mMemoryError[0m
!e
raise MemoryError('that was so fun')
:x: Your 3.14 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File [35m"/home/main.py"[0m, line [35m1[0m, in [35m<module>[0m
003 | f"[1;31m{1:0<{1:0<20}}[0m"
004 | [1;31m^^^^^^^^^^^^^^[0m
005 | [1;35mValueError[0m: [35mToo many decimal digits in format string[0m
:x: Your 3.14 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File [35m"/home/main.py"[0m, line [35m1[0m, in [35m<module>[0m
003 | raise MemoryError('that was so fun')
004 | [1;35mMemoryError[0m: [35mthat was so fun[0m
this
hint at what happens
👽 f-string can't use in f-string
!e
class A:
def print_and_call(self):
print('A C')
C().print_and_call()
class B(A):
def print_and_call(self):
print('B A')
super().print_and_call()
class C(B):
def print_and_call(self):
print('C B')
super().print_and_call()
A().print_and_call()
:x: Your 3.14 eval job has completed with return code 1.
001 | A C
002 | C B
003 | B A
004 | A C
005 | C B
006 | B A
007 | A C
008 | C B
009 | B A
010 | A C
... (truncated - too many lines)
Full output: unable to upload
evaluation of format specifiers is indeed nested
!e
print(f"{123:{1 + 2 = }}")
:x: Your 3.14 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File [35m"/home/main.py"[0m, line [35m1[0m, in [35m<module>[0m
003 | print(f"[1;31m{123:{1 + 2 = }}[0m")
004 | [1;31m^^^^^^^^^^^^^^^^[0m
005 | [1;35mValueError[0m: [35mInvalid format specifier '1 + 2 = 3' for object of type 'int'[0m
this
!e
f"{123:{f"{f"a" * 5}" + f"b" = }}"
:x: Your 3.14 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File [35m"/home/main.py"[0m, line [35m1[0m, in [35m<module>[0m
003 | f"[1;31m{123:{f"{f"a" * 5}" + f"b" = }}[0m"
004 | [1;31m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^[0m
005 | [1;35mValueError[0m: [35mInvalid format specifier 'f"{f"a" * 5}" + f"b" = 'aaaaab'' for object of type 'int'[0m
!e
raise ValueError('MVP')
:x: Your 3.14 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File [35m"/home/main.py"[0m, line [35m1[0m, in [35m<module>[0m
003 | raise ValueError('MVP')
004 | [1;35mValueError[0m: [35mMVP[0m
!e
a=91;b=78;aa=f"123:a5+b = {a5+b}";print(aa)
:white_check_mark: Your 3.14 eval job has completed with return code 0.
123:a*5+b = 533
!e
import time
print(time.strftime('%Y/%m/%d %H:%M:%S',time.localtime()))
:white_check_mark: Your 3.14 eval job has completed with return code 0.
2025/10/19 06:34:37
it is UTC time(?
shiny

Yes but they made a game software
Hiiiiii @wind raptor
just reading server chats
wbu
well I have a question for u
do u watch dramas?
kdrama?
cdrama?
yeah
yeah
😔 oh okay
naah, everyone got their taste
!cpban 1242446528719749173
:incoming_envelope: :ok_hand: applied ban to @acoustic mason until <t:1761242924:f> (4 days).
yo
could u guys rate it?
ur thoghts?
about my project it would be helpfull
@peak depot
would u like to rate maybe?
@wind raptor Chris would u like to rate it ?
@wind raptor can I dm you?
haki what u think about it
I don't open github in holidays 🙄
Happy birthday @peak depot
can cats eat cake @peak depot
No cos we ate it all
ohhhhhhhhhhh
Do not post unapproved advertising
sorry so u hated it ?
💀 this is no worse than a horror movie
it is ok
You cannot just post your project on this server without it coming up naturally in a conversation, otherwise, it's considered advertising.
didnt know that ok sorry dude
ty
This should be useful:
.
@wind raptor I started working on async-itertools for Rust finally
!d itertools.zip_longest
itertools.zip_longest(*iterables, fillvalue=None)```
Make an iterator that aggregates elements from each of the *iterables*.
If the iterables are of uneven length, missing values are filled-in with *fillvalue*. If not specified, *fillvalue* defaults to `None`.
Iteration continues until the longest iterable is exhausted...
for now only this, but Rust equivalent
this has just crashed the system
average windows experience
we do know ABF
angle
I'm just trying to brute-force-find all the equal ones
OH WAIT THERE ARE TWO CIRCLES
I literally didn't see the second one
@wind raptor ||79|| I think?
is F the centre of the smaller circle?
correction
here you only use the equal-angle thingy
when two parts of a triangle are radii
blue is trivial to find here
sure, because that's not a guy
(180-114)/3
green+(green+114)+green=180
you overengineered it with all the right angles
oh look new spam
(just got deleted)
!cpban 273571956761034753
:incoming_envelope: :ok_hand: applied ban to @jagged mortar until <t:1761247443:f> (4 days).
90deg-x/3 (x=33deg) seem to be a general solution there
most of those rules are trivial to derive on the fly
from just the definition of a circle and fifth postulate
from what I was hearing, you totally ignored the second circle too, just like I initially did
all this maths, unfortunately, doesn't work without the latter
@wind raptor peer-reviewed answer
inside both circles
why would you ever use Pascal
oh wait Haskell
as existence of pandoc and cabal shows, even the strong typing of Haskell doesn't prevent code getting totally fucked up and dysfunctional
finishing things is important
at least some steps thereof
!stream 427903354723631114
✅ @sly kernel can now stream until <t:1760903126:f>.
Hey @elfin fractal 👋
Hello
you're in Haskell, you can create your own debugging layer for computation
debug monad
<@&831776746206265384> I'm sorry for pining. but i didn't find how i can get Video perm i asked someone told me to ask a mod
video not voice
you have two moderators right there in the voicechat
Video perms are given my mods that are in the chat for a temporary amount of time.
oh i didn't realise that😂
like i need to be some time on the chat or what?
We give it out as it is needed. The permission is temporary.
!stream 1251680506429313076
✅ @calm spire can now stream until <t:1760903967:f>.
time to play more random demos
Found anything good yet?
Nice
@wind raptor i'm trying to lower the sen but lower more then this will let my voice cut randomly
presumably this game has a sleep mechanic and you can't just fall asleep whenever you like
!stream 1251680506429313076
✅ @calm spire can now stream until <t:1760904320:f>.
@heavy zenith calloc?
@wind raptor i just opened wrong file and my bot token showed up for small time ;-;..
@wind raptor WHAT???
n what
dude i'm black
!unstream 1251680506429313076
❌ This member doesn't have video permissions to remove!
@calm spire's stream has been suspended!
@wind raptor so done i changed all folders name. can i sharescreen again ?
;-;..
ok
@heavy zenith no
but
mostly yes
@heavy zenith sometimes it also acts as free and sometimes it also acts as malloc
what the fuck are you guys doing
if you give it a valid non-zero pointer and non-zero size, only then it will do what you described
allocates a new portion of memory, copies, frees the old one
realloc has weird semantics
it's three functions mixed into one
@heavy zenith which C version are you using?
which standard
C23 or earlier
in any case, don't give a size of 0 to realloc
are we building anything or just hangout
@heavy zenith is making something in C
realloc(NULL, new_size) is malloc(new_size)

I'm sure WA can give you both the answer and the proof if you ask correctly
I found some single-player Tarkov type thing
and a bit Stalker-like
3 days ago
but I'm playing a different one
first game on the recommendation list lol
what I'm currently playing
https://store.steampowered.com/app/1963610/Road_to_Vostok/
Hardcore Survival
A hardcore single-player survival game set in a post-apocalyptic border zone between Finland and Russia. Survive, loot, plan and prepare to cross the border into Vostok, a permadeath zone where one mistake can end it all.
Core Features…
Coming soon
regular military or whatever is left of it, not sure
these are broken for some reason
🤫
give it a mullet
platypus
!stream 381154715293188106
✅ @dry jasper can now stream until <t:1760906361:f>.
one of the few
@heavy zenith also echidnas
ah, yes, the two foundational works of literature
@heavy zenith they are dinosaurs, yes, because it's a clade
I don't think these belong in a fridge

@dry jasper that game has a very non-hardcore TTK, so actually not sure how close that is to Tarkov
damage intake is very casual; shotgun doing something like 10~20% from the distance the bots were attacking me
though, tbf, those are the "dumb" bots which probably don't aim well
@onyx dock 👋
!voice
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
I know
@somber heath wyd
I mean what are you doing
?
O my bad 🥲
No it's not working
!stream 1186943801558831168
✅ @craggy vale can now stream until <t:1760964492:f>.
!cpban 733595614050517043
:incoming_envelope: :ok_hand: applied ban to @jaunty raptor until <t:1761310135:f> (4 days).
Over here @coarse apex
yeah
yeah
I'm just tryna look for likely minded people
I'm a sopohmore in college in iowa
lol
wth
we gotta do anti hazing but theres only one fraty
frat
and its more of a philantrophy
yeah
I wanna learn how to code
so I wanna talk to more people
yes
I'm struggling w my classes
and idk how to start
yes im cs and data scii
Ik python
but I cant implement it cause
i havent done any porjkect
yeah
I cant make logic
but i underdtand everything
like the syntaxes and everything
but how do I get started
like
just follow tutotrial im gonna be stuck with tutorial hell.
like automate smth?
I really need a to-do app that makes me accountable of my work and if I dont do my task the alarm will go off
lmao
Learn the basics of programming with the Python programming language. The focus of the course is on programming, and you will learn how to write programs and understand how they work. For example, the basics of algorithms, control structures, subprograms, object-oriented programming are covered. The course is suitable to anyone who wants to lear...
domain mapping
why'd you say you'll never finish the to-do app?
people do use uiua which is based on APL
Oh I see
!stream 1186943801558831168
✅ @craggy vale can now stream until <t:1760965604:f>.
tg
hey chris do I have to be in the voice message for 9 - 10 min blocks?
i have to be here for 10 mins but for 9 times?
😭
Not exactly. You have to send 1 message every 10 minutes 9 times
ohh okay
its so restrcitive/
oh 🙂
it sucksss
😭
hmmm
where are you from?
yeah ik
I wish I could talk
🙂
😭
<body>
<sidebar>
<!-- Placeholder for dynamic sidebar content -->
</sidebar>
<!-- Main Content -->
<main>
<article>
<header>
<h3>Website Legal</h3>
</header>
<section>
<script src="assets/js/md2html.js" data-md2html="assets/legal/coffee_byte_dev_privacy_policy.md"></script>
<hr>
<script src="assets/js/md2html.js" data-md2html="assets/legal/coffee_byte_dev_terms_of_service.md"></script>
</section>
</article>
</main>
</body>
</html>
thoughts?
wait let me try again
AI Gen code?
sorry milien where you from?
Ohh
did you ask me smth?
oh
do you mind me asking where
in Ru
EU*
😭
you guys are funny
lmao
Please react with ✅ to upload your file(s) to our paste bin, which is more accessible for some users.
😭
lets see if I can talk now
still cant
tough.
dont fight guys 😭
this voice is not unlocked yet ahh
okay may I speak now
bro
its still not working 😭
almost there
lets try again
I think I'm still at 8 blocks
Okay i'll text again ina bit
hope it works or smth
lets try now
so idk how to exit the ps to run my code
"don't worry, comrade, it's going to be all the same soon"
longer to type
yeah, main is shorter
and kind of clearer
also
consider using latest or stable
if that's what main stands for in your repo
@coarse apex there is a way to configure default branch name locally
it's not a question
while you're at it, I highly recommend also configuring ff-only pulls
automatic -u is nice
but I don't use it
you can for now filter out what you don't understand
which state is that
(you won't need this until you collaborate with others or have multiple local copies)
https://graphite.dev/guides/git-config-ff-only
ig usa country
USA LLC
iowa
i know that's the US but theres a couple of these things called "states"
Limited Liability Company?
(in reference to `King 810 — raindance")
ooohhhh
what do you guys thing about "king trump" flying a plane and spewing brown goo on protesters? (the AI video)
bad impression on public i think
AI video
or so the Germans would have us believe
@whole bear
It’s straight trolling
That's the new normal it seems, the president shitting on his citizens
from some comment online:
I miss the good old times when governments pissed on our backs and told us it was raining, now they just piss on our faces and tell us it's piss
@amber raptor example from today: docker hub is down
container world is ending
wait people use docker hub?
that's the default
docker run stuff pulls from docker.io/library/stuff, which is /_/stuff on docker hub
confused it for docker desktop 🤦♂️
this seems to be global
this is not me cropping it like that
it just shows me it this way
❌ not old enough to drive
✅ old enough to own a gun in Vermont
is chief vibe officer a thing yet
cvo
code vomit organiser
@peak depot it's like the enormous parking lots but for bodies
EVERYTHING IS BIGGER IN TEXAS
@dry jasper insurance(-ish)?
(the "subscription")
I think it got broken entirely
aaaaaaaaa
nothing works
now functioning
> small
> 7.1GB
70 minutes left until demos expire
some demos
I opened it for, like, 3 minutes, something felt off, and I just switched to playing other demos
guys
reminded me of Hydroneer a bit
asks for password?
@coarse apex did you add+commit?
you need to stage (git add), then you need to commit (git commit)
run git status
@coarse apex
whenever stuff is in an unknown state
two main commands you should know:
git status
git reflog
one tells you what happens now, the other tells you what happened historically
git commit threw you into Vim?
default editor that Git Bash ships with
@coarse apex
git switch master
git reset --hard main
git push
these three are generally non-destructive, safe to run
lmao
__ref__erence log
re-flog
in what base
C++ for HFT
https://cppcon.org
CppCon 2024 Early Access: https://cppcon.org/early-access
Access All 2024 Session Videos Ahead of Their Official Release To YouTube. At least 30 days exclusive access through the Early Access system. Videos will be released to the CppCon channel on a schedule of one video per business day, with initial releases starting in ...
@amber raptor the
cryptocurrency is mostly chain-specific stuff and Rust from what I remember
"NFT as opposed to HFT: no frequency instead of high, just because of how slow it is"
I don't want to interact with any cryptocurrency other than Monero
Donald's goes on an adventure in which it is explained how mathematics can be useful in real life. Through this journey it is shown how numbers are more than graphs and charts, they are geometry, music and magical living things.
@frosty garnet no
neural net doesn't apply to mining crypto
linear algebra does
no it's not similar
it's not similar maths
one is floating point, the other is integer
different parts thereof
you don't really need CUDA for mining, a lot of it has been done with plain OpenCL
people no longer use GPUs as much for mining cryptocurrencies, for various reasons
multiprocessing has always been there
you mean threading
@frosty garnet you mean threading.
for fucks sake
I'm not asking you for what it is, I'm telling you
you had to use the multi thread library right?
@frosty garnet
GILed?
but you can build the compiler differently
you mean threading FOR FUCKS SAKE
multithreading not multiprocessing
@amber raptor why AWS down my entire school is fucked like our id cards rely on that shit
@frosty garnet STOP USING THE PHRASE MULTIPROCESSING
it's still down?
multi threading is diffrent right?
I believe so
I thought the outage only lasted 2 hours
wouldn't that be slower?
@amber raptor
two
point
fucking
six
it's been there for so long
that's always been there
same memory
this is the only mention of multiprocessing
multi process starts a new instance
your 3.14 is likely GILed even nowadays
yeh multi processing would be slower
unless you compile it yourself
GILless build option has been there in 3.13 too
but it was more experimental
also
darn it
even prior to 3.13, you could have multiple separate interpreters even within the same process
some libraries made use of it prior the big GIL removal began in general public interface
I'm happy I chose data science
My guess is SaaS software they bought is in AWs
(mostly limited to components of the standard library)
@paper wolf https://www.youtube.com/watch?v=j6AXBiEdKtI
I think James got some Lenovo deal, he's pushing out tons of thinkpad videos lately
free trial shopify: https://shopify.com/jvscholz/
blog post about this thinkpad that I wasn't able to cover in this video soon
@frosty garnet threads not processes
ew a thinkpad
it used to be that case that each thread would have to acquire GIL to interpret Python
it's still the default
3.14 still uses GIL
@frosty garnet stop using the word multiprocessing, this is threading
it's the wrong term contextually
you don't like??
multiprocessing in Python means spawning separate processes and separate interpreters
not a big fan, they're good if you're low on money
but other than that
don't like the structure
yes, most people low on money
GIL is for using multiple threads on the same interpreter
true true
wdym by structure, it's a sturdy machine, you can drop it on the floor
fr?
yes, especially the older models
damn maybe I was wrong about that
The performance penalty on single-threaded code in free-threaded mode is now roughly 5-10%, depending on the platform and C compiler used.
maybe just stop using WSGI at all
Flask Flask Flask
async is best in single-threaded setting
(asyncio is non-thread-safe)
@frosty garnet not in Python
asyncio in Python is largely about assuming single-threaded-ness
a lot of code relies on the fact that it can do load-modify-store and not have data races
if you're using async right, you can scale up to a relatively high performance even in Python even on a single thread
you're already on a shared cache, the FS cache
@amber raptor Rails switched to SQLite'ing everything now
(ditched Redis and RabbitMQ or whatever other queue they had)
unix socket it?
https://wiki.archlinux.org/title/Valkey#Listen_on_socket
unixsocket /run/valkey/valkey.sock
you can also have distributed SQLite but why
if you do want multi-threaded async, C#/Java/Go/Rust
Real language
Rust in my experience was the easiest to deploy, but the compile times are hell
x25 sounds expected
PyPy
that is going to crash and burn
@amber raptorwould you move to mojo if it has the packages?
PyPy has less support
hiring, yeah, I'd expect to be excessively difficult
I personally know of only a few programmers for whom Rust is picked for productivity not for performance
were you ever running PyPy in prod?
I know someone who has, but they had to control the entire stack, rewriting all the networking
they roll their own async
Python is fast!
A unicorn told me
I find Golang/Java/.Net to be sweet spot between code writing complexity and runtime performance
boring and works
imo they're not terse, they're verbose
Rust and Perl are terse
K is terse
if you haven't seen K, your bar for terse is probably still happily low
things you wouldn't want to debug
to do C++ you really need to limit yourself to some small dialect thereof
with certain fixes patched on top of the standard library
C++ is self-inconsistent
C++26
C++26 is finally getting reflection
so you no longer have to write the same operators every single time
one of proposed use cases for reflection was to fix the rules of automatically generating operators
(equality, copy, move)
a = b in C++ is generally a copy
which is where you eventually realise there is no way other than having to dig into the details of why
doing copy on each assignment is why a lot of C++ is way slower than it should be
@radiant iron 👋
Python's aim for perfectionism is in different areas compared to C++
perfect expressiveness over perfect performance
or rather clarity than expressiveness
this is what happens when expressiveness is the only value
@frosty garnet that's part of why reflection
Rust is not simple at all, but you can do a lot of things quickly thanks to that complexity rather than fighting it like in C++
it's not aiming for beautiful code like Ruby does
but there are certain choices it made inspired by Ruby's care for syntax
for example future.await instead of await future
Too Much Text