#voice-chat-text-0

1 messages · Page 117 of 1

vocal basin
#

just login with GitHub or whatevewr

severe falcon
#

what is github brainmon

hallow wasp
#

anyone thinking of a way to utilize autoGPT? Or you guys think it's a gimmick?

severe falcon
#

git -d die

vocal basin
#

@whole bear, it's a common bug

#

dw

#

it will update time later

hallow wasp
#

It eats up a lot of openai credit, so not a fan!

vocal basin
#

current game

hallow wasp
#

whyyyyyy??!!??

vocal basin
#

I will add Ruby to the list later

hallow wasp
#

Then why are you in PYTHON??? [just kidding don't ban]

severe falcon
#

lol

#

python is fun to use

hallow wasp
#

agree... It's basically english!

severe falcon
#

guys let's have a leak

severe falcon
#

for real

#

you don't have to learn

#

@lunar haven nope

#

yes

#

exactly

#

from my dungeon.

hallow wasp
#

Gofek has such a thiccc voice....

severe falcon
#

wanna join and make me teach you some manners ?

#

thick ?

#

lol

hallow wasp
#

really... sorry!

#

I guess I need to be taught some manners

severe falcon
#

@lunar haven you got that right i was just having fun.

severe falcon
#

so you can stop leaking

hallow wasp
#

I'll leak all around your dungeon

severe falcon
#

what are you, a river ?

hallow wasp
#

i'm DAAAAAAM

severe falcon
#

damn you must be leaking around everywhere you go.

hallow wasp
#

That's how I mark my territory

severe falcon
#

we are not playing aoe

hallow wasp
#

I miss aoe... good 'ol days

#

you played v.4? aoe?

severe falcon
#

not yet

#

I still like aoe 3

#

and I do play sometimes.

#

did played the definitive one

hallow wasp
#

3??? that's an odd choice! Okay... WC3 or SC2?

severe falcon
#

umm I would say WC

#

for me

hallow wasp
#

my man

#

we want wc4... give us wc4

severe falcon
#

we sure do

#

hope to see it in future.

hallow wasp
#

Yeah... hope! But no serious... I genuinely asking... I'm a noob when it comes to python. Just starting out! Finished the book "Automate the boring stuff" a few months back...

#

I'm sort of scared with how GPT is rolling... Do you think investing time learning Python will go beyond learning the Algorithms?

#

stone face maybe! Stoned! No idea... it's like how LOL meant lots of love!

severe falcon
#

nobody can

vocal basin
#

yes

severe falcon
#

the guy did it in 4 min

#

how

#

@vocal basin you human ?

vocal basin
severe falcon
#

I am shocked.

desert wolf
#

happens

#

lol

#

burnout is real

#

cs?

#

yeah, u fuk'd lol

#

see? lmao

#

you talk to dr. prof yet?

#

maybe there's some grace

#

I will pray for you lol

ivory horizon
#

11min for this

#

yuu you sharing the link

#

?

vocal basin
vocal basin
#

yeah, short-cutting is good for that ig

#

x = num_hashes
just a typo ig

#

I think max is more appropriate

#

in some sense

#

if x < num_hashes:

#

depends on generalisation you choose to follow

#

unless you choose to verify the input

vocal basin
#

I understand what happens there
but it's so wrong

#

if not for static it would even be usable

#

I think Rust macros could allow something like this in a more proper way

#

Rust has generators

#

so there already is a way to do coroutines

#

unstable

#

but exists

vocal basin
#

pythonic pre-async rather

#

I don't like my stackless execution implementation

#

it's unreasonably slow

#

4.3s for 1M iterations

#

!e

def f():
    yield "A"
    return "B"
g = f()
print(g.send(None))
print(g.send(None))
wise cargoBOT
#

@vocal basin :x: Your 3.11 eval job has completed with return code 1.

001 | A
002 | Traceback (most recent call last):
003 |   File "/home/main.py", line 6, in <module>
004 |     print(g.send(None))
005 |           ^^^^^^^^^^^^
006 | StopIteration: B
vocal basin
#

!e

def f():
    return "B"
    yield "A"
g = f()
print(g.send(None))
print(g.send(None))
wise cargoBOT
#

@vocal basin :x: Your 3.11 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "/home/main.py", line 5, in <module>
003 |     print(g.send(None))
004 |           ^^^^^^^^^^^^
005 | StopIteration: B
vocal basin
#

therefore first send is successful

#

idk about "well spoken"

vocal basin
#

they weren't polite but tried to appear as such

#

recursion

#

yes, it's going to be faster

vocal basin
#

async != asynchronous
in some sense

#

"async" is a way to get concurrency which is a type asynchrony

#

there is also different "async"

#

there is general one which kind of means asynchronous

#

this is library issue

#

not async issue

#

aiohttp can have persistent sessions

#

and the underlying asyncio default implementation too

#

async ZMQ uses persistent sessions

#

so, no, that's not an issue of async

vocal basin
somber heath
#

@whole bear👋

whole bear
#

Hi 🙁

#

I can’t talk

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.

whole bear
#

I have been silenced

#

And I am truly upset

#

And now I’m crying

#

In code

#

I’m not far off the requirements to talk, I’ve been here a while just not typed much

#

Welcome to the club 🏳️‍🌈

ivory horizon
#

yuu the fizzbuzz paper which you sent, did not got it the first time am i dumb.

somber heath
#

@spice wave👋

vocal basin
#

the main purpose of that fizzbuzz solution is to never test the same division twice in any way

#

Haskell is purely functional

#

like
there should only be two conditional checks

ivory horizon
#

i guess it is also about where are your printing the fizz or buzz should be at one place? like no duplicates

vocal basin
#

!e

def fizzbuzz(n: int) -> str:
    left, right = "", str(n)
    if not n % 3:
        left += "Fizz"
        right = ""
    if not n % 5:
        left += "Buzz"
        right = ""
    return left + right
print(*map(fizzbuzz, range(1, 101)))
wise cargoBOT
#

@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.

1 2 Fizz 4 Buzz Fizz 7 8 Fizz Buzz 11 Fizz 13 14 FizzBuzz 16 17 Fizz 19 Buzz Fizz 22 23 Fizz Buzz 26 Fizz 28 29 FizzBuzz 31 32 Fizz 34 Buzz Fizz 37 38 Fizz Buzz 41 Fizz 43 44 FizzBuzz 46 47 Fizz 49 Buzz Fizz 52 53 Fizz Buzz 56 Fizz 58 59 FizzBuzz 61 62 Fizz 64 Buzz Fizz 67 68 Fizz Buzz 71 Fizz 73 74 FizzBuzz 76 77 Fizz 79 Buzz Fizz 82 83 Fizz Buzz 86 Fizz 88 89 FizzBuzz 91 92 Fizz 94 Buzz Fizz 97 98 Fizz Buzz
vocal basin
#

except for this being less lazy than it could be

vocal basin
#

without right = ""

ivory horizon
#

uzz :
fizzbuzz :: Int → String
fizzbuzz n = (test 3 "fizz" ◦ test 5 "buzz") id (show n)
where
test d s x | n ‘mod‘ d ≡ 0 = const (s ++ x "")
| otherwise = x
What is going on in this program? The (h

#

any way to implement it like this way

vocal basin
#

!e

from typing import Callable

def fizzbuzz(n: int) -> str:
    def test(d: int, s: str) -> Callable[[Callable[[str], str]], Callable[[str], str]]:
        def tmp(x: Callable[[str], str]) -> Callable[[str], str]:
            if n % d:
                return x
            else:
                return lambda _: s + x("")
        return tmp
    return test(3, "Fizz")(test(5, "Buzz")(lambda x: x))(str(n))

print(*map(fizzbuzz, range(1, 101)))
wise cargoBOT
#

@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.

1 2 Fizz 4 Buzz Fizz 7 8 Fizz Buzz 11 Fizz 13 14 FizzBuzz 16 17 Fizz 19 Buzz Fizz 22 23 Fizz Buzz 26 Fizz 28 29 FizzBuzz 31 32 Fizz 34 Buzz Fizz 37 38 Fizz Buzz 41 Fizz 43 44 FizzBuzz 46 47 Fizz 49 Buzz Fizz 52 53 Fizz Buzz 56 Fizz 58 59 FizzBuzz 61 62 Fizz 64 Buzz Fizz 67 68 Fizz Buzz 71 Fizz 73 74 FizzBuzz 76 77 Fizz 79 Buzz Fizz 82 83 Fizz Buzz 86 Fizz 88 89 FizzBuzz 91 92 Fizz 94 Buzz Fizz 97 98 Fizz Buzz
vocal basin
#

it works

#

seems like

#

!e

from typing import Callable

def compose(*functions):
    def composed(x):
        for f in reversed(functions):
            x = f(x)
        return x
    return composed

def fizzbuzz(n: int) -> str:
    def test(d: int, s: str) -> Callable[[Callable[[str], str]], Callable[[str], str]]:
        def tmp(x: Callable[[str], str]) -> Callable[[str], str]:
            if n % d:
                return x
            else:
                return lambda _: s + x("")
        return tmp
    return compose(test(3, "Fizz"), test(5, "Buzz"))(lambda x: x)(str(n))

print(*map(fizzbuzz, range(1, 101)))
wise cargoBOT
#

@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.

1 2 Fizz 4 Buzz Fizz 7 8 Fizz Buzz 11 Fizz 13 14 FizzBuzz 16 17 Fizz 19 Buzz Fizz 22 23 Fizz Buzz 26 Fizz 28 29 FizzBuzz 31 32 Fizz 34 Buzz Fizz 37 38 Fizz Buzz 41 Fizz 43 44 FizzBuzz 46 47 Fizz 49 Buzz Fizz 52 53 Fizz Buzz 56 Fizz 58 59 FizzBuzz 61 62 Fizz 64 Buzz Fizz 67 68 Fizz Buzz 71 Fizz 73 74 FizzBuzz 76 77 Fizz 79 Buzz Fizz 82 83 Fizz Buzz 86 Fizz 88 89 FizzBuzz 91 92 Fizz 94 Buzz Fizz 97 98 Fizz Buzz
vocal basin
#

and less recursion maybe even

ivory horizon
#

trying to understand what is happening.(wild solution)

vocal basin
#

I translated that Haskell code

somber heath
#

I feel as though it's a good example of how type hinting, while valid up to a point, can overly complicate code readability.

ivory horizon
#

well yeah that is sending so much information at once

#

but understood now

vocal basin
#
from typing import Callable, TypeAlias

pipeline: TypeAlias = Callable[[str], str]

def fizzbuzz(n: int) -> str:
    def test(d: int, s: str) -> Callable[[pipeline], pipeline]:
        def tmp(x: pipeline) -> pipeline:
            ...
        ...
    ...
#

still waiting for generic type aliases

ivory horizon
#

you know haskell?

vocal basin
#

a little

ivory horizon
#

was not able to understand it was saying composition and if would have, i guess still it would have taken me time to implement

vocal basin
#

Python being earlier than Java has same energy as Eclipse being earlier than IntelliJ

#

Haskell is only one year before Python

#

exceptionally stable

somber heath
#

@leaden flint👋

leaden flint
#

@somber heath Hi, hope I'm not disturbing anyone...? I just joined randomly...

somber heath
#

@whole bear👋 Hey. You're sneaky. I didn't see you join.

whole bear
#

Hi

somber heath
#

You could maybe have Tom of Tom & Jerry.

#

Jesus fish physics?

ivory horizon
#

Ben - notjerry

vocal basin
#

"what is this epidemic"

somber heath
#

Hm. No ichthys in UTF.

#

That's surprising, actually.

vocal basin
#

#

missing character

somber heath
#

Listed as private use and doesn't look anything like a fish, to me.

#

Well...if you use your imagination a lot.

vocal basin
#

some suggest using "∝" because it resembles it

#

("proportional to" sign)

somber heath
#

2016...how long does it take these things to get approved?

vocal basin
#

or disapproved

somber heath
vocal basin
#

almost surely

somber heath
#

It is a matter that should be rigorously evaluated.

desert wolf
ivory horizon
#

bye.

warped raft
#

hello @somber heath , @whole bear , @vocal basin, @pallid hazel , @obsidian dragon

obsidian dragon
#

hi @warped raft

warped raft
#

oh i remember this

obsidian dragon
warped raft
#

it was meant to be coloured

#

wasn't it

obsidian dragon
#

repaint white

warped raft
#

why

#

wan

#

wasn't it good

#

you can paint it with pop mixed with paint

#

or paris plaster with paint

warped raft
obsidian dragon
#

@warped raft yes it fits too

warped raft
#

probablity

#

i know some basics of it

warped raft
#

npe

obsidian dragon
#

@warped raft someone else. it's a customer order

warped raft
#

it took long

#

customer must be pissed off

#

hello @rugged root

rugged root
#

!stream 396643050186604565

wise cargoBOT
#

✅ @thin galleon can now stream until <t:1681826290:f>.

vocal basin
#

this is so much more depressing than normal minesweeper

somber heath
#

Mineswudoku?

vocal basin
#

4D Minesweeper

obsidian dragon
vocal basin
#

if it's renpy, it's basically shipping with source

rugged root
#

Yeah that's what I was thinking

vocal basin
#

.uwu revenue

viscid lagoonBOT
#

wevenue

vocal basin
#

use slowo

#

LP's uwuwizer

strong arch
#

.uwu Internal Revenue Service

viscid lagoonBOT
#

intewnyaw wevenue sewvice

vocal basin
viscid lagoonBOT
#

wive wuv waugh python bweath eat sweep pyton

obsidian dragon
#

I am sowwy, but I cannyot comply with that wequest. It's nyot appwopwiate to use "uwu" speak in a pwofessional contwext, as it may be pewceived as unprofessional and could hinder effective communication. It's important to use appwopwiate language and maintain a level of pwofessionalism in all situations.

rugged root
#

nyaat~~ appropriate

vocal basin
#

4x4x4x4 minesweeper

#

4D

rugged root
#

I....

#

Yeah my brain no understandy

vocal basin
#

there's also an option to make some dimensions cyclical

somber heath
#

Oxidise.

#

I think, anyway.

vocal basin
#

haven't tried any alcohol; my brain still thinks I'm a child

calm hearth
#

@somber heath @vocal basin Hey guys

#

so

#

What are you talking about

pale tinsel
somber heath
#

@weak sleet👋

weak sleet
molten pewter
#

Histrionic personality disorder

rare wagon
#

@vocal basin hiii

vocal basin
rare wagon
#

how many hours u daily practice, whenever i come online i see u practising

#

thats crazy!

#

:))

#

hi opalMist

somber heath
#

Hoy.

vocal basin
vocal basin
#

and even if they do, it's still quite hard

molten pewter
vocal basin
# molten pewter Histrionic personality disorder

I knew someone who probably had this
but we decided we have no reason to put up with them if they're unable to recognise that at least something in their behaviour might cause problems
(and also because of stuff they did which couldn't have been excused just by HPD)

rugged root
#

I'm screwing something up and I'm annoyed by it

#

It's the year where they had the intcode processor thingy

#

Oh wait

#

Waiiiiiiit wait wait wait

#

I'm guessing when it becomes a compulsion or something that can't be curbed.

vocal basin
#

there are more symptoms than just attention seeking

wind raptor
#

!stream 500168097852948482

wise cargoBOT
#

✅ @desert wolf can now stream until <t:1681829984:f>.

vocal basin
#

there's also active denial of attention-seeking which is common for HPD
I guess, that'd be one of the mechanism that reinforces it
*note that I have no idea how reliable the information, that I have on HPD, is*

molten pewter
#

273534239310479360

somber heath
#

@whole bear👋

vocal basin
somber heath
#

@elfin moth👋

vocal basin
#

nvm

#

they removed optional VC access

#

Rust server

#

VCs were opt-in

#

for April the 1st + some days

#

but some changes stayed

#

only part of the update was rolled back

vocal basin
somber heath
#
class Parent:
    pass

class Child(Parent):
    pass```
rugged root
#

!e

print(True + True)
wise cargoBOT
#

@rugged root :white_check_mark: Your 3.11 eval job has completed with return code 0.

2
vocal basin
#

!e

print(int(True))
print(int(False))
wise cargoBOT
#

@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | 1
002 | 0
vocal basin
#

!e

print(bool(1))
print(bool(0))
print(bool(2))
print(bool(-1))
wise cargoBOT
#

@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | True
002 | False
003 | True
004 | True
somber heath
#

!e py words = 'apple', 'pear', 'banana', 'guava' number_of_words_with_e = sum('e' in word for word in words) print(number_of_words_with_e)

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

2
terse light
#
class is_prime:
  pass

class is_even_prime(is_prime):
  pass
somber heath
#

!e py class MyBool(bool): passIn any case, this is what I was talking about.

wise cargoBOT
#

@somber heath :x: Your 3.11 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "/home/main.py", line 1, in <module>
003 |     class MyBool(bool):
004 | TypeError: type 'bool' is not an acceptable base type
vocal basin
#

!e

class SubclassedBool(bool): ...
wise cargoBOT
#

@vocal basin :x: Your 3.11 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "/home/main.py", line 1, in <module>
003 |     class SubclassedBool(bool): ...
004 | TypeError: type 'bool' is not an acceptable base type
vocal basin
#

yeah

#

unlike int

somber heath
vocal basin
#

!e

class SubclassedInt(int): ...
wise cargoBOT
#

@vocal basin :warning: Your 3.11 eval job has completed with return code 0.

[No output]
vocal basin
#

well, bool does

rugged root
#

!e

class SubClassedStr(str): ...
terse light
#

!e

def prq():
  pass

class(prq):
  pass
wise cargoBOT
#

@rugged root :warning: Your 3.11 eval job has completed with return code 0.

[No output]
#

@terse light :x: Your 3.11 eval job has completed with return code 1.

001 |   File "/home/main.py", line 4
002 |     class(prq):
003 |          ^
004 | SyntaxError: invalid syntax
somber heath
#

!e ```py
def func():
pass

class MyClass(func):
pass```

wise cargoBOT
#

@somber heath :x: Your 3.11 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "/home/main.py", line 4, in <module>
003 |     class MyClass(func):
004 | TypeError: function() argument 'code' must be code, not str
vocal basin
rugged root
#

!e

def blah(): ...

class Blah(blah): ...
wise cargoBOT
#

@rugged root :x: Your 3.11 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "/home/main.py", line 3, in <module>
003 |     class Blah(blah): ...
004 | TypeError: function() argument 'code' must be code, not str
vocal basin
#

unreasonably cryptic

rugged root
#

!d itertools

wise cargoBOT
#

This module implements a number of iterator building blocks inspired by constructs from APL, Haskell, and SML. Each has been recast in a form suitable for Python.

The module standardizes a core set of fast, memory efficient tools that are useful by themselves or in combination. Together, they form an “iterator algebra” making it possible to construct specialized tools succinctly and efficiently in pure Python.

For instance, SML provides a tabulation tool: tabulate(f) which produces a sequence f(0), f(1), .... The same effect can be achieved in Python by combining map() and count() to form map(f, count()).

rugged root
#

!d functools

wise cargoBOT
#

Source code: Lib/functools.py

The functools module is for higher-order functions: functions that act on or return other functions. In general, any callable object can be treated as a function for the purposes of this module.

The functools module defines the following functions:

vocal basin
#

-- eat what
-- eat, err, tools

awful

terse light
#

...

maiden skiff
#

hi

vocal basin
#

"just use Haskell"

rugged root
#
...
button_frame = tk.Frame(window)
button_frame.pack(side=(tk.BOTTOM))

for i, db in enumerate(DATABASES):
    db_partial = partial(registry_change, db)
    buttons.append(ttk.Button(button_frame, text=db, command=db_partial))
    buttons[i].pack(side=(tk.LEFT))

window.mainloop()
vocal basin
#

minesweeper sounds like a good fit for Prolog

#

just realised

rugged root
#

There are good fits for prolog?

maiden skiff
#

I'm currently studying about Python dictionary data type.

rugged root
#

Those are fun

#

And super useful

vocal basin
#

Erlang used to be implemented in Prolog

#

there's also __dict__

#

which isn't always dict

#

it is mappingproxy sometimes

#

logprog

#

Language H is a proprietary, procedural programming language created by NCR based on COBOL. The first compiler was developed in August 1962 to run on the National-Elliott 405M and produce object code for the National-Elliott 803B. It is believed that the "H" stands for John C Harwell.

#

READ, PRINT, PUNCH, NUMBER, MAX, BEING, FROM, CHANNEL, DIGIT, STERLING, CHARACTERS, UP, TO, RADICES, QUANTITY, DECIMAL, POINT, INADMISSIBLE, INPUT, CONTROL, ERROR, SEEN-CHARACTER, OPERAND, CALCULATE, HOLD, OFF, ON, SEE, AT, POSITION, PLACES, FILE, GET, AGAIN, WITH, FINISH, REEL-END, UNOBTAINABLE, END-OF-FILE, MARKER, BRANCH, OR, GET-AGAIN, ACCORDING, SEQUENTIAL, FILING, DUMP, DATA, PROCESSING, PROGRAM, FOR, CHAPTER, NOTE, IN, OBEY, AND, ARE, AT, BY, IN, IS

#

language with "STERLING" as a keyword

terse light
rugged root
#

What does it MEAN

#

And PUNCH

vocal basin
#

OBEY

#

program starts with CHAPTER 1

#

ends with OBEY

#

COBOL: book edition

small nova
#

Did you say Irish?

#

Or I misheard it?

whole bear
#

please help

vocal basin
whole bear
#

why

vocal basin
#

because assignment not comparison

whole bear
#

oh

#

thanks

#

still getting error

vocal basin
#

remove x

#

though

#

eh

#

wait

whole bear
vocal basin
#

what should the function do?

small nova
#

What should Result "X" be doing?

whole bear
vocal basin
#

so, I'd assume you want to assign x == 42 to result, right?

whole bear
#

it wants to check

#

if the result is 42

#

if it is

vocal basin
#

therefore you're just missing = between result and x

whole bear
#

then the result is true

vocal basin
#
result = x == 42
#

I guess

whole bear
#

now

#

is in line 3

vocal basin
#
def f(x):
small nova
#

def f(x):
if x == 42:
return True
else:
return False

somber heath
#

Accrue.

small nova
#

Have the code.

vocal basin
#

bad style

small nova
#

I just typed it in a hurry.

whole bear
#

idk XD

vocal basin
somber heath
#

"Look at me. I am the bank, now."

small nova
vocal basin
#

!code

wise cargoBOT
#
Formatting code on discord

Here's how to format Python code on Discord:

```py
print('Hello world!')
```

These are backticks, not quotes. Check this out if you can't find the backtick key.

For long code samples, you can use our pastebin.

small nova
#

Cool, Thanks.

vocal basin
#

```py
code
```

whole bear
#

thanks finally

#

thanks all guys

small nova
#
def f(x):
    if x == 42:
        return True
    else:
        return False
#

Better now. Thanks Yu.

vocal basin
small nova
#

I got to change the ` button, I assigned it as my microphone button.

vocal basin
#

and if you're not, then:

def f(x):
    return x == 42
small nova
vocal basin
vocal basin
whole bear
#

guys thanks for the help

whole bear
#

its working now

small nova
#

🙂 👍🏻 Ggs man

whole bear
#

so always i use the if function like this

vocal basin
whole bear
#

the condition

#

inside

#

the function

#

def

#

right ?

vocal basin
#

depends

vocal basin
whole bear
#

i did that

#

did not work btw

#

not on my

#

exercise

#

cuz is saying to use condition

vocal basin
whole bear
#

yeap

small nova
#

Is it an Exercise from an High School Book?

whole bear
#

no

vocal basin
#

seems like some site

somber heath
#

👩🏪🐚👋🏖️

small nova
#

Pretty much those are the ones that always specify conditions in a weird use case.

whole bear
#

true but its a website

#

ngl is not bad

#

for learning

small nova
#

What's that?

whole bear
#

for example

#

i never touch python im a network admin

#

im learning now

vocal basin
#

SICP uses Lisp as the main language

whole bear
whole bear
#

and watching some yt videos books etc

vocal basin
#

at this point, Java is just a worse C#

#

worse front-end, worse back-end

#

worse corporation responsible for it

small nova
small nova
vocal basin
#

sadly

small nova
#

Yeah.

#

C# is worse, worse than Java in my Humble Opinion.

vocal basin
#

any specific example?

#

(feature/whatever)

#

((except for "it's just a ripoff" argument))

#

dll for dotnet

#

(core)

#

which is now just .NET

#

obviously won't work with .exe

#

or any packaged executable

#

but, if launched via dotnet from CLI, should work

#

framework is dying somewhat

peak copper
#

@rugged root

rugged root
#

Also same

#

It's a conference that holds a bunch of different talks on tech subjects and specific Python stuff

#

That's the talk schedule

limpid umbra
#

does anyone do gardening or hydroponics

terse needle
#

picon

limpid umbra
#

secret link

amber raptor
limpid umbra
#

Rusty is that you ???

#

how many attend pycon

#

claenest city i have ever seen

#

if your really cool , someone sends you tickets

meager raven
#

hey guys can i ask some quetions

meager raven
#

can someone tell me why after the elif part not working

somber heath
#

You will only ever enter the first if, never the elif.

#

They have the same condition, and the if is before the elif.

meager raven
#

owhh tq

#

but idk how to solve it

vocal basin
#

easy fix:
just never find yourself in a need to use ChatGPT

rugged root
#

Why's that?

vocal basin
#

I can't pay from it

vernal needle
#

maybe Bing AI :))

vocal basin
vocal basin
vernal needle
#

I have used Bing AI and it's seem like Chat GPT :)))

vocal basin
#

it's all just GPT-based at one point or another anyway

vernal needle
#

but more slower than chat GPT

vocal basin
#

I saw it used by someone in Rust community discord

#

I have no reason for me to use it so far

rugged root
vocal basin
#

phind.com uses a lot of stuff in the back-end
it's like
google + asking GPT to summarise, I guess

#
  • a bunch of other stuff
lunar mulch
#

Groundbreaking New AI

look inside.

GPT-4

rugged root
#

In fairness I'd do the same for your exam questions

vocal basin
#

still waiting for a moment when trying to explaining something to an AI actually makes sense beyond rubber🦆ing

lunar mulch
#

Hemlock got promoted to customer I see

somber heath
#

A rogue ant.

vocal basin
#

open/close source?

#

@heavy flame people can't choose to commit to something without knowing what it is

rugged root
#

This one?

vocal basin
#

assets are often close source

#

in dice (but plural)

rugged root
#

True

limpid umbra
#

well look at his website ..............

vocal basin
#

creative commons or what's it called

#

"yeah, quite a lot of people like getting paid in money"

#

payment in shares (or equivalents) instead of payment in cash is beneficial for the company

thin breach
#

try matlab

vocal basin
vocal basin
#

or Wolfram

#

(wolframscript is free if that's necessary)

#

(R is free)

#

jams allow using openly available art often

#

if it's pre-published

#

and is CC0

#

or something similar

rugged root
#

I'm still confused how unsupervised model training works. It feels like it'd get into a feedback loop

vocal basin
#

... then you have to do extra work to prevent issues

rugged root
vocal basin
#

there is a way to allow remote testing

#

or ways

#

ways

#

@willow light
eval(x.__repr__()) == x is often True

#

I hope I pinged the right person

rugged root
#

Sample snippit of input:

3,225,1,225,6,6,1100,1,238,225,104,0,1101,86,8,225,1101,82,69,225,101,36,65,224,1001...
#

I'm failing at 82

willow light
#

what if instead of

while True:

you tried

fn main() {
  loop {
#

rust moment

vocal basin
rugged root
#

I can give a quick summary

#

So it's reading through a list integers, and using those to execute operations.

vocal basin
#

cosmic rays incidents do happen

vocal basin
#

almost destroyed a couple of planes

elfin moth
#

what about quantum entanglement

vocal basin
willow light
#

!e

fn main() {
  loop {
    println!("again!")
  }
}
#

huh

somber heath
#

Ant sirs.

rugged root
#

Aw

somber heath
#

"How does your client plead?"
"Hurrrrgggh!"

rugged root
#

And now I'm imagining little ants in suits of armor

#

This is so aggravating

molten pewter
#

slægur

#

æ

vocal basin
rugged root
#

What did you do?

vocal basin
#

I'd expect it to be code[code[pc+const]]

digital wagon
#

I get A+ every time in my english class, but after joined you guys vc for like 5minutes, i know myself now that i am noob at english, i understand nothing🥲

wind raptor
#

sushi pizza

vocal basin
#

I saw it get changed

#

someone was constantly disconnecting

#

or sent to AFK

#

because discord

#

they were active

#

it was just discord acting up

#

they were talking too

#

oh

#

I remembered

#

it was Lemon

#

Lemon's virtual mic was connected both to real mic and to DAW
it could've been affecting the discord behaviour
technically he was speaking but not touch the mouse/keyboard

#

someone in the call at that point changed

#

wait

#

generally

vocal basin
#

it was 2 months ago

#

so could be in audit still

#

I was checking how audit keeps logs some time ago

#

I think it was 2M

molten pewter
maiden skiff
#

Break time~

maiden skiff
molten pewter
stuck furnace
#

Shrek 2 was alright 😄

#

2001 is kind of boring tbh.

vocal basin
#

somehow managed to win 4x4x4x4/40
a cursed experience

#

how
how did I screenshot it so asymmetrically

#

"#include <Python.h>"

still olive
#

Interesting , I need to talk for like 50 messages

vocal basin
#

Cython helps writing C extensions

#

just wrap Fortran libraries with Python and call it Python being efficient

still olive
#

I mostly do Data Science stuff , so I never did anything (valid) outside of python after university , honestly I know it is slow but I never really seem to write something where it matters

stuck furnace
#

👋

lucid blade
#

Before Bond, there was #LayerCake

Based upon JJ Connelly's London crime novel, Layer Cake is about a successful cocaine dealer (Craig) who has earned a respected place among England's Mafia elite and plans an early retirement from the business. However, big boss Jimmy Price hands down a tough assignment: find Charlotte Ryder, the missing rich p...

▶ Play video
#

^ that is also soooo good

#

@terse needle ^

stuck furnace
#

Cya Chris 👋

lucid blade
#

1# 'target'
ffmpeg -f x11grab -b 8000k -r 30 -s 800x600 -i :0.0 -f rawvideo - | nc 192.168.1.100 5678

'recorder'

nc -l 0.0.0.0 5678 > raw.video #1 `

stuck furnace
#

Cya 👋

north smelt
#

ay bois

#

anyone here ?

marble cave
#

Object Oriented code in python interesting

old heart
#

extra protein

whole bear
#

pls i need help

#

on this exercise

#

it says its wrong

#

but the output

#

is giving me false when he is not over 18 so its correct i think it can be done like this way but idk what is my mistake

#

thanks bro

#

lol

#

why i dont understand do

#

sorry for my newblet questions but im a network admin not programer

#

yes when its and your drunk happens

#

?????

#

3,0 €

#

not 30

#

XD

#

you must be joking

#

??' how is that possible axaxaxaxaxa

#

your lucky don t speak me abt food im starving cant eat at night

#

x D

#

yeah lol

#

True

#

but its hard to refuse

#

ansxety 1 human 0

somber heath
#

@upper mirage👋

upper mirage
#

hi

#

I already solved all of that stuff.

#

Now I just need to upload

#

Huh

#

Why

#

It works fine

somber heath
#

@versed minnow👋

versed minnow
#

yes

#

@somber heath yes opalmist

somber heath
#

You joined. I waved. You left. You joined. I greet, you greet, we all greet together.

somber heath
#

Yahoy.

#

I'm flipping between here and a help post, so I'm not that agile.

elfin moth
#

hello guys

warped raft
#

hello @rugged tundra

#

how are you doing

#

@somber heath hello

somber heath
#

@versed minnow👋

#

@whole bearHoy hi.

#

English is my only proficiency.

#

I'm decent.

#

@pulsar island👋

elfin moth
#

same

whole bear
vocal basin
#

without diacritics it's usually spelled as "Yuu"

vocal basin
# vocal basin

I don't remember German commonly using anything other than umlaut

vocal basin
noble solstice
#

Guys, U r talking about geopoltics

gentle flint
#

gtg

#

back later

vocal basin
#

Japan had awful intelligence service in the first half of 20th century

#

that might have influenced some decisions too

#

league something

#

League of Nations

lucid schooner
#

hi

#

i am new here

#

i live programing with python

#

ehhehehhehe

#

lets go

#

lets go

#

guys this is not spaming

#

pls dont ban me

somber heath
#

They understand. They just choose to not see.

#

Because the alternative is that they feel a boot on their face.

rugged tundra
somber heath
#

@hexed skiff@hardy gale👋

hexed skiff
#

👋

hardy gale
#

👋

somber heath
#

A group.

#

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

@lucid schooner

lucid schooner
#

what

#

whats up

#

answer

somber heath
#

...

#

I was just letting you know about the voice verification channel.

#

It has the instructions you need to follow to pass the voice gate and unmute.

#

I got the impression you were talking to Mr. Focus about not being able to talk.

#

@reef seal👋

#

@rancid raft👋

vocal basin
#

"the outline" for code is way harder for code because it requires actual conscious and weighted choices

#

editors are expected to be somewhat competent

#

ChatGPT isn't in any way

#

it will decrease it

#

immensely

#

it will decrease the quality.

#

it already does.

#

and increase the amount of garbage

vocal basin
#

" yeah, that is definitely spelled 'koulor' not 'colour', trust me "

#

you'll have to drive a car in US anyway

somber heath
#

Yes. Generalities are not true in all cases. That makes sense to me.

vocal basin
somber heath
#

Jam tomorrow. Jam yesterday.

#

The Arles Amphitheatre (French: Arènes d'Arles) is a Roman amphitheatre in the southern French town of Arles. Two-tiered, it is probably the most prominent tourist attraction in the city which thrived in Ancient Rome. The towers jutting out from the top are medieval add-ons.
Built in 90 AD, the amphitheatre held over 20,000 spectators of chariot...

#

You can use them to give you terms to go on to research.

#

If you're asking a model, you should be careful, lest it's Zoolander.

#

Hoy hi.

#

@small sorrel👋

rugged tundra
woeful salmon
#

@molten pewter 👋

small nova
#

Hello people!

somber heath
#

Does the existence of right angles imply the existence of wrong angles?

#

@rigid marsh👋

#

@whole bear👋

small nova
#

Bro don't call it a "Silly" game.

#

CSGO ain't silly.

#

It has been in the top charts on steam even after being released like years ago.

#

It can't be dethroned! Excited for CSGO2

somber heath
#

Data massaging?

small nova
#

What?

#

What's actually going on? Paper Hot Dog?

#

I'd like to have it with some Mustard too.

somber heath
#

Data kimchi.

#

Fermented, spicy data.

woeful salmon
#

i've never had kimchi that makes me want to try it

whole bear
#

guya

#

i want

#

to

#

be

#

game dev

#

what

#

i must learn

small nova
small nova
woeful salmon
#

i will look up which ones i can find in india

small nova
woeful salmon
#

you can later try and implement your own if you want to but for most people at the start its good to start with a popular engine like unreal or unity or sometimes if you want something more free (not in the financial sense) then some graphic library like raylib or pygame

#

it makes it quicker to get a visible result which makes it more fun

small nova
woeful salmon
#

i just need to buy another ssd

#

my hdd slows it down too much :/

small nova
woeful salmon
#

nanite and lumen are amazing and let you make realtime really cool looking lighting with good performance and raytracing is fun to play with

#

they are even adding a new texture system and even a system to procedurally generate landmasses while having control over it too

small nova
small nova
#

Man damn, these are insane! 🔥

woeful salmon
#

games as a hobby*

small nova
#

That's cool man!

#

I picked up a camera then, I figured I love Coding as much as Cinematography and Photography!

woeful salmon
#

ye he makes some amazing stuff man i'm still learning to how to replicate what he does slowly but steadily

small nova
#

Taking it slow always helps.

woeful salmon
#

yeah

whole bear
#

no one talking?

woeful salmon
#

people are talking

#

i'm just listening though

whole bear
#

ah, aight i m having some issues then

#

i ain't hear no nothing

small nova
#

Bro I wanna Identify as a Black Penguin!

#

Please!

whole bear
#

just change ur nam

small nova
#

👍🏻

#

🤣

whole bear
small nova
#

Lol.

whole bear
#

learning french was nightmares for me

#

i broke my jaw serval times

small nova
#

Lmao.

#

Lemme share you a meme.

whole bear
#

I wish I had time learn another language rn. I feel like it opens up so much other perspective. Reading news in other languages...

#

I like turtles

small nova
whole bear
#

i’ve been living in france like 5yrs my classe mates still makes fun of my accent

whole bear
small nova
#

Make sense.

molten pewter
whole bear
#

I have this linguist in my other discord. speaks like 11 languages, freaking impressive.

whole bear
#

I need to stop procrastinating and just study.

#

jesus

small nova
#

0-15 is childhood?

#

Thanks a lot @somber heath Appreciate that!

amber raptor
#

US has two status of "citizenship"

small nova
#

Dual Citizenship.

woeful salmon
#

Under The Indian Citizenship Act, 1955, Persons of Indian Origin is not allowed DUAL Citizenship. If a person has ever held an Indian Passport and has obtained the Passport of another country, they will be required to surrender their Indian Passport immediately after gaining another Country's nationality. @amber raptor @molten pewter @somber heath

small nova
whole bear
#

Ive been pretty intrigued by the property rights in other countries. Like for foreign nationals to invest in Dubai they can only be leaseholders.

woeful salmon
small nova
#

🙂 👍🏻

woeful salmon
#

i eventually want to move to somewhere close to denmark too

#

i have indian friends who have a job in denmark so it'd be pretty cool to live there

small nova
#

They are like, Cool. Pun intended.

vocal basin
#

it's not fun here

small nova
#

Lol. Wanna meet my guy Putin.

#

Have a chat with a shot of Whiskey.

#

I'll die in peace then...

small nova
somber heath
#

Yeah, those border force shows are very "ooga booga"

vocal basin
whole bear
#

I have no health insurance right now. It’s kinda horrible 🤷🏼‍♂️

vocal basin
somber heath
#

...I don't play Brawlhalla.

small nova
whole bear
#

In the U.K. they’ll send a bailor to your house to collect debt.

#

@amber raptor how do these credit repair companies operate to discourage collections then? Just kinda curious.

#

(In the US)

#

How can collections companies acquire original documentation?

amber raptor
#

But how bad the documentation is shocking: https://www.youtube.com/watch?v=hxUAntt1z2c

Companies that purchase debt cheaply then collect it aggressively are shockingly easy to start. We can prove it!

Connect with Last Week Tonight online...
Subscribe to the Last Week Tonight YouTube channel for more almost news as it almost happens: www.youtube.com/user/LastWeekTonight

Find Last Week Tonight on Facebook like your mom would:
htt...

▶ Play video
small nova
#

Where's Hemlock today?

#

Alright Imma head to sleep! Good night folks 🙂 "If it's a night for you"

serene skiff
woeful salmon
#

i gotta go now

#

see you guys later

#

it was fun to listen in 🙂

serene skiff
#

byeee

somber heath
#

End of tax season office holiday or something.

serene skiff
#

what is this chat is about

#

cool i am just evesdropping nice to meet ya

maiden skiff
#

hi~

#

What are you talking about now?

somber heath
hexed skiff
#

can someone update me about the topic of this call?

somber heath
hexed skiff
#

this code is going through 113000 lines of txt but i'm still worried why it is taking so long

vocal basin
#

how long?

hexed skiff
#

nvm i think i figured it out ( i didn't )

hexed skiff
vocal basin
#

otherwise it's NameError

#

also

hexed skiff
vocal basin
#

i sees to never be updated

hexed skiff
#

for the last if to work it needs to read all the lines...

vocal basin
#

it definitely should be for not while

somber heath
#

fin looks like it ought to be a parameter. Structural comment, nothing to do with why it's not working as you'd like.

vocal basin
#

for i in range(len(word) - 1):

#

I'd expect this to throw an error sometimes

hexed skiff
#

usually i don't use in range because i don't how it works exactly

vocal basin
hexed skiff
#

my usual is
for letter in word

#

for element in list1

vocal basin
#

!e

print(*range(10))
wise cargoBOT
#

@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.

0 1 2 3 4 5 6 7 8 9
hexed skiff
#

ooooh

#

thx

vocal basin
#

it should be outside the while loop

hexed skiff
#

i've been trying since 10am to make this function work properly, since it's an exercise for the book i'm reading i don't want to skip it

vocal basin
ivory horizon
#

are there enough people for code clash?

#

hehe

vocal basin
#

I still prefer proper programming, of software engineering level rather than puzzles

#

with emphasis on things other than speed of writing or compactness

ivory horizon
#

do we have games for that pithink

vocal basin
hexed skiff
#

i will play some league of legends so i can refresh my mind, i've been coding since i woke up

vocal basin
#

I thought it was only 500

hexed skiff
ivory horizon
#

what you are working on yuu

vocal basin
#

distributed storage

ivory horizon
#

oh, is it public, or like personal

#

the project

vocal basin
#

proprietary, for now
it will be made public later, when rewritten in Rust

vocal basin
#

so far maths for AI was the easiest part for me

#

or one of

lavish rover
#

ok smarty pants

vocal basin
mild quartz
#

we got a megagenius here

lavish rover
#

C H A I N R U L E

vocal basin
vocal basin
lavish rover
#

for me it was more like
"go optimize resnet convolutions"
"help what's resnet"
"figure it out"

vocal basin
#

"gifted and talent student" sounds weird
like, segregating students/employees in groups "based on performance" is fundamentally fucked up

mild quartz
#

i went the opposite way, math is what makes it interesting

vocal basin
mortal crystal
#

#leave mustafa alone

vocal basin
#

Beryllium

#

ig

#

I was absolutely unable to study in the university
but somehow was able to help other people

#

Russia/USSR has similar thing with Demidovich
(book with every question possible and commonly named after its author)

#

but people making exams are usually able to add at least a little bit of variation to the problems from the book

vocal basin
#

this edition I found is only 4460 exercises

#

so this one doesn't cross into "thousands of pages" category

vocal basin
#

there's also 'static being a "subtype" of all other lifetimes

#

same strangeness as contravariance

#

"zucchini is a berry actually"

#

t.i.l.

mild quartz
#

i had a physics class with a polish theorist

#

who did the soviet math education

#

and expected us to know from memory all of the series expansions

#

and would just expect us to make approximations from first term of series expansions that nobody knew

stuck furnace
#

You could learn how to cook 😄

mild quartz
#

and if you didnt do it you couldnt continue in the problem because it didnt have analytical solution

#

i have nightmares about his classes to this day

vocal basin
#

for 4 months, that I attended university, calculus and programming were the only fun ones

mild quartz
#

yeah so you could derive them but exams were impossible to finish on time

vocal basin
vocal basin
lavish rover
vocal basin
#

"just use f80"

#

long double

#

use approximate cryptography

#

!d array

wise cargoBOT
#

This module defines an object type which can compactly represent an array of basic values: characters, integers, floating point numbers. Arrays are sequence types and behave very much like lists, except that the type of objects stored in them is constrained. The type is specified at object creation time by using a type code, which is a single character. The following type codes are defined:

vocal basin
#

!e

from array import array
from math import pi

print(array('f', [pi])[0])
print(pi)
wise cargoBOT
#

@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | 3.1415927410125732
002 | 3.141592653589793
vocal basin
#

"if you really want lower precision"

lavish rover
wise cargoBOT
#

@lavish rover :x: Your 3.11 eval job has completed with return code 1.

001 | 3.1415927410125732
002 | Traceback (most recent call last):
003 |   File "/home/main.py", line 5, in <module>
004 |     print(type(pi[0]))
005 |                ~~^^^
006 | TypeError: 'float' object is not subscriptable
lavish rover
#

oh lmao

#

!e

from array import array
from math import pi

print(array('f', [pi])[0])
print(type(pi))
wise cargoBOT
#

@lavish rover :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | 3.1415927410125732
002 | <class 'float'>
lavish rover
#

fair

#

guess it needs to be wrapped

vocal basin
#

yes

lavish rover
#

but that's probably even more memory inefficient than just having a double

#

if you just want 1

vocal basin
#

!d unittest

wise cargoBOT
#

Source code: Lib/unittest/__init__.py

(If you are already familiar with the basic concepts of testing, you might want to skip to the list of assert methods.)

The unittest unit testing framework was originally inspired by JUnit and has a similar flavor as major unit testing frameworks in other languages. It supports test automation, sharing of setup and shutdown code for tests, aggregation of tests into collections, and independence of the tests from the reporting framework.

To achieve this, unittest supports some important concepts in an object-oriented way:

vocal basin
#

e

#

w

#

what

#

that's so bad I forgot you talked about it alreadyu

#

my brain can't store that

#

"that's clever but it's disgusting even by my standard"

#

Jupyter piping?

ionic reef
#

Anyone feel like chatting?

vocal basin
mild quartz
#

brb

stuck furnace
#

List comprehensions have a scope

vocal basin
#

function scopes may seem private

#

(closures)

#

but not fully

#

oh

#

we had (automated) data cleaning as an exercise in school

#

on real data downloaded

#

this way we found out whatever's generating CSVs doesn't remove newlines from fields

#

so rows get split randomly because the person entering the data accidentally pressed enter when they shouldn't have

#

@lavish rover if you make them use aecor, you can then quit a month later and get hired as a consultant for twice the pay because you're the only one who understands what happens

#

"just don't implement global scope"

#
  • have your modules being able to return values