#voice-chat-text-0

1 messages · Page 551 of 1

livid pagoda
#

so i think you are around 30. right?

upper basin
#

Probably mountain climber. They're super strong.

primal shadow
lavish forum
#

I think I fixed my stuff

#

Someone found the bug

#

It's such a simple bug

#

Took me 5 days 😭

#

I love programming man

#

it's awsome

#

that's sooo true lol

#

😭

#

Nix?

wind raptor
wise loom
#

some 64GB microsd cards.
I got lucky 🍀 and wasn't shipped fake ones.

sleek rampart
#

Python install manager
The installer we offer for Windows is being replaced by our new install manager, which can be installed from the Windows Store or from its download page.

primal shadow
#

@wind raptor

#

are you sure?

#

Hit that link

#

read the first 2 lines

#

Python is evolving

#

Change for the sake of change 🙂

#

It installs somewhere

vocal basin
#

easy to remember command

runic prairie
#

Hi @wind raptor

#

Hi everyone

wise loom
#

I'm a Debian monk, surviving years without updates

#

in theory yes, life without updates is so much better

vocal basin
#

in what theory

wise loom
#

I think updates hitting eMMC soldered storage should be taken into account.

#

if an app hits eMMC hard, it should be dropped from the appstore

wise loom
primal shadow
#

and reality, a smart TV that never got an update runs better

craggy vale
#

A linux user home be like🥲

crystal oyster
#

I see @crude nova

vocal basin
#

unexpected

wise loom
#

Fanta was invented in wartime Germany due to import restrictions

primal shadow
#

Early support

#

pre war

#

key words

wise loom
primal shadow
#

Though it looks like they might have done business during the war, and the government was unhappy

#

because as a whole ,teh US government was at war with Germanyt

#

the actions of free will having Americans does not dictate the policy of the nation

wise loom
primal shadow
#

I was just on the way out.

somber heath
#

@sudden palm 👋

sudden palm
#

hi

#

can i speak

somber heath
wise cargoBOT
#
Voice verification

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

somber heath
#

@frosty spoke 👋

somber heath
#

@torpid crane 👋

somber heath
#

@grand marten 👋

#

@frozen wolf 👋

frozen wolf
#

Hey

lavish rover
somber heath
#

@raven lance 👋

raven lance
#

Hello

wind raptor
bleak copper
#

look for this -->

lavish rover
#

@wind raptor give me 5 then let's play

vocal basin
#

working

#

it's functioning

#

(it was reverse case: I joined with a VPN, noticed it's an okay server, unVPNd, then rejoined)

somber heath
#

@fading eagle 👋

fading eagle
#

hello

#

i dont have permission to speak

#

i need some help

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.

somber heath
fading eagle
#

im new to python and i want to know where to test my skills as a beginner

#

a beginner

somber heath
#

!kindling

wise cargoBOT
#
Kindling Projects

The Kindling projects page contains a list of projects and ideas programmers can tackle to build their skills and knowledge.

fading eagle
#

thank you

somber heath
#

@abstract bobcat 👋

abstract bobcat
#

Hii

somber heath
#

@wheat cove 👋

shadow folio
#

Hello

vocal basin
#

@upper basin do you git tag your code frequently?

#

you can publish pre-releases if they're usable at all

#

0.0.0-a.426

vocal basin
vocal basin
#

used to be Cargo.toml-only

#

now partially supports pyproject.toml and package.json in addition to that

#

also will need to add [tool.uv.workspace] support

#

pyproject.toml still doesn't yet have tool-agnostic workspaces iirc

#

(it's mostly done for that purpose)

vocal basin
#

did you really just have to use a calculator for 480/60

#

2014
@upper basin I see you're consulting the ancient wisdom

#

target directory for one of my projects is getting somewhat non-small

#

rustc situation

vocal basin
#

(Rust's build artifacts)

#

455

#

(gigabytes)

#

I somehow constructed a method chain so complicated that rust-analyzer crashed

#

it's only, like, 18 methods

#

(was)

#

now it's ~22

#

had to .boxed() a few times to unbreak it

upper basin
#

It's 3 times current COD game size.

vocal basin
#

out of 12TB available total, okay-ish

upper basin
#

hehe

vocal basin
#

(I just never ran cargo clean there)

upper basin
#

Gotcha

vocal basin
vocal basin
#

it accumulates over time

#

for a single compilation, it's around 10GB disk + 10GB RAM

#

with 20~40MB result

#

all the source + intermediate artifacts

#

Rust caches those for incremental compilation

#

so that it doesn't take half an hour each time to recompile

#

almost exclusively because of Laravel or some other specific tech

#

(I don't learn languages from books)

vocal basin
#

yes

#

didn't hear the question

#

walkdir is the default approach, yes

#

there's not much point in asking upfront

#

just use it; if it doesn't fit, write yourself or use something else

vocal basin
#

if you want to customise it, just borrow the code and link to the original

hoary sable
#

bruh

#

still cant talk

#

that's crazy

somber heath
somber heath
#

The activity blocks, I'm guessing.

hoary sable
#

yeah i don't have Been consistently active for 1 hour 30 minutes in text chats

#

for some reason

vocal basin
#

@upper basin with ✨Agentic AI✨'s help, you could've optimised that 30 minutes to be 3 hours

somber heath
somber heath
#

@gusty thicket 👋

vocal basin
#

ruff includes isort

hoary sable
#

can i use ai to use chat for me

#

and farm relations

#

lmao

upper basin
#
import pandas as pd

import torch
import torch.nn as nn
from torch.utils.data import Dataset, DataLoader

from sklearn.preprocessing import StandardScaler

import numpy as np
from numpy.typing import NDArray

import matplotlib.pyplot as plt

from itertools import product

import tqdm
candid spire
#

You guys are phenomenal

#

Always helping strangers

somber heath
vocal basin
#
from itertools import product

import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import torch
import torch.nn as nn
import tqdm
from numpy.typing import NDArray
from sklearn.preprocessing import StandardScaler
from torch.utils.data import DataLoader, Dataset
hoary sable
#

i wouldn't do it basing it off on my personality

vocal basin
#

red red red

#

this almost looks like Red, the theme

candid spire
#

Is it true that developers are bad at finance?

vocal basin
#

real estate developers?

candid spire
vocal basin
#

I have weird eyesight

#

I can see individual pixels when looking at them directly but can't find an error highlight on screen

vocal basin
#

that case where "better than perfect" eyesight is completely useless

upper basin
#

I went from 0 errors, to launching the window and suddenly getting 1k errors.

vocal basin
somber heath
#

@terse bone 👋

candid spire
#

I wish I could recognise you!

vocal basin
#

which I discovered when training for big tennis

candid spire
#

But I guess I have gold fish memory

vocal basin
#

Voice Lord mentioned

candid spire
#

Btw, I hope you are doing well? @naive basalt

vocal basin
#

... this is so slow

#

also I should probably

  1. stop using Fedora for CI
  2. use a pre-built container with all the deps
candid spire
#

I wish we could have fella back like we used to have back in those old days!

#

My English is poor

vocal basin
#

@somber heath we know who will do it in we know which language again

#

iirc that's why some things were added to the standard library

#

so presumably productive

#

@somber heath you still can solve even if you can't submit

candid spire
#

Hi

#

It was fun having a conversation with you all!

#

Tc

vocal basin
#

and just use cargo-metadata instead

#

it finally compiled

#

only took 35 minutes this time

vocal basin
#

@peak depot cat really considering whether to bite the cables

#

HDMIeow

#

allegedly

somber heath
#

@timber rivet 👋

timber rivet
#

Hulloo

#

How are you on this fine morning (or whenever it is for you)?

vocal basin
timber rivet
#

Sometime today I'll finally receive voice perms I think

patent mural
#

sup chat

timber rivet
#

Hello stranger

scarlet halo
#

@patent mural we can hear your keyboard

timber rivet
#

It's not like there's anything it's disrupting

#

At least it's something to listen to

scarlet halo
#

tbh if you need something to listen to just listen to music, i don't mind the noises the keyboard makes but just thought i'd let him know

vocal basin
#

@upper basin more random git questions: do you use monorepos/big multi-project workspaces

patent mural
vocal basin
patent mural
#

@scarlet halo did u hear me breating?

scarlet halo
#

no

patent mural
#

@dim hazel wtf is that pfp😭 😂

late galleon
#

bro

#

what r u guys doing?

primal shadow
#

Another exciting day of work

amber raptor
primal shadow
#

These clacks ain't gonna click themselves, so I'm gonna clicky clack until I go home.

upper basin
#

That's mainly because all of my projects are just maintained by me. If I had a proper team, and was going to brand it as a platform, then yeah then I'd probably put it all in the same repo.

#

cirq I guess is the one I've seen do that.

#

!pypi cirq

wise cargoBOT
#

A framework for creating, editing, and invoking Noisy Intermediate Scale Quantum (NISQ) circuits.

Released on <t:1755141375:D>.

upper basin
#

Usually cirq-core is what people use, but there're ton of other modules there at the same level which I guess would make it technically a monorepo?

wise loom
wise loom
#

@balmy shuttle what did you do today?

balmy shuttle
#

hii! im working on a payment gateway

#

not so fun

#

not boring tho :p

wise loom
balmy shuttle
#

lolll!! dont u?

wise loom
balmy shuttle
#

wait but thats the goal

#

im the same

candid spire
#

Hi

vocal basin
#

@upper basin answer closed as duplicate
-- StackOverflow

candid spire
#

Am I deafen?

vocal basin
#

no one is talking seems like (in reply to above)

candid spire
#

Blink blink blink is all I can see

#

Can't hear a sound from a participant

calm ginkgo
vocal basin
#

❌ submit an AI-written answer
✅ submit an answer backed by unreadable amount of AI slop

gilded radish
#

Does a Software Engineer(Frontend Focus) need to handle server Devops part?

vocal basin
#

if you (you being a person or a team with shared responsibilities) write front-end code and you are responsible for deploying your own front-end code, that is devops

#

otherwise it isn't, as far the strict way of it goes

#

@dry jasper

5 7
as tall as the handgun? no way

#

lmao

#

IQ tests are too long, I'd rather play minesweeper for 10 hours instead

#

@dry jasper IQ is just a way of converting ranking to a number

#

just a scale

#

I only ever took online tests

#

some random one which was shorter and mensa's online thingy

#

from what I remember, currently only shapes-based tests are considered somewhat reputable when applied to Europe/NA population

#

because culture-agnostic within that subculture

#

(if you want to compare the whole human population, it stops working correctly)

vocal basin
winter helm
#

hello there

vocal basin
#

mensa sounds like scam

#

typical fake "society"

#

@crude nova if the IQ test is not language-agnostic, it is absolutely useless

#

like completely discredited

#

even mensa is aware of that

primal shadow
#

"very high" is relative

vocal basin
#

introducing language is one of the easiest ways to make it about culture alignment instead of intellect

primal shadow
#

but I scored well enough to land in the gifted program

#

Internet IQ tests are junk, proctored tests ca n show the capacity to adapt

#

and learn

vocal basin
#

@upper basin the ones which don't show results out of a certain range are at least somewhat less cursed

#

like only 60~140

#

everything else is shown as <60/>140

primal shadow
#

Intelligence is the ability to learn though

#

That's the problem

#

You're seeing a knowledge test

#

what you know

#

your intelligence is not your knowledge

#

intelligence is capacity

#

knowledge is information

vocal basin
primal shadow
#

What? So the only way to test for intelligence is unsolved problems? That's madness

vocal basin
#

@upper basin the point with those test is in part in how they're structured in a way where you can't study for them, only train

calm ginkgo
#

iq tests are scams lol

vocal basin
#

to you, if you take it for the first time, it will be a "haven't seen this before" problem

#

as for usability of it, very dubious

calm ginkgo
#

they're about as valid as MBTI

primal shadow
vocal basin
#

why would you ever pay for it

calm ginkgo
#

no real ones

#

"real" ones

primal shadow
#

I should get my kids in mensa

#

sounds like a fun time

calm ginkgo
#

it's pseudoscience at best

vocal basin
#

IQ test results can predict IQ test results
without useful connection to the rest of the stuff

#

and IQ itself is, again, just a scale

calm ginkgo
primal shadow
#

@upper basin So if I solve the unsolved problem, what's my score?

#

Is this new IQ test a pass fail?

#

You either solved the unsolved or you're a moron?

upper basin
#

Do you have to have a badge that says high IQ?

vocal basin
calm ginkgo
vocal basin
#

"oh, look, repeatable results, this surely looks like science"

primal shadow
#

Best source of facts

calm ginkgo
#

you want papers? how about nicholas taleb? a mathematician?

vocal basin
calm ginkgo
#

fyi the papers are included in the medium

vocal basin
vocal basin
#

(from the second one)

#

another thing medium is apparently now famous for: personality attacks

primal shadow
#

Seriously

#

that 2nd article is fucking trash

#

Sounds like a salty writer did bad on an IQ test

vocal basin
#

last time I spent >minute on reading a medium "article" it was some critique of HTMX that ended in a series of ableist and transphobic comments

primal shadow
#

The ability to recognize patterns?

#

Patterns are everywhere

#

Literally

#

Pattern recognition is pattern recognition

#

Being able to connect the disconnected

#

That's why we administer IQ tests to children

#

because they haven't thought to study how to game them yet

#

IQ test for college?

calm ginkgo
#

lol did you understand the math

vocal basin
# calm ginkgo it's pseudoscience at best

I'd probably call it dangerous/useless science rather than pseudoscience, unless you require ethics and meaningless results for it to qualify for science, which, sure, fair

vocal basin
primal shadow
#

What?

#

Genome studies?

#

We'd see what?

vocal basin
#

one random thing that I picked out from that was how "dead people score 0 on the IQ score" or something similar
if it meant something else, it was very unclearly written

#

but

#

the point is clear there

#

dummy inputs bias the results

#

(just, like, written poorly)

primal shadow
#

I'd hit up those jobs

#

I do good on tests

#

🙂

vocal basin
#

I still haven't figured out the logistics of procuring a .249878 of a rat

#

why is MBTI still respected in any way

#

do people not get disgusted by such idea of classifying people in this way

primal shadow
#

Y'all are confusing knowledge with intelligence

#

@calm ginkgo intelligence != knowledge

#

IQ is capacity

#

IQ is not knowing

vocal basin
primal shadow
#

A newborn has an IQ, doesn't mean they know physics

upper basin
#

"I have a metric for measuring brain power, but it doesn't actually apply to any tasks that use brain."

vocal basin
#

so clearly not "y'all"

candid spire
#

Hello 👋

whole bear
#

True

candid spire
#

IQ has no meaning!

vocal basin
#

(with the implication being that obviously this also means education-based test are disqualified)

candid spire
#

Just like competitive exam

vocal basin
vocal basin
whole bear
#

@haughty pier Could you explain these scales ?

primal shadow
#

and the container is empty

#

so the capacity is now irrelevant?

vocal basin
#

or something like that

whole bear
#

Right

primal shadow
#

Just because it's not yet used?

#

My car doesn't have as much HP as it does because I don't floor it?

vocal basin
#

145 is top .15% roughly iirc

candid spire
#

The problem with IQ is that, just like any other test an applicant can score higher if it's 2nd or 3rd attempt

whole bear
#

so the average is 100, right ?

vocal basin
#

@haughty pier iirc I did the maths, and that is around correct, yes

#

your guesstimate is close enough

#

or mathstimate

#

193 is one in 3.5 billion

candid spire
vocal basin
#

by how IQ is constructed

#

also, by construction/definition, it's normally distributed

#

smart is an unsmart word

candid spire
#

Smart and Intelligence are different words, it is as different as want and need

vocal basin
#

smart and clever bring certain negative connotations to them

#

"being smart" and "being clever" are often negative comments on someone/something

candid spire
#

Tbh, in my perspective a rich and healthy man is an intelligent man!

vocal basin
#

^ that sounds more like intelligencia than intelligence

#

... and that's where we hit the ambiguity on what "intelligent"/"intelligence" means

#

words are weird and somehow we ended up in a situation where "intelligent" is primarily about education, and "intelligence" is primarily about thinking capabilities

candid spire
#

Idk how most psychopaths have good EQ and IQ

upper basin
#

I wonder what IQ Delta Force operators have.

vocal basin
#

most don't

#

selection bias

#

(presumably)

upper basin
vocal basin
#

psychopaths "with high EQ and high IQ" are the media-popularised types thereof

#

meanwhile there are many just random people who just can't comprehend empathy

upper basin
vocal basin
# vocal basin selection bias

psychopath + somehow learns to abuse social interactions + somewhat brainful
^ this combination really helps a person get more influence, and therefore we end up seeing more of them

candid spire
#

This is how I judge if a man is smart or not :-

  1. Humble and Respectful both by action and word
  2. Meaningful talk beyond material existence and people
  3. Independent Problem Solving and Information retrieval
  4. Slow but steady increment in skills over time.
vocal basin
vocal basin
#

sounds like lack of daring

upper basin
#

I don't know why, but when I think of sociopaths, it's always those cold assholes.

#

Such a horrible mental image.

primal shadow
#

weren't idiot and moron scientific terms?

vocal basin
upper basin
#

I learned java in 4 days, python in two weeks. I was useless despite understanding the code. Self-studying is invaluable but it's only fleshed out when you practice, and that doesn't need a high IQ. Just commitment.

vocal basin
#

"learned" being was able to write something you chose rather than doing something a tutorial told you to?

upper basin
#

Yeah, write logic.

#

I never did tutorials.

#

Fortunately.

candid spire
#

I think it's not just about IQ some people hate programming but they are good at other things like Art, Finance, Mathematics, etc

vocal basin
#

I wouldn't've considered myself as someone who finished learning Rust before I read through the entirety of reference and standard library reference

upper basin
#

The smart designs, good practice patterns, those you learn from experience. It's not IQ.

vocal basin
#

and that's the only language for which I can say that

#

I haven't read through the standard library of Python

candid spire
#

Nowadays, many are hesitant to learn programming because of the AI, not because they are bad at it

upper basin
vocal basin
amber raptor
vocal basin
#

like stuff that got yanked recently

upper basin
#

I'm gonna go sleep guys, cheers.

candid spire
vocal basin
#

smart enough to leave relatively early

amber raptor
vocal basin
#

Russia used to be interested in US presence there, but now Russia and Taliban are allies

#

to the point of, random fact that's sometimes forgotten, NATO had a military facility within Russia

#

remember that weird world when Russia and NATO were briefly allies? me neither, but it did happen

vocal basin
#

alongside the "did you know that Eclipse is newer than IntelliJ IDEA?"

#

despite what it looks

#

can we rule 10 the VC please

candid spire
#

How come the Russian average in IQ is higher compared to the US?
I mean the US has much more per capita and facilitates?

vocal basin
#

unfit for communism

#

Xerox is US iirc?

#

Norwalk, Connecticut

#

the what the where

#

Xerox are also the early PC people

#

(PARC)

#

ah, it was Kodak that massively failed on early tech

#

these, like, three companies easy to confuse with each other

#

Xerox had PC
Kodak had digital camera

primal shadow
#

IQ has nothing to do with getting hired, because humans hire people

vocal basin
#

Kodak buried it because it would (did) impact their sales

primal shadow
#

Nepotism and favoritism

vocal basin
primal shadow
#

The job market is not a skill based system

#

It's a who you know, not what you know, in most places.

vocal basin
primal shadow
#

Just because someone has an incredibly high IQ doesn't mean life didn't leave them them as an unskilled farmer

haughty pier
vocal basin
primal shadow
#

And just because soemone is a fucking imbecile doesn't mean their wealthy father didn't give them a company to run

primal shadow
#

lol

#

FREEDOM

#

FREEEEE DOM!

#

Free dumb...

#

free to be dumb

vocal basin
#

yeah, maybe "gave up" is a bit too optimistic

primal shadow
#

The US does allow the pigs to refuse to hire high IQ individuals

#

Discrimination against the intelligent

#

becasue they won't be pigs

vocal basin
#

how is this not Onion

candid spire
#

Endless debate 😄

primal shadow
vocal basin
#

what will even Onion have to do now

#

like

primal shadow
#

and oppression

#

welcome to the current timeline

vocal basin
#

do they do another Godzilla story now

#

like they did last time stuff got way too surreal

amber raptor
#

Look at the date but it was

candid spire
#

@fast gyro Hi

vocal basin
#

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

vocal basin
#

the google suggested further questions are truly something

fast gyro
wise cargoBOT
# fast gyro .

Please react with ✅ to upload your file(s) to our paste bin, which is more accessible for some users.

vocal basin
#

MLP
when I see MLP there's only one thing I can think of

candid spire
#

What is AAST

#

Ah

#

Arab uni

#

Efil is Egyptian?

fast gyro
#

ye

candid spire
#

Understood

vocal basin
#

one (CV) is about what was, the other is about what is to be

candid spire
#

Essay is good!

#

I'm proud of you efil!

vocal basin
#

stylistically they might be similar, even sharing some parts of content,
but
the main point of and most content in them is different

candid spire
#

Bye tc

haughty pier
vocal basin
#

lmao

#

art of saying nothing with non-sources

fast gyro
humble lodge
#

GUYS

#

can someone help me

#

please

#

oh wait this aint genetal

#

general

vocal basin
#

@somber heath said you after hearing that screech

#

that one is no longer the highest or loudest recording

#

I did do, like, an octave higher at some point

#

it's not torturing the vocal cords

#

but

#

it might be slightly torturing the ears

#

it's really low force applied

#

yeah, it's surprising just how loud it gets from a slight effort applied

vocal basin
#

the only strain, that sometimes happens there, comes from me instinctively trying to quiet myself down, because I get startled by my own voice

#

it's kind of the same effect when you instinctively try to speak louder when the environment is noisy, but in reverse

#

the reaction bypasses any sort of thinking and that part is slightly dangerous

#

=> need to be fully relaxed~~ and prepared for ears to bleed from hearing this~~

#

another funny sound which, as far as I understand, is done differently, sounds more like whistling

vocal basin
woeful blaze
#

Does anyone know how to make a stylized outline of an image using python

vocal basin
#

okay I think I've learned how to make it not as ear-splitting but still high and noisy:
block the loudness by doing it more nasally

#

(red underlined stuff being the moments where I forgot to do that)

#

volume just randomly explodes out of nowhere

#

just making sure whatever I learned to do a couple of years ago is still possible

#

the other interning

#

-5 to 255

#

literals are usually treated like that

#

*similarly

#

not guaranteed

#

your code shouldn't depend on this

#

!e

print((1,2,3) is (1,2,3))
wise cargoBOT
vocal basin
#

!e

a, b, c = 1, 2, 3
print((1, 2, 3) is (a, b, c))
wise cargoBOT
vocal basin
#

Python does some amount of optimisation/deduplication before it actually turns stuff into bytecode

#

iirc it sometimes does arithmetic as part of that

#

like turning 2 + 3 into literal 5

#

!e

print((1000 * 5) is (100 * 50))
a = 1000
b = 5
c = 100
d = 50
print((a * b) is (c * d))
wise cargoBOT
vocal basin
#

as far as I know, what happens there is that the first turns into literally print(5000 is 5000)

#

before evaluation

#

and it might even just do the is pre-eval too, idk

heavy zenith
vocal basin
#

it's not undefined, it's underspecified

#

UB is something that a compiler/runtime can assume to never happen

#

or rather, compiler/runtime is allowed to do anything on UB getting encountered

somber heath
#

!e py a = 1, 2, 3 b = 1, 2, 3 print(a is b) print(a == b)

wise cargoBOT
vocal basin
#

!e

# I wonder if this changes anything
a = x, y, z = 1, 2, 3
b = x, y, z = 1, 2, 3
print(a is b)
print(a == b)
wise cargoBOT
vocal basin
#

it doesn't

#

!e

# I wonder if this changes anything
x, y, z = 1, 2, 3
a = x, y, z
x, y, z = 1, 2, 3
b = x, y, z
print(a is b)
print(a == b)
wise cargoBOT
vocal basin
#

this does

#

(in response to what I wrote)

#

((not VC))

#

chained assignments are generally weird in Python

#

I don't actually remember the order in which they happen and whether that order is guaranteed in any way

vocal basin
#

!e

class Test:
    @property
    def a(self): ...
    @a.setter
    def set_a(self, _): print("a")
    @property
    def b(self): ...
    @b.setter
    def set_b(self, _): print("b")

Test().a = Test().b = 123
wise cargoBOT
# vocal basin !e ```py class Test: @property def a(self): ... @a.setter def se...

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

001 | Traceback (most recent call last):
002 |   File "/home/main.py", line 11, in <module>
003 |     Test().a = Test().b = 123
004 |     ^^^^^^^^
005 | AttributeError: property 'a' of 'Test' object has no setter
vocal basin
#

I don't remember how to do this

#

!e

class Test:
    @property
    def a(self): ...
    @a.setter
    def a(self, _): print("a")
    @property
    def b(self): ...
    @b.setter
    def b(self, _): print("b")

Test().a = Test().b = 123
wise cargoBOT
vocal basin
#

okay so this

#

I had a suspicion that it's done in this order

#

which I don't find intuitive

#

for me a = b = c is b = c then a = b

#

but that might be C bias

#

Rust just disallows this altogether

#

there a = b = c is b = c then a = ()

#

so the order of initialisation is something like this (ordered by which variable first gets the final value)

a1 = a2 = a3 = a0
#

I don't like this order, breaks the right-to-left assignment flow

#
a1 = a0
a2 = a0  # here it's not actually evaluated
a3 = a0  # here it's not actually evaluated
#

I guess the ordering might've been borrowed from what it's short for

#
a1 = a2 = a3 = a0
# same as
a1 = (tmp := a0)
a2 = tmp
a3 = tmp
#

(introducing tmp in case a0 is a more complex expression than just a variable)

heavy zenith
#

()

vocal basin
#

!e

print(())
print(len(()))
wise cargoBOT
vocal basin
#

!e

() = ()
wise cargoBOT
vocal basin
#

and in Rust it just stands for a default empty type

#

materialised-ish void, within the type system

#

unlike in C/C++ where void can't be a value type

#

which is now considered a design mistake

#

some people also consider first-class reference support in C++ to be a mistake

#

(references being aliases not values)

#

C++ and Rust share a lot of the abstract model and general thinking, but Rust is just a better implementation of it

#

it's not even a just "opinionly better" type of thing any more

#

C++ standardisation participants are admitting that Rust is now something to catch up to, and a model for how things largely should be

#

C++ has same compilation time issues

#
  • whatever is added thanks to excessive TMP
#

incremental compilation is largely good enough

#

by default, Rust doesn't recompile everything from scratch

#

most do nowadays

#

some don't just because their compilers are extremely fast

#

Jai recompiles everything from scratch in seconds from what I remember hearing

#

also Go's compiler is quite good at that

#

watching talks is also an option

#

Bryan Cantrill on "ARC: A Self-Tuning, Low Overhead Replacement Cache" by Nimrod Megiddo and Dharmendra Modha ( https://www.usenix.org/legacy/event/fast03/tech/full_papers/megiddo/megiddo.pdf )

Bryan Cantrill is the CTO at Joyent, where he oversees worldwide development of the SmartOS and SmartDataCenter platforms, and the Node.js platform. Pri...

▶ Play video
#

@full dagger watch talks by:
Sean Parent
Jonathan Müller

#

they cover more fundamental parts of how C++ is supposed to be written

vocal basin
#

it might take more than one attempt to fully understand

#

pre-processor is a C construct

#

it's a very simple string processing utility

#

C++ uses the same pre-processor

#

you can run the C pre-processor on a Python program if you dare to

#

@heavy zenith pre-processor is unrelated to the speculative execution

#

speculative branch prediction is a different concept

#

(I might've be misinterpreting what's being asked)

#

no, C very much does error out

#

you can't lookahead the function name

#

it's just a concatenation/string cutting tool

#

it can't really do arithmetic even

#

for arithmetic you need constexpr and consteval (C++)

#

not just before compilation

#

before tokenisation/parsing

#

whereas in C++ you can do this

if constexpr something {
  /* ... */
}
#

which erases the if if something is false

#

(this happens during compilation)

#
if constexpr something_is_wrong_during_compilation {
  /* do something that causes a compilation error here */
}
vocal basin
#

you would often have that code inside something templated

#

so you check if something is true about a type that's passed in, and do things based on that

#

Rust, by design, doesn't allow constructs like this

#

^ I don't promote it, especially given statements like this

#

this is a limitation of Rust

#

specialisation, as a feature, is still not stabilised

#

and might never get stabilised

#

also doesn't (won't) have reflection stabilised

#

which Zig already has

#

and C++ is slowly getting

#

should be usable by C++29

#

current mechanisms Rust uses instead are based on raw token processing

#

complex + might be extending the language too far + quite a lot of effort already invested in other methods + internal politics of the Rust Foundation

#

the problem is this one is happening at runtime

#

currently, you cannot conditionally construct extra code based on type information, only based on code text (after tokenisation)

#

both C++ and Rust have some level of Lisp-like "just make it somewhat work" with regards to these compile-time metaprogramming functionalities

#

meanwhile Zig implements all this through first-class primitives

#

generics in Zig are just functions which take types as input and return types as output

vocal basin
#

even though this wasn't specifically directed at C++

#

in Python, don't forget to from e when re-raising within except

#

so that it explicitly chains errors

#

in Rust there are .context methods on certain result types which allow to build a trace

#

also if the error gets tracing::error!d, that includes the information about all the nested spans it happened inside

#

in C++, idk, you just hope you'll be able to debug it from a core dump

#

in C, iirc Kernel guidelines say this: return 0 when ok, unless it's a check function, in which case return 1 if and only if the condition is true and there were no errors, otherwise (error or false) return 0

#

Zig uses error sets, similar in part to Rust, but there you can't attach any additional information to the error

#

want to do Result like in Rust -- invent your own

#

depends on how often you hit them

#

performance-wise, exceptions optimise for happy path, errors-as-values optimise for error path

#

this explains, specifically for ARM, the whole path from throw to catch

#

@full dagger stored errors are a potentially terrible idea, unless you always force them to surface eventually

#

for debugging, look into tracing and stuff alike

#

this is not really error handling in this case

#

you need tracing/logging, if you want to later inspect it

#

this is in parallel to actually surfacing errors to users of your API wrapper

#

you need to rephrase the API in terms which more explicitly allow partial parsing

#
class MaybeParsed[Field]:
    def get(self) -> Field: ...

class ParseError[Field](MaybeParsed[Field]):
    def __init__(self, e: Exception):
        self.__e = e
    def get(self) -> Field:
        raise self.__e

class Parsed[Field](MaybeParsed[Field]):
    def __init__(self, field: Field):
        self.__field = field
    def get(self) -> Field:
        raise self.__field

class Response:
    field1: MaybeParsed[Field1]
    field2: MaybeParsed[Field2]
#

also sounds somewhat dubious

#

is the API documented?

#

mildly recklessly maintained

#

presumably

#

whenever possible, don't make matters worse, abort early
unless the situation is totally hopeless and no one is going to fix it

#

you can just record everything you send and receive

#

if you build some structure (e.g. database) based on what your received, you can then re-compute the state from this log

#

which, for example, allows fixing a bug in how you process that data, or introducing new features

somber heath
#

@frozen path 👋

frosty shell
#

@somber heath can you hear me okay?

somber heath
#

@unkempt herald 👋

unkempt herald
#

Mm

icy raptor
#

sorry i can't talk right now

muted silo
#

hello

somber heath
#

@kindred narwhal 👋

kindred narwhal
#

hi

#

idk why i am still muted

somber heath
#

@whole bear @nova flax 👋

#

@grave oracle👋

grave oracle
#

👋

paper wolf
#

i got an ad named conquer country

candid spire
#

Meow

#

Black 🖤

paper wolf
#

the ad content was about the best way to nuke someone

candid spire
#

Milien profile picture is cat?

#

Idk how but it looks quite similar to black cat

paper wolf
#

it looks like a pompom

candid spire
#

And it looks unique

paper wolf
#

a fluffy one

#

with some creepy elements to it

candid spire
#

How do you do @somber heath ?

#

I changed my name

#

I would like to learn python

#

Would you like to help me learn?

#

I have done some basic like variable, loop, control statement

#

Dictionary and set

#

Both are form of list?

somber heath
#

{a: b, c: d, e: f} dict
{a, b, c, d, e, f} set

candid spire
#

Yes

somber heath
#

!e py print({1, 2, 2, 3, 3})

wise cargoBOT
candid spire
#

Hmm

somber heath
#

!e py my_set = {1, 2, 3} result = 2 in my_set print(result)

wise cargoBOT
candid spire
#

Set is form of Data Structure in which every element is distinct.

somber heath
#

!e py my_set = set() my_set.add(1) print(my_set) my_set.add(2) print(my_set) my_set.add(1) print(my_set)

wise cargoBOT
somber heath
#

!e py a = {1, 2, 3, 4} b = {3, 4, 5, 6} c = a.intersection(b) print(c)

wise cargoBOT
somber heath
#

!e py a = {1, 2, 3, 4} b = {3, 4, 5, 6} c = a.difference(b) print(c)

wise cargoBOT
somber heath
#

!e py a = {1, 2, 3, 4} b = {3, 4, 5, 6} c = b.difference(a) print(c)

wise cargoBOT
somber heath
#

!d set

wise cargoBOT
#
set

class set(iterable=(), /)``````py

class frozenset(iterable=(), /)```
Return a new set or frozenset object whose elements are taken from *iterable*. The elements of a set must be [hashable](https://docs.python.org/3/glossary.html#term-hashable). To represent sets of sets, the inner sets must be [`frozenset`](https://docs.python.org/3/library/stdtypes.html#frozenset) objects. If *iterable* is not specified, a new empty set is returned.

Sets can be created by several means...
somber heath
#

!e py a = {1, 2, 3, 4} b = {3, 4, 5, 6} c = a.symmetric_difference(b) print(c)

wise cargoBOT
somber heath
#

!e py a = {1, 2, 3, 4} b = {3, 4, 5, 6} c = a | b print(c)

wise cargoBOT
paper wolf
wise cargoBOT
somber heath
#

!e py a = {1, 2, 3, 4} b = {3, 4, 5, 6} c = a & b print(c)

wise cargoBOT
somber heath
#

!e py a = {1, 2, 3, 4} b = {3, 4, 5, 6} c = a ^ b print(c)

wise cargoBOT
paper wolf
#

well you cant do that on lists and tuple ._.

#

or can you?

candid spire
#

!e

"""Set is distinct and is always unordered mathematically because abc is same as cba in set"""

sample_set = set()
sample_set.add(2)
sample_set.add(4)
sample_set.add(6)
sample_set.add(8)
sample_set.add(9)
sample_set.add(1)

print("Sample set is : ", sample_set)

sample_set.pop(6)

print("Now the sample set is like : ", sample_set)

sample_set.clear()

print("Set is empty ro clear? : " sameple_set)
 
wise cargoBOT
paper wolf
#

!e

a = [1,2,3,4]
b = [3,4,5,6]
c = a ^ b
print(c)
wise cargoBOT
# paper wolf !e ```py a = [1,2,3,4] b = [3,4,5,6] c = a ^ b print(c) ```

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

001 | Traceback (most recent call last):
002 |   File "/home/main.py", line 3, in <module>
003 |     c = a ^ b
004 |         ~~^~~
005 | TypeError: unsupported operand type(s) for ^: 'list' and 'list'
paper wolf
#

ohhhh

#

so its only for set

candid spire
#

!e

"""Set is distinct and is always unordered mathematically because abc is same as cba in set"""

sample_set = set()
sample_set.add(2)
sample_set.add(4)
sample_set.add(6)
sample_set.add(8)
sample_set.add(9)
sample_set.add(1)

print("Sample set is : ", sample_set)

sample_set.pop(6)

print("Now the sample set is like : ", sample_set)

sample_set.clear()

print("Set is empty ro clear? : ", sameple_set)
 
wise cargoBOT
candid spire
#

Oh

paper wolf
#

guys in fact, i use python to quickly solve our quiz

#

we have quiz about set theory

#

i use python to lazily solve bunch of questions at ones

candid spire
#

Sets was simple

#

Let's learn dictionary

paper wolf
#

primitive data types are simple

somber heath
#

!e py my_dict = {"key 1": "value 1", "key 2": "value 2", "key 3": "value 3"} print(my_dict.keys()) print(my_dict.values()) print(my_dict.items())

wise cargoBOT
paper wolf
wise cargoBOT
paper wolf
#

ord = ordinal

candid spire
#

Okay

#

Now I do understand

somber heath
#

!e py prices = {"banana": 7, "apple": 2} print(prices["banana"]) prices["guava"] = 9 print(prices)

wise cargoBOT
paper wolf
#

dictionary is actually self explaining... its a dictionary, it can give you the decryption of a value on my example you have a character and its unicode value

somber heath
#

!d dict

wise cargoBOT
#

class dict(**kwargs)``````py

class dict(mapping, /, **kwargs)``````py

class dict(iterable, /, **kwargs)```
Return a new dictionary initialized from an optional positional argument and a possibly empty set of keyword arguments.

Dictionaries can be created by several means...
candid spire
#

Gotcha

paper wolf
#

i use hash map for stuff like event calls where i use the key to tell what event type it is and the vaalue of it holds the function what the program should do on that event

paper wolf
#

hash map is just a universal name for dictionary

paper wolf
candid spire
paper wolf
#

its same damn thing

#

!doc hash

wise cargoBOT
#

hash(object, /)```
Return the hash value of the object (if it has one). Hash values are integers. They are used to quickly compare dictionary keys during a dictionary lookup. Numeric values that compare equal have the same hash value (even if they are of different types, as is the case for 1 and 1.0).

Note

For objects with custom [`__hash__()`](https://docs.python.org/3/reference/datamodel.html#object.__hash__) methods, note that [`hash()`](https://docs.python.org/3/library/functions.html#hash) truncates the return value based on the bit width of the host machine.
paper wolf
#

!e

print(hash("Hello"))
print(hash("Hallo"))
wise cargoBOT
paper wolf
#

you see, a single change will change its output on extreme and unpredictable way

#

hash is a good way to store a value without needing to know its content

#

lets say as a key on hashmap (dictionary)

#

dictionary are just like a lists but you index the values using non-intiger key

#

but you are welcome to use intigers as key

candid spire
#

!e

""" Dictionary are data structure that stores key value pairs""" 

sample_dict = {"name" : "OpalMist", "Quality" : "Smart", "Aura" : 800}

print(sample_dict["name"])
print(sample_dict.get( "Quality"))

wise cargoBOT
paper wolf
#

!e

a = {1:"1", 2:"2"}
print(a.get(3, "0"))
wise cargoBOT
candid spire
#

Uh!

paper wolf
#

!e

a = {1:"1", 2:"2"}
print(a.get(3, "0"))
wise cargoBOT
paper wolf
#

like this

somber heath
#

!e py print({}.get("Nonexistent key.", "Default fallback."))

wise cargoBOT
candid spire
#

I like how python is easy to write compared to Java

paper wolf
#

java is total mess lol

#

we code a calculator and its total mess

#

GUI calculator*

candid spire
#

good thing about Java is quite good for DSA!

paper wolf
#

nah

#

it dont even have default values

candid spire
#

!e

public class swt{

    public int findMax(int[] nums, int  k){

        int n = nums.length;

        int sum = 0;

        int l = 0;

        int max = Integer.MIN_VALUE;

        for(int r = 0; r < n; n++){

            if((r-l+1)>=k){

                 max = Math.max(max, sum);

                sum -= nums[l];          

                l++;

            }

        }

        return max;

    }

  
    public static void main(String args[]){

        int[] nums = {1,2,3,4,5,6};

        int k = 3;

        swt pack = new  swt();

        System.out.println("Output : " + pack.findMax(nums, k));

    }

}
wise cargoBOT
candid spire
#

I can't run java?

paper wolf
#

only python lol

#

this bot is dumb

candid spire
#

my bad

paper wolf
#

hope we have the

#

;compile

candid spire
#

this was sliding window in java

paper wolf
#

numpy is super fast at its work tho

candid spire
#

I decided to make a custom code instead

#

as I was solving DSA problem on leet code

#

medium level and easy level

paper wolf
#

nah just use the max and min function

#

lol

candid spire
#

Btw I guess I have to use dictionary in some way to understand it better

#

so far your explanation was good

#

and I learnt so many new stuff

#

I was confused about it

paper wolf
#

try to code more complex project and youll learn even more on just a short period of time

candid spire
#

@whole bear Hello!

#

Take yout time opal

somber heath
#

!e py text = "abcdefg" for i in range(len(text) - 2): print(text[i: i + 3])

wise cargoBOT
somber heath
#

🤮

candid spire
#

Hmm

#

O(n) is time complexity?

#

!e

text = "abcdefg"

for i in range(len(text) - 2):
    print(text[i] + text[i+1] + text[i+2])
wise cargoBOT
candid spire
#

I guess it can't be lowered below O(n)

#

sliding window is used to reeduce the O(n^2) to O(n)

#

O(1) is quite rare

#

!e

my_set = {10, 20, 30, 40}
print(30 in my_set)  # O(1) average

#

!e

 
my_set = {10, 20, 30, 40}
print(30 in my_set)  # O(1) average

wise cargoBOT
candid spire
#
 for i in range(1000):    # O(1000) → O(1), constant
    print(i)

How come this is O(1)?

#

As per GPT it is O(1)

#

Hm

#

Now I know how it O(1)

#

For n size it has to do just 1 operation

#

for it would be O(n) it has to do n operation for n size

#

I'm confused

#

damn

#

as per it is O(1)

#

I guess it is confusing

#

moment you replace it with n

#

it says O(n)

#

!e

 for i in range(1000):    # O(1000) → O(1), constant
    print(i)

#

Yep

#

I guess AI is tripping

#

Time and space complexity is weird realem

#

@terse kayak Hey sulfur how are you?

terse kayak
#

Hello

#

Great how about you all

candid spire
somber heath
#

@whole bear 👋

whole bear
#

hey

#

just talk whatever u like share whatever it is u want to share

candid spire
#

Halting problem?

#

You know so much about it Opal!

#

was criminal?

#

I think it is shame that human are judged based on the orientation, colour, ethnicity.
Human should not be judged based on those irrelvant factor for role!

#

Human are quire materialistic in nature, no other animal is as materialistic as human!

#

chimps and monkey are close relative to human

#

I heard a monkey can adopt the orphan monkey and they treat is their own!

somber heath
#

@unreal elbow 👋

candid spire
#

Evil opal

#

they would be curious

#

and fascinated

#

but would like to repeat the behaviour with rock or pebble

#

Hover board is marketing

#

just like Gbps in internet speed

#

And if you do

#

10 Gbps is 1.25 GBps

#

pure marketing

#

Btw

#

Did you had lunch?

#

I just had lunch..

#

claiming refund is hard

#

they made it intentionaly harder to claim

whole bear
#

how to be knowledgeable like u?

candid spire
#

I gotta do something , brb...
Have nice day everybody!
It was fun time here!

whole bear
#

i mean, i do study and i forgot things so easily

#

yeah like putting some emotions, so it can be stored in unconscious

#

ahhh yes

#

how old are u?

#

im here listing

somber heath
#

@dire nacelle 👋

whole bear
#

dinner time see ya

somber heath
#

@warped mantle 👋

paper wolf
#

im making a terminal based calculator that use prat-parsing to evaluate a expression/math equation

i need dont know what name i should give the file that holds the evaluator and parser

sleek rampart
#

Hello, non furry person.

#

I'm glad you clarifed the other day.

paper wolf
#

i have this structure

src/
|-app/
| |-main.cpp
|-ui/
|-???/
| |-evaluator/
| |-parsing/
paper wolf
upper basin
#

"ChatGPT, should I eat shit?"

#

"ChatGPT, how do I know if I'm allergic to shit?"

late galleon
#

lol

vocal basin
#

... why are you calling them Russian

#

that is not a Russian accent

upper basin
vocal basin
#

numbers are in superposition

#

I clicked "Remove AI Chatbot"

#

it went away

#

for now

upper basin
vocal basin
#

@somber heath usually you just give it an API key

#

from elsewhere

upper basin
vocal basin
#

a single person can't even read all the specifications required to implement a web browser

#

@wise loom android is linux

#

it's like saying "difference between ubuntu and linux"

paper wolf
vocal basin
#

no, there is no extra qualification as "inside"

#

it is linux

#

@grave viper embezzlement 🚀

upper basin
#

I discovered jujuliagava today.

paper wolf
#

tf was that

upper basin
#

Made my day.

paper wolf
#

@upper basin this?

upper basin
#

I like her old style gothic attire.

#

She's like sth out of Tim Burton's world.

paper wolf
#

not a fan of gothic...

upper basin
#

It's a sophisticated taste.

paper wolf
#

but hey it sure interesting

upper basin
#

She reminds me of a young Jane Fonda.

paper wolf
#

!rule 4 @last ingot

wise cargoBOT
#

4. Use English to the best of your ability. Be polite if someone speaks English imperfectly.

umbral mauve
#

hello

#

its quiet here

#

im good

#

wby

#

lol

#

really quiet

#

what are u doing

#

@paper wolf @wise loom

paper wolf
#

im working on a project...

#

a small one..

umbral mauve
#

cool

#

what kind of project is this

paper wolf
#

click my pfp itll show u

umbral mauve
#

k

#

oh i see

#

you're writing a...

#

calculator?

#

using a pratt parser

#

or a full interpreter

#

or even a compiler

paper wolf
#

a simple one

umbral mauve
#

or a transpiler

#

k

#

hello

#

@stark vine

#

how r u

golden beacon
#

@lavish gazelle can you go dms i have question

vocal basin
#

@grave viper use starlette if you want truly barebones

#

or whoever was asking

#

I might've mispinged

#

FastAPI and Django are about different approaches to software

#

FastAPI is more library-oriented

#

there you build stuff out of small stuff rather than just having one big thing provide everything with fixed structure

grave viper