#voice-chat-text-0

1 messages · Page 538 of 1

vocal basin
#

bird screamed somewhere else then came back

#

!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()
wise cargoBOT
vocal basin
#

this probably illustrates enough of how it works

upper basin
#

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.

vocal basin
#

so it is computed?

upper basin
#

No it's a constant dictionary.

#

I mean like constructing the dictionary each time as computation.

vocal basin
#

you didn't call it?

upper basin
#

!e

class Base:
    var = 2

class Child(Base):
    def print_var(self):
        print(self.var)

child = Child()
child.print_var()
wise cargoBOT
vocal basin
#
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()
wise cargoBOT
vocal basin
#

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

wise cargoBOT
#

@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...
vocal basin
#

(can't see the stream, playing something)

somber heath
#

!e ```py
def _make_callable(value):
def f(self):
return value
return f

class MyClass:
var = _make_callable(123)

instance = MyClass()
print(instance.var())```

wise cargoBOT
vocal basin
#

@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

somber heath
#

What's the building code like in Hungary?

#

Santa.

vocal basin
#

not since Russian air defence shot him down

somber heath
#

@fluid crest @wet spoke 👋

somber heath
# 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.

somber heath
#

@upper basin You saw my idea?

#

So like that but plus abc?

fluid crest
#

Good day everyone,
I think I'm enjoying this coding session but I seem not to see any display streaming again

somber heath
#

Maybe something via...__get__?

wet spoke
#

no one streaming

somber heath
#

So you can meta on how custom fields are accessed.

#

Or whatever the getattr stuff is.

fluid crest
somber heath
#

I did it once a long time ago.

#

Yes, but not getattr itself.

fluid crest
#

@somber heath can you kindly share your screen so we can collaborate and learn 🤲

vocal basin
#

given it's Roblox, likely Luau not Lua

somber heath
#

Screen sharing my screen isn't how I operate, in any case.

#

@sacred pike 👋

sacred pike
#

hmm

wet spoke
sacred pike
#

Ok

#

Oreya Hatake Kakashi

sacred pike
wet spoke
sacred pike
#

??

#

HK Means?

vocal basin
#

🇭🇰

wet spoke
#

hongkong

sacred pike
#

Ups

#

Ok

#

I am from bangladesh

vocal basin
#

@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

#

but

#

not yet max rank

#

time to game again

calm spire
#

@somber heath

vocal basin
calm spire
calm spire
vocal basin
calm spire
#

how i can talk with push to talk?

somber heath
#

!e ```py
class MyClass:
def getattribute(self, key):
print(f"Getting {key}.")
return super().getattribute(key)
greeting = "Hello, world."

instance = MyClass()
print(instance.greeting)```

wise cargoBOT
somber heath
#

Bindings.

calm spire
somber heath
#

I've mine set to right alt.

somber heath
#

@upper basin

calm spire
#

@somber heath how about now?

somber heath
#

The green ring.

calm spire
#

just nvm

vocal basin
#

still only S

molten pewter
vocal basin
#

ordered by what?

somber heath
#

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

woeful blaze
#

Morning

vocal basin
#

2024
@primal shadow

#

lies
FBI taking work away from CIA? how dare they

#

couple of years
optimistically long time

somber heath
#

@molten pewter These days, that might depend on the doctor in question.

vocal basin
#

yet

somber heath
#

Higher on the list mightn't mean it's significantly more corrupt.

#

A ranking doesn't show interval.

vocal basin
somber heath
#

Well, which whatever.

vocal basin
#

Denmark

#

South Sudan

#

1 and 180

#

score 90 and 8

somber heath
#

Rank 1 could be 9001, rank 2 might be 9000, rank 3 might be 6.

vocal basin
#

by their perceived levels of public sector corruption

#

so you just have to convince everyone you're not corrupt

vocal basin
vocal basin
#

Antarctica just doesn't exist on that map
those damn penguins are hiding their corruption levels

#

those imperialists

upper basin
# somber heath <@664667836605661217> But you said you wanted people to be able to just write th...
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})"}
vocal basin
#

__subclass_init__

#

(iirc that's how it's called)

vocal basin
#

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

warm jackal
#

Ooh? Seems like my voice permissions have been lost?

vocal basin
#

you're still verified

warm jackal
#

Doesn't react when I click it in discord

tacit crane
#

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?

vocal basin
tacit crane
#

Currently connecting storage node to parent with websocket to do some stuff

#

@vocal basin any help? if you know

vocal basin
#

FileMQ

#

for an example of protocol for that

vocal basin
tacit crane
vocal basin
#

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

woeful blaze
#

How is everyone doing today?

vocal basin
#

you'll probably run into bandwidth issues before running into CPU issues

vocal basin
somber heath
#

Mhm.

vocal basin
#

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

tacit crane
#

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

somber heath
#

Performance flagged for non-Discord reasons. The excuse to crack down on it was seized.

vocal basin
#

it specifically focuses on doing publish-subscribe with files

somber heath
#

@warm jackal You needn't have said that you were.

#

Like, confirming.

tacit crane
#

what if i send file via websocket?

i think for big file it might have problem

vocal basin
vocal basin
tacit crane
#

what should be the max chunk i should use

vocal basin
#

no less than several tens of kilobytes

tacit crane
#

ok man thanks. i will try different aproach

vocal basin
#

@upper basin or just get ice cream delivered to you

somber heath
#

Mealn.

#

Paradox.

vocal basin
#

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

agile lance
#

What's this discussion about

vocal basin
#

@peak depot most of the US is more southern than Kyiv

peak depot
#

@willow light said that Maine reminds his mother of Norway

vocal basin
#

@flint hill there are certain automated alerts

#

!source

wise cargoBOT
vocal basin
#

you can find some of them there

#

@warm jackal -> @rapid crown

#

or directly ask Chris (Mindful)/Hemlock

upper basin
#

Gonna go take a quick break.

calm heron
#

@wet spoke

wet spoke
#

what's up

calm heron
#

how's it going?

#

i'm trying to think of a project to work on

wet spoke
#

hmmm i'm making mischief

calm heron
#

making mischief, what are you doing?

wet spoke
#

encode a mischief string

calm heron
#

I don't know what a mischief string is

wet spoke
#

some swear discourse

calm heron
#

so, curse words and shit

wet spoke
#

i will send to my friend😋👍

#

so fun

wet spoke
#

!e

wise cargoBOT
#
Missing required argument

code

wet spoke
#

!e
import sys
print(sys.version)

wise cargoBOT
wet spoke
#

!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'))

wise cargoBOT
wet spoke
#

luckily I didn't post the dirty version, or I'd be screwed.

#

🥹

vocal basin
#

@tacit crane are the files persisted on the central server?

#

or just temporarily held for the duration of the transfer between clients

umbral mauve
#

!e
def HelloWorld(text): print(text)
HelloWorld("print")

wise cargoBOT
wet spoke
#

🤓 oh?

#

del

frigid jay
#

Hlo

wet spoke
#

hi

frigid jay
wet spoke
#

is fine

frigid jay
#

Great

#

Where are you from?

wet spoke
#

hongkong

frigid jay
#

You do python

wet spoke
#

yes

frigid jay
#

Explode school😭

wet spoke
#

i so want it

frigid jay
#

I hate it too

#

Are you a Guy?

wet spoke
#

yes

frigid jay
wet spoke
#

my teacher like teach me so much easy thing and surplus thing so i want blow up the school

#

lol

frigid jay
wet spoke
frigid jay
#

Genius Man

wet spoke
#

raise to high i will can't learn

#

i just like coding

#

not like math

#

LOL

frigid jay
frigid jay
#

I love maths

wet spoke
#

👀

frigid jay
#

Math is the reason I love coding

wet spoke
#

cool

frigid jay
high hare
#

why cant i talk

#

i need a coder

wet spoke
#

!e
print('run code')

wise cargoBOT
tacit crane
# vocal basin "now do the same in javascript without using any letters"

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
vocal basin
tacit crane
#

hm

vocal basin
#

~16s would be minimum there seems like

#

don't hex it when you send it

tacit crane
#

just bytes?

vocal basin
#

do proper binary format

#

send one message with metadata, then another message with data

tacit crane
#
    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

vocal basin
#
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

tacit crane
#

i am sending 3-5 file same time sometimes

#

i need the identifier

vocal basin
#

I'm only talking about splitting this part

await websocket.send_json(data)
vocal basin
tacit crane
#

yes

vocal basin
#

internally WebSocket is mutex-ed too

vocal basin
# tacit crane yes

I recommend using asyncio.Queue of files with a single task processing everything related to a single websocket instead

tacit crane
#

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

vocal basin
tacit crane
#

oo

vocal basin
#

somewhat same for reading, but not entirely

tacit crane
#

!paste

wise cargoBOT
#
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 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.

tacit crane
#

Receive code

vocal basin
tacit crane
#
    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

vocal basin
tacit crane
#

scream Too Much Text

#

I might summerize

vocal basin
#

it really needs to be read through, without skipping/shortening

tacit crane
#

OK

vocal basin
#

there are many historical parts for why certain things are the way they are

#

and also code samples all the way through

vocal basin
somber heath
#

@tough marsh 👋

vocal basin
#

yell at clouds

#

replaced

paper wolf
#

sup what u guys doin?

vocal basin
#

I just remember the name of it

somber heath
#

@vapid falcon 👋

#

@viral fulcrum 👋

vocal basin
#

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)
#

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

paper wolf
#

same

#

u got no mic??

vocal basin
#

I played opened 10~20 games

#

out of 50 downloaded

paper wolf
#

i play 0 ~ 0 games

vocal basin
paper wolf
#

out of 0 downloaded

vocal basin
#

or something of that sort

paper wolf
#

wait...
0/0 games played O_O

primal shadow
vocal basin
#

RTS, a lot of stuff going on

#

I played that

#

I still have it installed

#

last time played: 2022-02-19

vocal basin
#

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

▶ Play video
paper wolf
#

demo??

#

new game?

vocal basin
#

@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

#

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

somber heath
#

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

somber heath
#

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.

vocal basin
#

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

vocal basin
#

even though I started having those at an older-than-expected age, which is already a concern

#

@wind raptor does it simulate soil depletion?

somber heath
#

"What do you use these resources for?"
"Unlocking things."

Finally, my dream of opening locked doors by using a potato shall be realised.

sharp summit
#

sup

vocal basin
#

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

somber heath
#

@slow urchin 👋

vocal basin
#

you know what has no end?
MINESWEEPER
MINESWEEP MINESWEEP MINESWEEP

sharp summit
vocal basin
#

I'll switch what map I play once I reach 5000 hours

slow urchin
vocal basin
vocal basin
sharp summit
#

for example

slow urchin
#

it kinda looks like terraria or something

vocal basin
#

idk why I do X/O

#

probably just ease of drawing

sharp summit
vocal basin
#

ohnoe

#

explosion

#

from misclick

#

anyway

#

another try

#

brb too

vocal basin
vocal basin
#

will take a couple more years to finally get to 1500 Elo

#

how many mines does it have initially?

#

or is it actually some sort of boundless mode thing

sharp summit
vocal basin
#

so expert but on a bigger field?

#

instead of 30x16

#

!e

print(24 * 20)
print(30 * 16)
wise cargoBOT
vocal basin
#

... or differently arranged

#

(idk if the last row there is actually last, or if there are more underneath)

sharp summit
#

google minesweeper hard

#

I kill time w it

vocal basin
#

!e

print(99 / (30 * 16))
print(2200 / (100 * 100))
wise cargoBOT
vocal basin
#

idk why but I thought expert had higher density

#

closer to 25%

prime echo
#

How can I join the voice call and unmute

vocal basin
#

!voice

wise cargoBOT
#
Voice verification

Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.

prime echo
#

!voice

wise cargoBOT
#
Voice verification

Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.

vocal basin
#

gambling didn't pay off

vocal basin
woeful blaze
#

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()
somber heath
#
super().__init__()```
paper wolf
#

panda??? is it 2d graphics lib?

woeful blaze
paper wolf
vocal basin
paper wolf
#

💀

vocal basin
#

22% density, relatively high but still within normal

somber heath
#

@storm smelt @wet spoke 👋

somber heath
#

@vivid widget 👋

vivid widget
#

hi

woeful blaze
#

thank you

wet spoke
#

!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()

wise cargoBOT
wet spoke
#

!e
raise MemoryError('just nothing')

wise cargoBOT
# wet spoke !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 "/home/main.py", line 1, in <module>
003 |     raise MemoryError('just nothing')
004 | MemoryError: just nothing
wet spoke
#

🤓

wise cargoBOT
# vocal basin !e ```py 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 "/home/main.py", line 1, in <module>
003 |     f"{1:0<{1:0<10}}"
004 |       ^^^^^^^^^^^^^^
005 | MemoryError
wet spoke
#

?

vocal basin
#

while not the shortest OOM possible, at least it's funny

#

!e

f"{1:0<{1:0<{1:0<10}}}"
wise cargoBOT
# vocal basin !e ```py f"{1:0<{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 "/home/main.py", line 1, in <module>
003 |     f"{1:0<{1:0<{1:0<10}}}"
004 |            ^^^^^^^^^^^^^^
005 | MemoryError
vocal basin
#

hmm

#

I forgot how to cause the other error

#

!e

f"{1:0<{1:0<20}}"
wet spoke
#

!e
raise MemoryError('that was so fun')

wise cargoBOT
# vocal basin !e ```py f"{1:0<{1:0<20}}" ```

:x: Your 3.14 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "/home/main.py", line 1, in <module>
003 |     f"{1:0<{1:0<20}}"
004 |       ^^^^^^^^^^^^^^
005 | ValueError: Too many decimal digits in format string
wise cargoBOT
# wet spoke !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 "/home/main.py", line 1, in <module>
003 |     raise MemoryError('that was so fun')
004 | MemoryError: that was so fun
wet spoke
#

!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()

wise cargoBOT
wet spoke
#

🤓 oh?

#

too long?

vocal basin
#

!e

print(f"{123:{1 + 2 = }}")
wise cargoBOT
# vocal basin !e ```py 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 "/home/main.py", line 1, in <module>
003 |     print(f"{123:{1 + 2 = }}")
004 |             ^^^^^^^^^^^^^^^^
005 | ValueError: Invalid format specifier '1 + 2 = 3' for object of type 'int'
vocal basin
#

this

wet spoke
#

the {}

vocal basin
#

!e

f"{123:{f"{f"a" * 5}" + f"b" = }}"
wise cargoBOT
# vocal basin !e ```py 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 "/home/main.py", line 1, in <module>
003 |     f"{123:{f"{f"a" * 5}" + f"b" = }}"
004 |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
005 | ValueError: Invalid format specifier 'f"{f"a" * 5}" + f"b" = 'aaaaab'' for object of type 'int'
vocal basin
#

oh, it doesn't escape the '

#

hmm

wet spoke
#

!e
raise ValueError('MVP')

wise cargoBOT
# wet spoke !e raise ValueError('MVP')

:x: Your 3.14 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "/home/main.py", line 1, in <module>
003 |     raise ValueError('MVP')
004 | ValueError: MVP
wet spoke
#

!e
a=91;b=78;aa=f"123:a5+b = {a5+b}";print(aa)

wise cargoBOT
wet spoke
#

!e
import time
print(time.strftime('%Y/%m/%d %H:%M:%S',time.localtime()))

wise cargoBOT
wet spoke
#

?

#

why is saw so much image sent here and delete

#

wow

dry jasper
obsidian dragon
simple blaze
woeful blaze
#

Yes but they made a game software

whole bear
#

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

wind raptor
#

!cpban 1242446528719749173

wise cargoBOT
#

:incoming_envelope: :ok_hand: applied ban to @acoustic mason until <t:1761242924:f> (4 days).

whole bear
#

like I watch many

#

wait let me find a good one

versed heath
orchid abyss
#

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 ?

whole bear
#

@wind raptor can I dm you?

orchid abyss
#

haki what u think about it

whole bear
orchid abyss
#

fairs

#

yooo chris

whole bear
#

Happy birthday @peak depot

short owl
#

can cats eat cake @peak depot

peak depot
#

No cos we ate it all

short owl
#

ohhhhhhhhhhh

wind raptor
orchid abyss
#

sorry so u hated it ?

muted silo
#

💀 this is no worse than a horror movie

orchid abyss
#

it is ok

wind raptor
orchid abyss
wind raptor
#

No worries

#

Good luck with your project

orchid abyss
#

ty

wind raptor
muted silo
wind raptor
whole bear
#

what is this circle stuff even about

#

i just joined here

vocal basin
#

@wind raptor I started working on async-itertools for Rust finally

#

!d itertools.zip_longest

wise cargoBOT
#

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...
vocal basin
#

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

wind raptor
whole bear
#

Am I stupid? 😯

#

I'm heading out

vocal basin
#

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

vocal basin
#

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)

wind raptor
#

!cpban 273571956761034753

wise cargoBOT
#

:incoming_envelope: :ok_hand: applied ban to @jagged mortar until <t:1761247443:f> (4 days).

vocal basin
#

90deg-x/3 (x=33deg) seem to be a general solution there

vocal basin
#

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

vocal basin
#

@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

wind raptor
#

!stream 427903354723631114

wise cargoBOT
#

✅ @sly kernel can now stream until <t:1760903126:f>.

wind raptor
#

Hey @elfin fractal 👋

elfin fractal
#

Hello

vocal basin
#

you're in Haskell, you can create your own debugging layer for computation

#

debug monad

whole bear
#

i'm going to sleep

#

bye bye

calm spire
#

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

calm spire
vocal basin
#

you have two moderators right there in the voicechat

wind raptor
calm spire
calm spire
wind raptor
#

We give it out as it is needed. The permission is temporary.

vocal basin
#

ugh still not good enough of a result

#

(playing lumines arise demo)

wind raptor
#

!stream 1251680506429313076

wise cargoBOT
#

✅ @calm spire can now stream until <t:1760903967:f>.

vocal basin
#

time to play more random demos

wind raptor
wind raptor
#

Nice

calm spire
#

@wind raptor i'm trying to lower the sen but lower more then this will let my voice cut randomly

vocal basin
wind raptor
#

!stream 1251680506429313076

wise cargoBOT
#

✅ @calm spire can now stream until <t:1760904320:f>.

vocal basin
#

@heavy zenith calloc?

calm spire
#

@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

wind raptor
#

!unstream 1251680506429313076

wise cargoBOT
#

❌ This member doesn't have video permissions to remove!

#

@calm spire's stream has been suspended!

calm spire
#

@wind raptor so done i changed all folders name. can i sharescreen again ?

#

;-;..

#

ok

vocal basin
#

@heavy zenith no

#

but

#

mostly yes

#

@heavy zenith sometimes it also acts as free and sometimes it also acts as malloc

steel delta
#

what the fuck are you guys doing

vocal basin
#

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

steel delta
#

are we building anything or just hangout

vocal basin
#

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

vocal basin
#

and a bit Stalker-like

#

3 days ago

#

but I'm playing a different one

vocal basin
vocal basin
#

regular military or whatever is left of it, not sure

#

these are broken for some reason

iron geyser
#

🤫

dry jasper
vocal basin
#

give it a mullet

dry jasper
iron geyser
#

🤣 Haha

#

from stable diffusion ?

vocal basin
#

platypus

wind raptor
#

!stream 381154715293188106

wise cargoBOT
#

✅ @dry jasper can now stream until <t:1760906361:f>.

vocal basin
#

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

dry jasper
vocal basin
#

I don't think these belong in a fridge

vocal basin
vocal basin
#

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

somber heath
#

@onyx dock 👋

onyx dock
#

Bro

somber heath
#

!voice

wise cargoBOT
#
Voice verification

Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.

onyx dock
#

@somber heath wyd

#

I mean what are you doing

#

?

#

O my bad 🥲

wind raptor
#

my mic is working

#

I just checked

craggy vale
#

No it's not working

wind raptor
#

!stream 1186943801558831168

wise cargoBOT
#

✅ @craggy vale can now stream until <t:1760964492:f>.

wind raptor
#

!cpban 733595614050517043

wise cargoBOT
#

:incoming_envelope: :ok_hand: applied ban to @jaunty raptor until <t:1761310135:f> (4 days).

wind raptor
#

Over here @coarse apex

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

peak depot
#
coarse apex
#

is coding really hard or

#

is it hard to get staRTED?

#

so making logic?

vocal basin
#

domain mapping

coarse apex
#

why'd you say you'll never finish the to-do app?

vocal basin
#

@wind raptor unless the language is APL

#

Leviathan's nickname is truly scary

vocal basin
coarse apex
#

Oh I see

wind raptor
#

!stream 1186943801558831168

wise cargoBOT
#

✅ @craggy vale can now stream until <t:1760965604:f>.

coarse apex
#

I see

#

I agree

#

ofc yeah

#

its more of a learning curve

#

thigy

#

thingy

spark umbra
#

tg

coarse apex
#

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?

#

😭

wind raptor
#

Not exactly. You have to send 1 message every 10 minutes 9 times

coarse apex
#

ohh okay

#

its so restrcitive/

#

oh 🙂

#

it sucksss

#

😭

#

hmmm

#

where are you from?

#

yeah ik

#

I wish I could talk

#

🙂

#

😭

obsidian dragon
#
<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?

coarse apex
#

wait let me try again

primal shadow
#

AI Gen code?

coarse apex
#

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

winter plinth
#

Cna somone help me dude

#

Can somone help me dude*

wise cargoBOT
coarse apex
#

😭

#

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

craggy vale
#

flashing bios

#

on my apu

vocal basin
primal shadow
vocal basin
#

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

scarlet halo
vocal basin
fossil valve
vocal basin
#

USA LLC

coarse apex
scarlet halo
#

i know that's the US but theres a couple of these things called "states"

scarlet halo
#

slipknot state

fossil valve
vocal basin
#

(in reference to `King 810 — raindance")

fossil valve
#

ooohhhh

scarlet halo
#

what do you guys thing about "king trump" flying a plane and spewing brown goo on protesters? (the AI video)

fossil valve
vocal basin
fossil valve
#

@whole bear

primal shadow
vocal basin
#

@amber raptor example from today: docker hub is down

#

container world is ending

scarlet halo
vocal basin
#

that's the default

scarlet halo
#

oh wait

#

nevermind

vocal basin
scarlet halo
#

confused it for docker desktop 🤦‍♂️

vocal basin
#

this seems to be global

vocal basin
#

it just shows me it this way

primal shadow
coarse apex
vocal basin
#

❌ 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")

coarse apex
vocal basin
#

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

coarse apex
#

guys

vocal basin
#

reminded me of Hydroneer a bit

coarse apex
#

i cant push my

#

new file to my git

#

😭

vocal basin
#

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

vocal basin
vocal basin
#

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

vocal basin
#

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"

primal shadow
vocal basin
#

I don't want to interact with any cryptocurrency other than Monero

primal shadow
vocal basin
#

@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

cursive quiver
#

you had to use the multi thread library right?

vocal basin
#

@frosty garnet no

#

read the damn docs

cursive quiver
#

@frosty garnet

vocal basin
#

threading is what changed

#

threading has been GILed

#

it still is

cursive quiver
#

GILed?

vocal basin
#

but you can build the compiler differently

#

you mean threading FOR FUCKS SAKE

#

multithreading not multiprocessing

dense ibex
#

@amber raptor why AWS down my entire school is fucked like our id cards rely on that shit

vocal basin
#

@frosty garnet STOP USING THE PHRASE MULTIPROCESSING

vocal basin
#

FOR

#

FUCKS

#

SAKE

#

@amber raptor yes

cursive quiver
#

multi threading is diffrent right?

dense ibex
cursive quiver
vocal basin
#

@frosty garnet no. you're wrong.

#

you are wrong.

frosty garnet
cursive quiver
#

wouldn't that be slower?
@amber raptor

cursive quiver
vocal basin
#

@frosty garnet what you linked literally uses threading not multiprocessing

cursive quiver
#

same memory

vocal basin
#

this is the only mention of multiprocessing

cursive quiver
#

multi process starts a new instance

vocal basin
#

your 3.14 is likely GILed even nowadays

cursive quiver
#

yeh multi processing would be slower

vocal basin
#

unless you compile it yourself

#

GILless build option has been there in 3.13 too

#

but it was more experimental

#

also

cursive quiver
#

darn it

vocal basin
#

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

cursive quiver
#

I'm happy I chose data science

amber raptor
vocal basin
#

(mostly limited to components of the standard library)

cursive quiver
#

as a career path

#

I'm hearing good stuff

wise loom
vocal basin
#

@frosty garnet threads not processes

vocal basin
#

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

wise loom
vocal basin
#

multiprocessing in Python means spawning separate processes and separate interpreters

cursive quiver
#

but other than that

#

don't like the structure

vocal basin
#

GIL is unrelated to that

#

entirely

wise loom
vocal basin
#

GIL is for using multiple threads on the same interpreter

cursive quiver
wise loom
wise loom
cursive quiver
#

damn maybe I was wrong about that

frosty garnet
vocal basin
#

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?

#

you can also have distributed SQLite but why

vocal basin
amber raptor
vocal basin
#

(Java/Go might even be simpler out of those, because green threads)

#

Flaskolith

cursive quiver
#

I want mojo

#

to have all the packages python has

#

@frosty garnetDjango the goat

vocal basin
#

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

cursive quiver
#

@amber raptorwould you move to mojo if it has the packages?

frosty garnet
vocal basin
#

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

frosty garnet
vocal basin
#

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

cursive quiver
#

A unicorn told me

vocal basin
#

C packages don't work

#

it is a good piece of software, it just doesn't work

amber raptor
#

I find Golang/Java/.Net to be sweet spot between code writing complexity and runtime performance

vocal basin
#

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

vocal basin
#

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

vocal basin
#

@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