#dev-general
1 messages ยท Page 271 of 1
;-;
?help
ยป Give the helpers some details
ยป Ask suitable questions
ยป Be polite
ยป Wait
if it's a development question I suggest #development as you'll get better/more support
@brazen cairn
and what's so special about that
damn
i'll run you async in a minute java
hmm, would it make sense to run a notification event (player join) as monitor?
yes
How would you make this lambda a method reference? I'm confused
value -> value != null
@prisma wave ๐
Objects::nonNull iirc
bruh
i have a referral link for the foo thingy
idk who to give tho
lol imagine if you sold them
xD
lol
What's the command for tree again
Lol
What tree?
rip Bimultimap doesnt exist seems like
why would it
doesn't make much sense
do you want a many-to-many relation or what
yoooooooo
if i had to update armor stands every tick
say like 100 of them
would it hit performance hard?
just updating locations
alright so if anybody knows cpp, how and I supposed to concatenate a string with int when the function return type is *char? xD
string test = "aaa"; return &test[0]; ?
yes
hmm
terminate called after throwing an instance of 'std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator< char> >' any idea why I get this?
ew using namespace std?
Ah the lovely c++ syntax
bad practice my boy
is an error stfu
not talking about the error lol
๐
Context?
what are you even trying to do
hmm๐
You use exceptions in cpp?
@frigid badge What would you say is better, Thymeleaf, Freemarker, or something else?

I have to Oliver
Oof, how would you do a backend + frontend mix?
if you want server side rendering that badly might as well use nuxt
@ocean quartz wdym?
Basically trying to learn a bit more about that stuff, so to learn was thinking about making a dashboard like website with a ktor backend, just didn't know what to do for the frontend portion of it
My go to thing is to just have a REST API backend
which I mostly make resource based so it's incredibly easily setup and requires almost no code.
and then a frontend being something like vue
or I guess angular
whatever you prefer really.
Hmm okok ty going to try that, I've used vue before a bit, was thinking about learning React for this since it seems to be getting popular
react has always been more popular than vue
and it seems that vue is actually going to become more popular than react
but they're not really different from each other
other than that in vue you write your templates by default in html (optionally in jsx) and in react it's always jsx
i thought vue was just a frontend library
does it have utils for rest apis and shit?
Alright, might go for Vue then, now to learn how to do this stuff, it'll be fun
well technically it's still powered by a backend but it's supposed to be the frontend yes
Mojang's implementation for the GlowSquid annoys me probably more than it should
they just set the block light level to 15 for the squid
:L
o
Oh boy
the particles it uses are pretty at least
will have a gif of that in a bit once I get the new particle ids
oh wait did they launch a new snapshot"?
yeah came out this morning
is he as disappointed as I am
who is xisumavoid
I always had low expectations for the glow squid but this is ridiculous
The glow squid is stupid
yeah
o
illager
or whatever it was called
would've been cool
because apparently it was suppose to add a new attack or something
The chillager is what I like calling it but that wasn't the actual name
whys it stupid?
a cool youtuber.
It doesn't glow
๐
yeah chillager. forgot it. that's what I used to call it to
it does nothing useful yet other than drop glowing ink sacs which you can apply to signs to make the text what I assume is 20% brighter
and you can make item frames with a different texture oooOoOoOOoo /s
๐_ _
glowing moss
oh right. because the squids pissed on it.
lol
That isnt glowing
that too
it emits a light level of only 7
THATS not GLOWinG
How can i make an armorstand perfectly ontop of a player no matter where they move n stuff
like i dont want it trailing
Set it to the player's passenger
can passengers have location offsets too?
or nah
say i want it like half a block lower
not really, you can make the armor stand small or large but that's about all the offset you'll get
that's a good idea actually
for player names or whatever
not my idea. I'm to dumb for that. someone else recommended a while ago xD
Is it possible to make it so when someone types /anvil it brings up a anvil
The damn squid doesn't even glow wtf
did you see the code snippet I sent of how they make it brighter?
but a lot of people were stupid
also it doesn't even have an animated texture
the particles are nice tho.
I guess
This new update is so fucking retarded
there a way to just stop portal sounds server side
Yeah i saw, but i was expecting it to at least glow a tad lmao
probably
they said it won't matt. before the vote even started
but a lot of people said it will and a lot of people believed them
People should have voted for something different smh
What's the squid called
How is it a glowing squid if it doesn't glow
It just has a brighter texture
yeah
Fucking dumb
Link
here
Someone go tweet to stop being dumb
So it just changes the block light level?
ye
dynamic lighting 
xD
ye let me just summon 1000 thousands invisible squids around me
and hold a torch in hand
and say I have dynamic light
It doesn't even work if you did that
It doesn't light up around the squid
Only the squid
That's erm..
Well the particles are pretty
That particle isn't bad
wait until I show you the other one
It looks like the panda sneeze but worse
I'd mix them with end rod particles
@obtuse gale Emits 0 fucking light
LMAO
mojang changed the data packet format for the dust transition particles again ffs
Kek
How can i do armor stand on player without using passengers because i want the location of the armor stand to be exactly the player
I should mod the game to make the glow squid emit light but it's hard to set up a modding environment for snapshots
๐ฆ
hard aka basically impossible
Mojang will be like: "It will emit light when using the RTX!"
never adds rtx support to java edition
or can i move player passengers down
Mojang can go suck a dck
Tp the armorstand to the player every tick
PlayerMoveEvent xD
or what Matt said
machine learning to predict where the player is going to go owo
jk please don't do that it's a terrible idea
xd
Please do that i wanna see it
no chance
the 1.17 snapshots have already added 10 new particles
I know nobody asked but I love particles so there's a fun fact for you
that's my favorite one added so far, dust color transition
fades from a starting to an end color
โค๏ธ
I like to mix the end rod particles with some subtle redstone dust ones + maybe the ones from the totem of undying
and here are all the rest
https://gyazo.com/22f9519b9c5eda6cbe972f158c4c034a
kind of hard to see some of the ones in the middle but they're nearly identical anyway
I like sparkling things lol
look at the vibration particles in that gif tho
They take a starting position, travel time in ticks, and an ending destination of either a block or entity
I just have it picking random blocks in that one
Ooh
Right, because it's blocks/entities that make sound
Speaking of which, those blocks work surprisingly well
Haven't experienced any lag with those on massive amounts
the sculk sensors are strangely optimized
it shows that clearly mojang knows how to optimize properly, they just choose not to lmao

@frigid badge You got a feature list for mob coins perhaps? So I don't have to write the basics myself
That reminds me, still need to finish chat reaction eee
I have made a React project, am I a front end dev yet? Where is my money?
Ikr! Took me a while to do it!
I can imagine. The colors go so nicely together. And good on you for including the link to learn react in case others want to build a similar site!
also next js better 
Trying to learn front and back end, this will be fun
good luck lol
I've used Ktor before which is pretty nice, but react scares me
i liked using next. itโs jsx so same syntax as react, but sever side rendering so you get faster load times, and also i liked the way the project was laid out.
also typescript is fun to throw in if you like that
Yeah i wanna see if i can do typescript instead
itโs basically the exact same just create-typescript-react-app instead
and all JS is valid TS so you can type as little or as much as you want
Oh lord
It actually forms an arrow ๐
xD
It's actually beautiful in a weird way
is bm online?
Bm is always online
@prisma wave did the tutorial drop
true
Imma try for tomorrow but I really don't have a guarantee date
Whenever I have enough time to make it adequate quality
ok lol
I mean editing isn't really the problem, all I need to do for that is find the right takes and make a few cuts
imagine you can have server mod packs which just load on join, would actually be so cool
similar to resource packs
there are so many things about that screenshot that I hate
also what's with people naming things in the worst way possible?
you literally just have to describe what something is in the variable name and your code is 20x easier to read
Idk, people are too lazy to write words, so they use dumb letters for everything
is having e for events bad?
Yes
๐
If only there was a smart software that would suggest how to name your things right, then maybe people would do it ๐ฅบ /s
event takes too long to type
...
im too lazy to spend 0.1 seconds to type it all out
hell, you can tap e and then tap tab and it'll also auto fill "event"
How dare you say that after i literally sent an example lol
oh- oops-
๐ฅฒ
if u really dont want to type event dont type e at least type evnt
Wtf, why would you?
That's not about laziness anymore, that's just worse
Fans are waiting 
๐ฎ
the thing u mentioned in #794429923698802708 isn't simple btw
lol
^^
well
No one is going to do that for free I bet
^^
idk
Wait lemme check and I'll quote you for me to make it
just use like auttaja
ok
or something
i want my own bot
ok
because then u got full control
prob like $10 though
it isn't too complicated
if ur willing to do it id pay it
With or without hosting tho
local?
yes
then probably just $10
local host
I would do it for $10
im still thinking of what to add on it so i might add on later
btw @late grove do u use jda?
Yes but no
I don't for bots, but I do for my spigot plugin
=plugin DiscordX
would u be able to do tickets and make it send embeds
what is discordx ๐
use discord srv its better
Excuse me
wait wat do you use jda or discordx?
what
I made DiscordX
It's $20 now
๐คฃ
how long would it take to complete
lol
ill be afk for ~5 min rn ill brb
Ok
no xd
oh
what do u use
javacord?
py?
what will i need to install for it to run
superior
python is not
if its like a second of delay for whatever command thats fine idc
ok
Gotta love html
maven be like
the outermost <> </> isn't necessary there if you wanna reduce one level of it
unless you're planning on adding another div inside or something
So many divs which could probably be restructured
Oh yeah i know, just playing around with it
sounds good
finaly it let me put the request in the #794429922454142986
When I ask if a plugin supports 1.8 users in a 1.16 server ๐ข
Well they aren't wrong
the are right



it's that time of the day again https://www.reddit.com/r/programmingcirclejerk/comments/l17d0a/youre_supposed_to_start_out_by_teaching_them/
105 votes and 26 comments so far on Reddit
lmao the replies are great
[cpp] any idea why random ASCII characters would be displayed on console?
lmao
That can't be serious
yeah (*char) (*) (*void) x is much easier to understand than hello world
confusion
******
It's the programming takes compass
this one is on the other end but still insane https://www.reddit.com/r/programmingcirclejerk/comments/kn1uw9/why_are_we_teaching_kids_javascript_and_not/
Pp instead of the message that is returned by a function ...
Ppยฒ (lol)
I think I've postet that here before
now we just need to find the other two corners
That username seems familiar
hmm
โช
โโ```
Man wtf
seems normal
We've got FP-jerking and pointer-jerking
its a feature
Maybe FactoryBeanProvider-jerking
that's good, yeah
So I made a discord bot but it says that the bot is online even though I didn't run the code yet 
sometimes they chill online for a bit after you stop them
it didn't finish building
it's been building for like 30 seconds so i just stopped it, anyone know why?
Oh god
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
SLF4J: Failed to load class "org.slf4j.impl.StaticMDCBinder".
SLF4J: Defaulting to no-operation MDCAdapter implementation.
SLF4J: See http://www.slf4j.org/codes.html#no_static_mdc_binder for further details.
[main] INFO JDA - Login Successful!
[JDA MainWS-ReadThread] INFO WebSocketClient - Connected to WebSocket
[JDA MainWS-ReadThread] INFO JDA - Finished Loading!
```idk if this has to do with any of it
That's one of the worst things I've ever seen
That's happening at build time?
and if you go back a few seconds before that timestamp you'll see something even more beautiful
its happening when I press Run
its jda
public class DiscordTestBot {
public static void main(String[] args) throws LoginException {
JDA jda = JDABuilder.createDefault("token").build();
}
}
```this is my code
I'm kinda scared
then it stays loading
Bro delete that token!!! You're gonna get hacked
too late
ooOps
you need a logger lib
i already crashed discord
implementing slf for java
HA
@half harness im pretty sure it should show an error of where it crashed
no no
bc it was taking forever
o
sadge
weird
It won't count as "finished" as long as the program is still running
that's what gradle run does
OK
yes but is your test like starting a discord bot
just confirmed with this that your test code is in fact the code for a discord bot
test code?
you were asking about tests in #development and your thing is DiscordTestBot so im thinking you are trying to run unit tests
So I have these 4 classes that extend exception (cpp), any idea why one of them which is basically this
class Test : public exception {
private:
string cont;
public:
explicit Test(string cont_): cont(std::move(cont_)) {}
const char *what() const noexcept {
string s = "Contul " + cont + " nu exista.";
return &s[0];
}
};```
Keep printing random characters / symbols in console instead of the actual message?
ehm xD
oh lol
just ignore me
ok ill move to #development anyways
Where do you print it?
try {
// code that throw exception
} catch (exception &e) {
cout << e.what() << endl;
}```
Whats your output?
throw Test("something");
no like what does it print?
yuck
what do u use instead? ๐ฎ
tell your prof it makes it considerably slower
you don't use exceptions
I mean you can
but yuck
you check/handle the returns instead
hmm so what's the point of throwing exceptions then?
uuh can't you return s.data()?
it returns a pointer to the first char
seems to run fine for me gab
you can use them
but it's frowned upon
takes more resources as well Ig
can I give you the full code yugi?
it definitely is more expensive
๐ I forgot that sending message event for JDA would also trigger if the bot sent a message and I made it sent a message when a message is sent in the discord... ๐ฌ its spamming my chat right now
when you enter a try block, cpp makes a lot of checks when you enter and exit a function
I just copy pasted what you sent easier, but sure
hmm yeah
I mean "it gets heavy" in terms of c++ performance capabilities lol
it's still incredibly fast
but nowhere near as it could be without it
ye true
stfu
That still seems to print fine for me gab
xD
wondering what makes clion upset
oh wait
Contul roberat nu exista.
gaby I know what's going on 
Thats what I got
yea that's good
you are creating the string on the stack
and as soon as you exit the function it poofs
idk much cpp
so the pointer is pointing to garbage data
probably
looks like creating the exception message on the constructor and then returning #data() fixed it, hmm
like cont(std::move(cont_) + "blah")?
nah
istringstream iss(operatiune);
vector<string> args{
istream_iterator<string>{iss},
istream_iterator<string>{}
};```
Is this ok for splitting the string at space?
what is that supposed to do 
similar to java's String#split(" ")
I found it online
@obtuse gale can I not open a file from project's root without providing an absolute path?
afaik std::fstream(std::string) is relative to where you're running the program
(or whatever the constructor is lul)
doesn't seem to find my file ๐ฆ
uuh how does the code look like and how are you running the program?
ngl Java's Path is very comfortable to use lol
Java's whole file IO is very comfy compared to C++ ๐ฅฒ
mm I'll get back to you later ๐ food's done cookin'
ok
Becoming a react pro here, please where is my payment, professional front end dev
Just had to re create the project like 5 times, nothing more
๐ฌ
angularjs is being rebuilt?
@distant sun I'm back uwu
Book Title: "Introduction to Algorithms"
Number of Pages in Book: 1,177
Does this sound introductory to you?
lol
would it be hard to code a interface on a local website for a discord bot
it shouldnt be hard, as long as you know how to make a website in the first place
idk how i was just wondering if i could ask harry if he could add it in
if its not too hard he might do it for the same price
๐ฎ
he went to bed a few hours agao
so i havent asked him yet
asking is duty free
i sent the message he hasnt responded yet
I mean in that case the best one to answer is him, he knows the environment he'll work with and around
Might need a spoon too
@obtuse gale hey
hehe Elara go brrr
I think someone is about to disagree with me
probably
What did you say bucko
because your point isn't entirely true
I said something along the lines of "this argument is pointless because the majority of languages have a purpose"
this argument is never going to go anywhere if it's about which language is better. Neither is better unless one of them is a meme language. Every language has a purpose unless it's so antiquated and inefficient that no one in their right mind would ever use it.
That's true in theory, but it's undeniable that different languages are better for different scenarios
this point is true but it is unrelated to the discussion
indeed
at least the one I was trying to make
didn't some guy interpret the discussion as "rust better"
that's his problem
I understand that that wasn't the point being made
but when you talk about programming concepts and one side keeps interpreting it as an attack on their favourite language it doesn't work
I see
yeah, people need to be more open to criticism and learning new things
it's the same mentality that most of the kotlin "haters" use, "java is fine so why do we need anything else"
Yeah, you don't have to assign yourself to some language circlejerk tribe
except elara of course
apart from the elara circlejerk tribe
Do I like C++? No. Do I ignore everything about it because of that? Also no
It's an incredibly interesting language
btw bm almost fixed that map#merge issue, I rewrote the way methods are indexed in memory to provide more specific searching
pls just make an issue next time tho instead of tagging me
d;map#merge
int size()```
Returns the number of key-value mappings in this map. If the map contains more than Integer.MAX_VALUE elements, returns Integer.MAX_VALUE.
the number of key-value mappings in this map
lol
tbh I'm probably going to stick with Java because Java is what most people making these plugins are comfortable with. I'd like if people have the option to pick apart my plugin to see what I did.
are you sure it's fixed
After I've finished writing my article about Clojure Spigot plugins everybody will migrate
lmao
o.o
are you actually making that?
Yes
:o
It's too long already
The brackets still haunt me
o bm u misunderstood me, it's only fixed in localhost, haven't pushed yet
K O T L I N :}
oh okay
๐ฅฒ
makes sense
I'm sitting at 4500 words and I'm still in the middle of explaining the plugin
lmao
xD
doesn't clojure spigot kinda suck because spigot is so reliant on OOP?
so it's not very idiomatic
johnny would my spigot challenges be helpful in learning clojure through spigot? https://github.com/PiggyPiglet/Challenges
simply rewrite spigot so it works well with clojure
Yeah the idea of the article is to explore if Clojure works with Spigot
Time to make it happen!
spiglijure
๐ฎ
for who?
๐ฎ
That word feels tongue-twitching for me 
eh, wouldn't really recommend it. Too many unorthodox things you have to resort to
okie
afaik spigot isn't a great way to learn cuz like i said, it's really not very idiomatic in terms of all of the interop hacks
spotlin
there are lots of other great resources for learning clojure though https://gist.github.com/yogthos/be323be0361c589570a6da4ccc85f58f
why is everyone ignoring my point about recreating spigot
bm replied to it
there's not much you can say lol
I thought you were replying to the resident clojure enthusiast
thanks johnny
not sure clojure is what I'll go with, but I would like to eventually become fluent in another language apart from java & frontend web langs
C# should be easy enough
preferably something different from java
pretty sure clojure is a decent alternative for java for stuff like backend design
Definitely
I'd just try it out, write some stuff with it and then think about whether you want to use it more, rather than make a decision about your next "main" language upfront
project euler or COC things are usually a good way to practice, that's what i usually end up doing to learn a new lang
yeah probably should actually try out these languages before making a decision
list of languages I need to try in no particular order is kotlin, go, and clojure
all pretty different lol
i've done a tiny bit in kotlin but not really enough to make a decision
have read a fair bit of kotlin code though
Kotlin is probs the easiest since you can just rewrite a spigot plugin or something
yeah that's a benefit
I can follow my challenges which originally helped me learn java
yeah
since in jda when someone sends a message it just gives a string of the whole message, I'm thinking of splitting it into args, after removing the prefix with replaceFirst.. I have 2 questions:
- Do you guys think this is a good idea?
- Is it possible to replaceFirst with a regular string and not a regex? (So that I don't have to escape any characters)
- yes
- you can escape the regex or use String#indexOf and String#substring
public int indexOf(Stringย str)```
Returns the index within this string of the first occurrence of the specified substring.
The returned index is the smallest value k for which:
this.startsWith(str, k) If no such value of k exists, then -1 is returned.
the index of the first occurrence of the specified substring, or -1 if there is no such occurrence.
str - the substring to search for.
-_-
oh
that's the one
oooo thx ๐
Its search is a little weird indeed
yeah i'm working on it rn
I swear I fixed that reverse thing already
anyway should be fixed completely in the next update
d;jdk String#subString
public String substring(intย beginIndex)
throws IndexOutOfBoundsException```
Returns a string that is a substring of this string. The substring begins with the character at the specified index and extends to the end of this string.
Examples:
IndexOutOfBoundsException - if beginIndex is negative or larger than the length of this String object.
the specified substring.
beginIndex - the beginning index, inclusive.
just go to 5
so just ```java
String prefix = "?";
String command = "?help";
int index = command.indexOf(prefix);
String finalString = command.subString(index);
well I'm trying to make it configurable ๐
so that someone can use like somebotprefix
so you don't need the indexOf, just slice the first n character off
where n is the prefix length
string.trim()
it removes whitespace off either end
allows people to do this ? help
and trust me, lots do
thx ๐
d;jdk String#trim
public String trim()```
Returns a string whose value is this string, with all leading and trailing space removed, where space is defined as any character whose codepoint is less than or equal to 'U+0020' (the space character).
If this String object represents an empty character sequence, or the first and last characters of character sequence represented by this String object both have codes that are not space (as defined above), then a reference to this String object is returned.
Otherwise, if all characters in this string are space (as defined above), then a String object representing an empty string is returned.
Otherwise, let k be the index of the first character in the string whose code is not a space (as defined above) and let m be the index of the last character in the string whose code is not a space (as defined above). A String object is returned, representing the substring of this string that begins with the character at index k...
This description has been shortened as it was too long.
a string whose value is this string, with all leading and trailing space removed, or this string if it has no leading or trailing space.
kool
command.subString(prefix.length());
command.trim(); @half harness pinging to remind myself
.length isn't a field on strings
oh
fixed ๐
int count = 0;
for(Char x : string.toCharArray()){
count++;
}```
what

thats the pro gamer move
Char isn't a class
lol
smh
substring returns a new string dkim, strings are immutable
so you're trimming the result of the substring
not the original string
what too much kotlin does to a mf
oh, thanks :)))
command = command.subString(prefix.length());
command = command.trim(); @half harness pinging to remind myself
How does one get the last letter on a string
let length = string.map((_) => 1).sum()
kotlin has a getlast or something like that
str.toCharArray()[str.length() - 1]
int count = 1;
Map<Char, Integer> letters = new HashMap<Char, Integer>();
for(Chat x : string){
letters.put(x, count);
count = count + 1;
}
int lettersInString = letters.get(string.toCharArray()[string.length() -1])
o tf
diamond operator
List letters = new HashMap 
and neither Char or Chat is a class
Chat X
lmao
id like to see you do better
also i know i literally use string.length() at the end but
but
string.chars().sum()```
no
that won't work
string.chars().mapToObj(String::valueOf).count()```
what are you guys even doing lol
(--> (s)
(map int)
(map #(/ %1 %1))
(reduce +))
inefficiently getting the length of a string
aight
will I become as good as you soon ๐
count = count + 1;```
```java
count++```
idk
๐ข
count = count-1;
oh mine actually works
i consider it bad practice to use i++ instead of ++i
because you should always be able to use ++i instead of i++
for (Character c : string.toCharArray()) {
Thread.sleep(Long.MAX_VALUE);
}```
String.MAX_VALUE
(defn length [s]
(if (= (count s) 1)
1
(--> (s)
(map str)
(map length)
(reduce +)))
Recursive ๐
This is why I hate clojure
py uses spaces for syntax while clojure uses () lol
your isp will go to sleep
underscores?
yes
u can use underscores in numbers
man I had an idea a while ago for a collection of really simple algorithms done in n! time complexity
java 8 added that or smth
this would be fun
aww man that command
COC if you wanna join anyone. k bye
good idea bm
I may be able to perform it as well one day
The hell is that method naming
you dont use that convention?
:o
@obtuse gale @steel heart @quiet depot @prisma wave @distant sun @half harness joining? xD
cum has 3 letters aj :3
is that even possible?
;-;
double factorials are a thing
blitz no need to finish comission
according to my google search
ik
hmm
they're used in probability and things
but idk how you could even make something that performs that poorly
let me finish comission so you can play COC. because COC is nice.
you can use it to calculate the amount of things on a rubiks cube cant you
docdex has a search time complexity of o(n) afaik
thats the only reason i know what factorial does
Thread.sleep(Long.MAX_VALUE)
looking up anything
that technically doesn't perform at all
well it's either o(1) or o(n)
if there's a direct match it's o(1)
otherwise if it searches, o(n)
that makes sense
d;jdk thread#sleep
public static void sleep(longย millis, intย nanos)
throws IllegalArgumentException, InterruptedException```
Causes the currently executing thread to sleep (temporarily cease execution) for the specified number of milliseconds plus the specified number of nanoseconds, subject to the precision and accuracy of system timers and schedulers. The thread does not lose ownership of any monitors.
IllegalArgumentException - if the value of millis is negative, or the value of nanos is not in the range 0-999999
InterruptedException - if any thread has interrupted the current thread. The interrupted status of the current thread is cleared when this exception is thrown.
nanos - 0-999999 additional nanoseconds to sleep
millis - the length of time to sleep in milliseconds
and as far as I can tell so far, they're not useful for docdex at all
but research is research
ok think we're starting
might find something
yeah it's o(n) but still takes 700+ms
that's half of what it was a few days ago
made it parallel
oh damn is this Pythagoras
yea lol
i gtg
u guys always get the easy ones when I don't join ๐ฆ
Cant prove it wrong can you
fucking rounding
wait I didn't have to do floor if I did toInt in kotlin did I?
you got the normal cumshot , understandable, then fucking EXTREME
these are the g's
Wait.. didn't I share my code?
stupid .net
yeah I floored and casted
then I realised I can just cast
I think this is the first time in 2 years I had to use Pythagoras
what? what do you do with it every week
@distant sun technically Thread.sleep(long) is O(1) if we view it relative to another algorithm that even has a notion of a variable n
@static zealot even the roblox game I'm about to code also involves it lol
