#ot1-perplexing-regexing
1 messages Β· Page 537 of 1
in Java, even though your IDE would of course generate them, it'd look like:
class MyClass{
int x = 5;
int getX(int val){
return x;
}
void setX(int val){
x = val;
}
}
In Kotlin it's just roughly:
class MyClass(
x: Int = 5
){
var x = x
}
or even:
data class MyClass(
var x: Int = 5
)
and it works exactly the same - it's not just a field, it has autogenerated setters and getters, and you can make them non-trivial if you want
development environments would generate code for something like this? 
rightclick-generate getters/setters, yes π
how would Java programmers live otherwise
or shift insert, i think
that is actually kind of cool.
ooooh yeah, crashing again!
java can do that too
you can auto generate constructors in intelliJ π₯΄
record Point(int x, int y) {}
i can hear the segfaults now.
if you're on Java8, you're out of luck
why would be on java 8?
though I suppose it might be possible to use it, I'm not sure how backwards-compatible Java is with regards to language version/JVM version
mostly is
fabric works with new java
forge afaik too, though worse due to how it hacks around classloading
I think before the newer versions at least, Forge needed Java 8 strictly
not sure now, but doubt it went all the way to 16
if it works with 9, it is very likely it works with all new java versions
actually, only up to 14
since it relies on nashorn
which is removed in 15
16 is released

the tides have turned.
large emotey
Note that Minecraft is a lot more okay with newer Java versions than Forge
you are using Fabric, right?
currently, yeah
i never understood the reason behind them just making a new system.
was Forge code that messy?
or..?
mostly I'm just learning modding, though - since I don't play fabric, I doubt I would mod for it
gives you something to do.
from what I heard, a nontrivial amount of reasoning behind it is that Forge devs are, well, by and large assholes

(like, not Forge-using mod devs, but developers of Forge)
they just want to see everyone suffer.
Forge has this mentality of "mods should have limited scope"
π€¨
which a lot of people consider sacrilige
no, in terms of how much they change the game
i feel like that defeats the purpose of modding, but i guess that is why people consider it sacrilige.
Merry Christmas everyone!
Parody of Jona Lewie - Stop the Cavalry
Animation by Ciaran: http://www.youtube.com/user/Ceeraanoo
Music by Jason Bentch: https://twitter.com/BentchIMightBe
β₯ T-shirts and jumpers: http://yogscast.spreadshirt.co.uk/
β₯ Subscribe: http://www.youtube.com/subscription_center?add_user=bluexephos
β₯ Get partnered on YouTube:...
@clever delta after reading it more closely: there is one potential thing
if you use the ISS pass times API, that does mean that you can actually send them data
so if it's over HTTP, someone with access to the network could potentially read that

Ok, I assume that shouldn't be an issue since the data is just lat longs? Unless its a location you want to keep personal?
@sand inlet
yep
if it's an issue if someone looking at the network can read that location then that's an issue 
but if you're not concerned about the data being private it's fine
coolio
...well, there's actually another potential issue with HTTP: someone with access to the network could also give you fake results
but if you're also not concerned about that then it's fine

correct
hm
@viral parrot thanks for the suggestion
uh
@muted pebble thanks for the suggestion
@vapid nymph what suggestion
Guys, I have a question. Say I have the below print("HI") Would a stack based interpreter turn it to something like this? LOAD_VALUE PRINT_VALUE And if it does, when the instructions are being executed, how does the VM get access to the Hi inside of the print?
No I ain't lol
I dunno
LOL
lmfao
@fading sequoia why do you stuff hashtags like #HTML?
ok
makes sense
#womenwhocode 
It'd be parsed into something like that, yeah.
!e
import dis
dis.dis("print('hi')")
@gritty zinc :white_check_mark: Your eval job has completed with return code 0.
001 | 1 0 LOAD_NAME 0 (print)
002 | 2 LOAD_CONST 0 ('hi')
003 | 4 CALL_FUNCTION 1
004 | 6 RETURN_VALUE
Oh ok, thanks :D And the values get appended to a constants table, right?
so what actually happens here is:
- An instruction
LOAD_NAMEwith argumentprint- it puts that name (which resolves to a function pointer) to the stack - An instruction
LOAD_CONSTwhich adds"hi"to the stack - An instruction CALL_FUNCTION with parameter 1, which I assume means "take 2 (the argument + 1) elements, call the last one as a function with the rest as arguments".
isn't the Python VM stack-based?
Isn't it?
Oh, alright, thanks :D
oh wow, TIL this exists: https://leanpub.com/insidethepythonvirtualmachine/read#leanpub-auto-introduction
I should probably read that one day
Ooh cool
damn
banjo
amogus
this meme sucks
no
Imo it's quite easy to make quick bursts in the 15 second tests
I get bored midway in the 1 minute test
lol
cool
Not quite sure what to do about this though, I feel like I need to either push the title in or pull the content out
centre both π₯΄
The title keeps aligned with the other sections so I can't quite do that
Well, on desktop at least
I could do this but the asymmetry is meh
Maybe if I had an image on the right side, which I don't
or, I could just center and be done with it Β―_(γ)_/Β―
mhm
if only there was a dark mode π
and in the first phrase on the testing prompt from the tutorial, it calls out Rust
{'generated_text': "Hello, I'm a language model, I didn't want to work with another language like Rust. I'm making more time for Rust. I just"}
workin' on it
goooood
I seem to have grown fond of this bordered style
{'generated_text': "Hello, I'm a language model, so I'm very familiar with basic syntax, and things like that. If you come to this, I know most of your language skills (it doesn't matter what language you speak), but just because we are"}
scary
urgh, I like the sentiment but I hate when people do it
There are competetions and once you see the hastag, you know its pointless joining as a man
woahhh what this?
monkey type ig
bruh wtf
lol
If you think this is bad, check out this thing gpt2-medium generated:
Greetings, human. I'm a language model, and I'm also the leader of the most violent, anti-people crew in New Eden. I've decided to disband my corp, and turn my attention towards bringing our new alliance into power. After your request, it should go without saying that no ship of mine or any ship belonging to your organisation can appear again in your local systems. I expect it only those from my alliance who have proven themselves capable of standing with my cause. So, we'll all gather with my new crew in the skies of New Eden and fight for the good of New Eden. Farewell, human." He then left the console.
In a message sent through the EVE System Slack, Liao's followers explained that he was "not done with you yet." As a result, they decided to form into an entity named the Valkyr Alliance.
Several months after his departure, Liao received a new console. Shortly after launching, he told
or this:
Greetings, human. I'm a language model, a linguistic researcher, trying to develop a new kind of language. I'm going through quite a big learning curve. You've met me.
I am a language model using an artificial neural network model of conversational fluency. As you may already know, the only language in the world without a grammatical stem, to translate something to us is in Esperanto. At the moment, in Esperanto, the grammatical stem seems to be an object; as such, it is very hard to produce intelligible sentences like: 'Mate, what is the fruit on your plate?' Without this "instrumentality" - the idea that you can say something without saying, for example, 'I buy them', this is something that needs to be studied and tested in many languages.
That said, I'd like to propose an alternative approach. Instead of using a standard grammatical stem, we could actually express ourselves using an
spam
what are you fine-tuning @gritty zinc ?
my code isnt compiling D:
worrying
this guy is so adorable
One of the best moments in the series
Joel dying?
I respectfully disagree
having Abby kill him with a golf club is not the way I expected him to go out
I think that's driving the message home in a way that's very in line with the series
This is a really messed up situation in a messed up world
It's not a fairy tale
I would have been fine with Joel dying any other way
Any other way?
he could have turned into one of those zombie things
it just feels uncharacteristic of Joel to just be like oh yeah I'm gonna help you
and then he trusts Abby
the Joel from the last game literally ran people over because he thought they were faking needing help
I just don't understand why they made him so naive
I don't think he was particularly naive in that sequence, from the sequence of events that happened
It's easy to reason in hindsight, like with so many things
In hindsight, knowing what's going to happen, his decisions are naive
but up until that point, it wasn't exactly that weird to see him help here in the game
but when those people were asking for help in last of us 1 he just said they were faking it
bc he did it before
The situation here was quite different in that he has been living in a city for a long time that had been taking in people that wandered into the area
I disagree with Ellie even letting Abby survive
it would have sold the message more if Ellie had just outright killed Abby
showing vengeance corrupts everyone
when Tommy introduces Joel and him to Abby Abby's attitude completely changes
Those streamers just look like they wanted a nice little story but got an actual story
and also there's 12 or so armed people inside the building
there's no way why Joel wouldn't have been on high alert
Just like all the people who couldn't handle the events in RR Martin
Sometimes stories are just that, cruel and horrific
and it's not like Joel is incapable of taking out large groups
Joel literally wiped out the entire hospital
on his own
Tlou didnt need a part 2
yeah that too
I felt the events unrolled quite naturally
In that beginning sequence that is
There are some twists in the later parts of the second game that were a bit weaker to me
Nope I refuse to believe he was that naive
At which point?
They don't suspect a thing at that point yet
he sees Abby's entire display of emotions change when his name is mentioned
and he doesn't suspect a thing
that's ridic
And he wasn't exactly free to not enter that compound
I just refuse to believe he gets caught like a deer in headlights
He does suspect a thing
that is not how I envision Joel
but he's shot in the knee right after that atmosphere change
he shouldn't have willy nilly followed Abby in either
wats lemon doing 
he doesn't even need to save her
He didn't have a choice. They were chased by a horde and they made it out by making it inside
I think the events leading up to that point, when you don't know what's going to happen yet, make sense
They certainly made sense to me the first time around
Obviously, in hindsight, you just don't want to accept what happened
but I just now watched a playthrough again
And it really does not feel naive or unnatural way before it happens
let's just agree to disagree
We're biased now; we know what's going to happen
It's difficult to deal with a main character you're rooting for going out like that
But, for me, it fits the story
I didn't root for him I thought what he did was wrong
when he saved Ellie
I thought what he did was wrong
but I still don't think beating the guy who killed your father to death with a golf club solves anything
surely not, but that kind of irrational behavior is very real
It happens out here, in the non-game world as well
hello seba
Aight how many of these names are @bleak lintel related
lol
π you have a link BTW?
to what
To not click on, but looks interesting enough that I want to, but isn't, but it is, and then I end up clicking
Fitting
Lol
||ned stark||'s death really threw everyone off didn't it
made a discord clone using Tailwind CSS. How does it look?
it was expected considering how much of an idiot he was
i didn't expect it tbh
you don't really see 'good' people die that early too often
ehh yeah jeoffrey was evil
hm
tada my highest
man
loo
lol, you are a slow learner
you only do 15 seconds?
nah, i do 30 usually
o
o
mainly i miss the space and i get errors
i haven't tried 60 and 120 from a while, lets see what is the current score
punctuation makes my wpm go ππ
i do withou punctuations
lol that one gets caught by the firewall
nothing yet, that's the pretrained one
Silence of Moment for https://pythondiscord.com/premium
How can i put this back? Plz help
bru
Can you use toothpaste as thermal paste?
only once
thanks
is that a long term solution
Linus tech tips did a good video on this
Tooth paste was better than using too much normal thermal paste
anything in smaller quantities - similar to tooth paste would be better tahn too much thermal paste
doesnt mean anything tho
that is quite the progress
I took way too long staring at the plot trying to figure out what it is before I thought to check the axes
Thatβs fantastic π
very fast :)
hi.
Hi
I'm at 0:26
I saw a tiny spider in my room and I refused to go in my room for the entire day
fuck 0:59
I hate arachnids and bugs
lmfao I watched it fully
π€£ π€£ π― π
I cant believe BBC put that thing
in the end
is it edited? or did bbc really put that in the end
doesnt look edited
Suggest more topics here!
Bill Gates.
to upload the source code of Windows to github so yk π contributions from all people and privacy breach exposΓ©
.topic
I'm sikk and tired of drinking tea everyday morning and evening.
I love coffee
I puke whilst smelling milk and even worse when its coconut milk
maybe you didnt watch the whole video
oh
or you are living under a rock so as to not to understand the joke (jkjkjkjk)
find out for yourself. I dont want to ruin the joke
hmm k
yes
ur sus
I don't even feel like it's Whedon's fault justice league was crappy
it's WB's
they hired Whedon to make it more like a Marvel movie
and he just did what they asked
and then they made him the fall guy
and now everyone hates Whedon
whedon made a couple of marvel movies too didn't he?
hm
it was terrible
lol
the worst avengers movie I ever saw
but even with all this set up from the new zack snyder justice league cut
I don't think there will be a justice league 2
but I am open to being proven wrong
they did invest 70 M into this cut
it wouldn't make sense to invest all that money and then do utterly nothing
Please stop fucking spamming
you can report them to modmail if you have trouble w it
my mom's soup ! .... I so miss her and her soup too !
is it just me, or are you guys bad with naming your projects
@rough sapphire well you havent seen the filenames yet. real_test_socketconnection_v1_3_realversion.py
lol
R/jokes
A politician visited a village in Haiti after a devastating hurricane.
Upon arrival, he asked what their needs were.
βWe have 2 basic needs sir,β replied the villager.
βFirstly, we have a hospital, but there's no doctor.β
On hearing this, the politician whipped out his phone, and after speaking for a while he reassured the village leader that the doctor would be there the next day.
He then asked about the second problem.
"Secondly sir, there is no phone coverage anywhere in the village.β
.
Why would you post that here?
tbf I read back and each post is different so uh
I actually don't really care and I'm not staff so
idm
Ok, but I'll stop anyways
I have this code in python
# file1.py
data = 'hello world'
# file2.py
from file1 import data
print(data)
How would I do the same in Rust? I know I can create a function in file1.rs that will return "hello-world" but I don't want to create a function.
if you wont create a function, you wont even be able to use let @sour forge
let can only be used inside a function
only thing you can use is const
not sureif you can add a pub const though Β―_(γ)_/Β―
hm wait i think i did this
yeah, you can
// file 1
pub const DATA: &str = "Hello World"
``` ```rs
// file 2
mod file1; // the filename
fn main() {
println!("{}", file1::DATA);
}```
does anyone know a good ruby server
thanks
also what is the python equivalent for Trait in Rust?
:[
you could just use inheritance i guess
create a class with the trait method
and inherit wherever you wanna use
yeah got it
i am learning rust traits so i thought if there was a python equivalent, it'd be easier to understand
python is OOP rust is not, so kinda hard to directly compare
i think its some kind of hybrid lol
data oriented apparently
its has OOP features, but its not exactly OOP, its has functional lang features, but it is not functional
jack of all trades master of none
why is inheritance evil
I agree. But its also very difficult
Wtf is use of moved value &self?
What am I doing wrong here?
It serves no practical use aside from arbitrary examples; over-reliance on it for "inheriting code" says that you probably should restructure the current codebase, provided that it isn't monolithic and beyond saving
django codebase goes brrrrrr
My guess is that it has something to do with self.word.into_iter
But I'm not too familiar with Rust so Β―_(γ)_/Β―
or use &mut self instead
i think you meant to do self.word.enumerate()
and also yes, &mut self
you wont be able to use the instantiated object anymore, without &
one sec
the change_character_at_index is making it more complicated
since its just a single line function
do you really need it
why not just do it directly?
okay i did that
hmm
so is enumerate consuming the value
let me check its source
what is the type of word ?
basically, I am trying to enumerate over a custom struct named Word. Is that possible (commented out code)?
if it applies the Iterator trait yeah
but your enumerate is consuming the type
hmm
try self.word.iter().enumerate()?
it says not method named iter for struct Word
hmm
just saying but
ur Word struct has only 1 field
so why dont u make it a tuple struct
thank god for self and not this
What language??
rust
That makes sense. Will do.
@sour forge whats that theme u got there
also what should happen when u iterate thru ur Word struct
#help-falafel <- my life has meaning now
(im referring to the name not the contents of the channel)
vscode extension id larxx.invictus
when i iterate through an instance of Word, it should iterate over word.word
yes yes
yes I figured that out but I wanted to learn traits
ah ok
so basically i want to be able to do for letter in word where word = Word { some_data }
i see
have any clue how to do it?
oh yeah soory
i meant word.iter()
the book said I need to implement Iterator trait or something.
I tried to but idk how to
u already did
now just look at the error
it will tell u that u need to implement something else
well apparently u only need to implement next
okay i will try it later. thanks
https://github.com/Shivansh-007/piston-cli/releases/tag/v1.3.0 New release publish tada π
that low contrast really irks me
Calls into the GH API and creates a database entry is pretty much the gist of it
unreadable art
this mostly makes sense to me, but I need more context to understand what it actually does
also, unsafe bad
@topaz aurora hey bud I just need to ask something I'm sorry for the ping But I wanna ask this what role will I get If I boost, a classic booster or nitro booster?
I'm planning to do a classic boost
coz thats what I have
Nitro Booster I believe, although I'm not quite sure as I haven't bought it for myself yet
Try asking around in #community-meta
ok
hello everyonoe
sup
no random memes please
@ancient minnow please read the off topic ettiquette in the channel topic
brave yet controversial meme
Damn thats the symbol of a chad
github has dark mode? nice
python is useful for bruteforcing the answers of my math problem
^ oh lawd he comin
might be faster in a list comprehension
values = range(-100, 100)
[(i, j, k) for i in values for j in values for k in values if not i-2*j+3*k and not 3*i+3*j-k]
holy
Why the if True tho
just ran it (with an edit) and it is indeed fast
smart
list comprehensions have optimisations because they run at C speed
so I can write a short algorithm in the terminal
it is fast
I dont see how it helps tbh
mmmh it's an old habit, here my first statement was a loop so it wasn't necessary indeed
you can just start with for, it will work the same
yeah I'm too used to automating stuff
listcomps are a bit more optimized than loops, indeed, but I won't call them "running at C speeds"
%%timeit
lst = []
values=range(-100,101)
for i in values:
for j in values:
for k in values:
if not i-2*j+3*k and not 3*i+3*j-k:
lst.append((i,j,k))
# 1.15 s Β± 64.9 ms per loop (mean Β± std. dev. of 7 runs, 1 loop each)
%%timeit
values = range(-100,101)
[(i, j, k) for i in values for j in values for k in values if not i-2*j+3*k and not 3*i+3*j-k]
# 1.09 s Β± 33.6 ms per loop (mean Β± std. dev. of 7 runs, 1 loop each)
Cython speeds it up by a further 30%:
778 ms Β± 23.8 ms per loop (mean Β± std. dev. of 7 runs, 1 loop each)
woah
I tried several ways and I think found a blazingly fast one
%%cython
def f5():
lst = [(i, j, k) for i in range(-100,101)
for j in range(-100,101)
for k in range(-100,101)
if not i-2*j+3*k and not 3*i+3*j-k]
return lst
this one is:
6.12 ms Β± 169 Β΅s per loop (mean Β± std. dev. of 7 runs, 100 loops each)
which is insane; like a hundred times faster
maybe it got optimized away?..
wow!
nope, it didn't get optimized away, but all the inner loops were made into C loops
weird that it took a listcomp inside a Cython function for this to happen
actually, I can't know if it didn't get optimized away, hmm, not without reading the asm
finally found what i was looking for but i think it is much slower:
from itertools import product
[(i, j, k) for (i, j, k) in product(range(-100, 100), repeat=3) if not i-2*j+3*k and not 3*i+3*j-k]
itertools.product returns the cartesian product
itertools is really good, but product in particular can't really be faster than just for-loops
I really gotta read into itertools some time
itertools is really good for its less-trivial iterators
like combinations, permutations, etc
they are implemented in C, so you can't make a Python function that matches their speed
Can someone ELI5 itertools
Like what could I use it for
Algorithms? Data structures?
Whenever you find yourself needing, say, all permutations of a collection, or stuff like that.
also has some helpful iterator-related functions
whatβs a permutation of a collection
all k-length subsequences of elements from it in which you can't use the same element twice
!e
import itertools
print(*("".join(map(str,tup)) for tup in itertools.permutations(range(5),r=3)),sep=" ")
@gritty zinc :white_check_mark: Your eval job has completed with return code 0.
012 013 014 021 023 024 031 032 034 041 042 043 102 103 104 120 123 124 130 132 134 140 142 143 201 203 204 210 213 214 230 231 234 240 241 243 301 302 304 310 312 314 320 321 324 340 341 342 401 402 403 410 412 413 420 421 423 430 431 432
all 3-length permutations of 0,1,2,3,4 for example
you can write your own algorithm for generating those, but it can't be as fast as itertools's, because, well, Python
permutations are ordered unlike combinations
see how 012 and 021 and 102 and 120 and 201 and 210 are all in the list of permutations
even though all of them are just one combination
yeah that's cool
Can someone explain what this quote from Ken Thompson means? "Actually, FORTRAN was the language of choice for the same reason that three-legged races are popular."
English is not my first language, and neither is FORTRAN.
not the slightest idea what they meant
Lmao how do I solve this
break it into 2+ functions?
Functions do that?
You can have too complex of a function?
damn I didnβt even know
oh ya god functions/classes
I have just never seen that error before
that's a flake8 error
Whatβs flake8
linter
Oh ok
yeah I had a problem where my linter kept disappearing in VSC
idk how I fixed it
yeah it takes a couple hours to fully get vsc set up properly
I've just kinda stopped using it
I use repl.it for ds/algos
Iβm not really doing projects right now
So there is no real use for an IDE for me
I've just been using pycharm for pretty much everything
if I need a 'scratchpad' for an algo or smthing ill just use the idle
Pycharm is good too
i mean... you download it and click on the sidebar and install a bunch of extensions?
ya and then half of those extensions don't work + conflicting extensions with different languages then half the keybinds don't work nvm setting up custom ones
π all of the extensions worked for me...
how many languages do you use?
which extensions conflicted with different langs?
rust, python, julia, java, sometimes c, c++
you need full visual studio for that or you need to configure a lot
ya idk it's not bad but id rather use a full ide
even if my laptop can't handle one
visual studio is a full ide...
vsc?
yes, some ppl i know like it a lot.
it uses clang by default i think
vs uses msvc because windowsβ’οΈ lol
compilers lol
@versed saffron Your nickname confuses and scares me.
sorry
although I don't know what it's pointing to.
story of my life
Lol
anybody there
not rn
should i pull the all-nighter?
is there such a thing where you're so tired that you're not or am i dying?
Yes
lol
lol
tfw part of your CI is building the Haskell compiler
Honestly takes faster than I thought it would
ok
lmfao
Seems about right
bruh
no u b r u h
This server is my guilty pleasure
#esoteric-python....
Tis my secret shame
oo
in python I can do assert a == b == c == d to test equality but rust has asserteq! which accepts only 2 arguments. Do I have to write a loop to achieve the same functionality of asserting 4 variables to be equal?
It would be fairer to compare assertEqual to assert_eq!
Both only take 2 arguments
Technically a == b == c == d is a single argument
Also apparent assert_eq uses PartialEq which doesnt guarantee transitivity
So you have to use multiple assert_eqs or make a new macro to do that for you
but the use case sounds common enough to me, doesn't rust provide a convenience function to do it?
assert!(a == b && b == c && c == d)
This should work ig
but still seems hacky
Idk, looks fine to me tbh
https://open.spotify.com/track/7fBv7CLKzipRk6EC6TWHOB?si=JGt9X-vUQ52WVuFg9GU2yQ&utm_source=copy-link such a good song
Lmao
Narrator: It was, in fact, the weeknd.
it is a nice song π
I like his mixtape the most
that was the darkest weeknd music I ever heard
and it was great
I am so desperate to write better essays
I am deadass reading books on how to write better essays
bc I am tired of getting Cs on every single essay I write
GUYS I GOT MY PROGRAMMING LANGUAGE TO WORK https://github.com/AbooMinister25/Lite
It cant do anything except printing though
nice π
who needs anything else though tbh
Lol
Thanks :D
Lol, i barely just started, so its unusable at this point
Can't do much of anything except print numbers
I still want to know how to print in Lite
Ik, height of creativity
@low chasm how do I install?
Well, you can clone the github and compile it with cargo
i'll be the guinea pig for your new features
Lol
xD thanks :D
so cargo build once I clone?
yup, slow
ok
Courtesy horrible rust code
niice
Ofc it is, its an unoptimized toy project and you didnt even build with optimizations
Pretty good, i was thinking of trying my hand at a vm for shits and giggles and possibly maybe learning
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.pydis.com/
After pasting your code, save it by clicking the floppy disk icon in the top right, or by typing ctrl + S. After doing that, the URL should change. Copy the URL and post it here so others can see it.
Lmao
Cool
I liked making it
Eh, those'll be gone later
lol
As for the variable warnings, I'd prefer to have my opcodes not be uppercamelcae
why π
Eh, what looks better LOAD_VALUE or ```
LoadValue
SCREAMING_SNAKE_CASE is generally the convention
Cool
but in my lang, they are PascalCase since they are enum members in haskell
Oh cool
SCREEMING SNAKE CASE should be otn
Lol
hm, channel names can only be lowecase :c but "screeming snake case" is still worth its own otn, even if lowercase
!otn a SCREAMING_SNAKE_CASE
Channel name must only consist of alphanumeric characters, minus signs or apostrophes.
!otname add <name>
Can also use: otname a
*Adds a new off-topic name to the rotation.
The name is not added if it is too similar to an existing name.*
only mod+
!otn a
!otn a SCREAMING-SNAKE-CASE
:ok_hand: Added π²π’π±π€π π¬π¨ππ¦-π²ππ πͺπ€-π’π π²π€ to the names list.
what-is-the-airspeed-velocity-of-an-unladen-swallow?
my language is called sycamore
We have a whitelist of invites that we allow.
How can I find the index of the second to last value inside a vec in rust?
Would it even be morally and politically correct to make an AI?
Uh
start a blog bro
Why bro
Yea i know thats why, but why?
!otn Socrates-like-theory
What does that command do?
errors
Adds a name to the list of off topic channel names
Uh what?
List of off topic channel names?
What does that do?
Im new i dont know these things
arent u owner of Volleyball 4.2
Off-topic channels
There are three off-topic channels:
β’ #ot0-psvmβs-eternal-disapproval
β’ #ot1-perplexing-regexing
β’ #ot2-never-nesterβs-nightmare
Their names change randomly every 24 hours, but you can always find them under the OFF-TOPIC/GENERAL category in the channel list.
Please read our off-topic etiquette before participating in conversations.
Oh lol
Does anyone find odd numbered fonts more appealing than even numbered fonts? Or am I just a weirdo?
#BatmanvSuperman: Dawn of Justice Ultimate Edition available to own on 4K Ultra HD Blu-ray now.
SUBSCRIBE to Warner Bros. Entertainment: http://bit.ly/32v18jf
Connect with Warner Bros. Entertainment Online:
Follow Warner Bros. Entertainment INSTAGRAM: https://www.instagram.com/warnerbrosentertainment/
Like Warner Bros. Entertainment on FACEBOO...
this looks so badass
it makes Batman look really evil too
with the music and all
When you accidentally skip to the last tutorial.
https://www.youtube.com/watch?v=aW2LvQUcwqc
The fictional Retro Encabulator device, which uses six hydrocoptic marzel vanes and an ambifacient lunar wane shaft to prevent unwanted side fumbling. We can't believe the salesman was able to keep a straight face.
Is grammarly high?
yeah thats pretty clear the message I was trying to convey in my random string of characters
lol
@jagged coral Its the most used text encoding in the world
It lets you put cool symbols and other stuff
Python3 is in UTF-8 you don't have to do anything to enable it
however in Python2 you have to put
# -*- coding: utf-8 -*-
in the top of your script *to enable it
o
Can anyone help me with node js
Why my fetch function take too long to respond
First fetch works quickly but next takes too much time
Ok
What is faster, a for loop, a while loop, or something else? In this video, we try several different ways to accomplish a looping task and discover which is fastest.
Code for this video: https://github.com/mCodingLLC/VideosSampleCode
interesting, later he uses numpy and pure python math as fastest solutions
Can't watch that right now, what's the fastest solution exactly?
Then how is that the fastest way of looping?
lol
Now i feel like the video is a click bait
When I've access to non limited internet access again haha
Mobil Traffic is heavily limited on my plan
3GB a month is not much
there is a reason math.factorial is much faster than any naive factorial function in any language for large enough number
There are no decent mobil boardband contracts
Nah, mobil discord is fine
Yeah I guess, it's only for math problems where a formula exists / solvable with numpy array
The while version has multiple things causing overheads, especially with the comparison and the addition; in a language like C, that task is trivial because of compiler optimizations and machine code.
Which is also why the numpy version is quite fast; the same overheads for while also applies for for. Ultimately though, just using math is the most trivial solution.
Math is always better than loops
I mean, unless there's recursion in there then we're basically looping again
But obviously if you don't need to loop not looping is the best
nice ot name π€£
Little scary but nice π
its scary when you create a mental image of someone doing it π³
indeed
a chonk
MEGAH CHONK
lol
@paper sequoia here
did you see the init file i linked?
the should_rotate function in that?
what did u understand by that?
yes it handles whether should the logger file be rotated or not
yeah
i want to see this with numba...
one of the comments suggested this i think
Let me see what numba is...
Numba is an open source JIT compiler that translates a subset of Python and NumPy code into fast machine code.
JIT π
Normal JIT does not work with NumPy or why did they add that in the statement π€
what is normal JIT?
Idk, ... pypy?
oh it works
I never used JITs
numba outperforms pypy in it's use cases (by a lot sometimes) :D
you have used java, right?
JITs are cool
Only Python and C
My name is aboo :D
Mhm
https://streamable.com/aclba5
Clickity click
I took a template and added the text, lol
you need to import annotations from future
not sure, you can just remove the annotations ig
The error happens because of the annotation, not sure how to fix it
On gurkbot, I fixed it my just importing annotations from future
Why, annotations arenβt really needed
Another fix is just keep it typing.Any
sudo apt install python3-pip
although
o thanks
make sure to sudo apt update first
o k thanks
apt keeps a registry of the available packages and their current versions
hm
so that when you install it knows which version to look for
but
it doesn't keep itself updated
so if it hasn't updated for a while then you won't be getting a recent version
aaand Hi :D
Hii :DD
how do you install pip
livebooting in a nutshell
what
yeah usb
oof
I installed sublime text and git many times this week π€£
Lol
harddisk is gonzo
sad
cant partition it to dual boot it
why not
Full hdd?
its like 1.98 <-> 2.2gb left. and the iso is 2.8 gb
yup
Oof
why um
windows took real good care of it π€£ π
Hm
can't you clean it up?
like erase windows?
are you sure you need all of that stuff lmao
nono
like
get rid of unnecessary garbage
How much space is your hdd?
28gb total. and just with the basic installation of windows, it was 7gb left
oh
i see
that is.. quite small
i'm honestly surprised windows even fit on that
and along with a shitty ms office. like powerpoint, excel and word
and kaspersky which is very heavy
If you can, stick it in your laptop?
No. my mother took this to a pc service center and when they inspected, there was only 1 slot for hard disks
I dont have the pocket money π€£
Oof, doesn't your dad use the laptop aswell?
even if I could replace it I need a new harddisk right.
yeah. like excel in this
Convince him that it'll be a great upgrade
only once a month
if I were to buy a new harddisk. I need to install windows again and ms office as well which is paid (and probably he wont buy it twice)
You wouldn't have to
I replaced my SSD in my laptop, and transferred windows over
hm
Just copy and pasted my windows install into another disk lmao
anyway. When a get a job.. a good pc is the first thing I'll buy
Mhm, it'll be a good upgrade
atleast one with more than 2gb ram π π―
Lol
libre office is dope. I made slide shows for my homework once using it
Buy a tower and upgrade it lol
Can you dad use that instead of excel?
but I had to convert to .pptx so that my teacher who uses the shitty os named windows can open it π€£
If he's set on using excel, there are ways to get ms office running on linux
Dont wait start applying
Easier said than done when you don't have a budget
Fair enough
it'd be hard to convince him. also I have a good reputation of fucking up in everything I do.
oh lol
SAME
wdym 'tower'?
Probably means pc
Like a desktop PC, not a laptop
I see.
They can be upgrade I have an Inspiron 3670 as my starter
If you don't game, 400 - 500 dollars should get you a very good upgrade from your current setup
I have an intel celeron

I think I have an i3 v7
Lol
i have a i7 but i dont wanna use it
I'm waiting for april 14th tho.





