#dev-general

1 messages · Page 136 of 1

frail glade
#

I had to revert back to 2020.1.3 to utilize my PC again.

hot hull
#

Dude, I'm on 2018.3 fingerguns_reversed

old wyvern
#

Update? Never!

#

😫

frail glade
#

Maybe it was trying to tell me about the bug in the placeholders 😂

old wyvern
#

IJ does sometimes not open for me and get stuck sometimes, but its pretty rare

#

im on 2020.1.1

frail glade
#

Yeah I reverted and all the problems stopped.

old wyvern
#

ah

obtuse gale
#

Checkout that arrow

prisma wave
#

nice screenshot

onyx loom
#

^

obtuse gale
#

My internets down lol

#

I’m on my phone

onyx loom
#

why the fuck it sideways

hot hull
#

What is this 2010 :kek:

obtuse gale
#

That’s how tf I take photos

onyx loom
#

fuckin wierdo

obtuse gale
#

The motion doesn’t look as weird irl

#

Like cos my phones in my hands on my desk so I just tilltrd it up slightly

#

Also

#

Only 7 months ago this was...

prisma wave
#

not enough clojure fingerguns

hot hull
#

Oh god that cast

prisma wave
#

I wonder if you can make plugins in clojure

#

@lunar cypress you know?

onyx loom
#

not enough clojure fingerguns
@prisma wave NO

prisma wave
#

yes

#

clojure good

#

no casting

#

therefore no ClassCastException

lunar cypress
#

lots of ClassCastExceptions because no static typing 😬

prisma wave
#

¯_(ツ)_/¯

lunar cypress
#

yeah sure you can make plugins with clojure but it's terrible

prisma wave
#

just write cleaner code

#

ah

onyx loom
#

lol

prisma wave
#

on the topic, how would you apply map to each list created by partition?

lunar cypress
#

Could you give an example?

prisma wave
#

like ((1 2 3) (4 5 6)) => ((1 4 9) (16 25 36))

lunar cypress
#

justed nested maps I'd say

prisma wave
#

Yeah I was thinking that

#

Doesn't seem to want to work though :/

lunar cypress
#

(map (partial map square) (partition 3 nums))

prisma wave
#

Pc being slow, will send code in a sec

#

but of the partitioned elements

#

not the actual elements

#

it's quite difficult to do functionally lol

lunar cypress
#

Well partitioning alone won't get you far will it?

#

Since 3 adjacent numbers in 123456 could be 123 or 234 or 345...

#

not just 123 and 456

prisma wave
#

I'm using a step of 1

#

which seems to achieve that

#

splits it into 123, 234, 345, etc

lunar cypress
#

ah all right

heady birch
#

🤢

lunar cypress
#

Yeah I tend to forget that it has that param

prisma wave
#

shush you

lunar cypress
#

Pretty nice

prisma wave
#

it is

hot hull
#

God I love: IntelliJ is not responding

prisma wave
#

so yeah, from there I imagined I could just do like (map #(reduce * %) (partition blah)))

onyx loom
#

i cant say ive ever had that frosty

lunar cypress
#

yeah right but that doesn't give you the digits

onyx loom
#

i must be missing out by the sounds of it Kappa

prisma wave
#

it only wants the actual value

#

I think

lunar cypress
#

Both things are fairly trivial

#

What are you struggling with?

prisma wave
#

I'm not sure tbh. The process makes sense in my head, I think I've just implemented it wrong

#

lemme send some code

#
(defn -main [& args]
  (let [arg-list (map #(Character/getNumericValue %) (apply concat args))]
    (let [max-prod (map #(reduce * %) (partition 13 1 arg-list))]
      (println max-prod))))```
#

however the outputted sequence has loads of zeros

onyx loom
#

make it kotlin, then find on an online converter website to clojure fingerguns

prisma wave
#

((5000940 0 0 0 0 0 0 0 0 0 0 0 0 0 etc...)

lunar cypress
#

just a side note: you can have multiple bindings in one let

prisma wave
#

ah cool

#

i'll clean it up in a bit

#

just really confused why it's not working atm

lunar cypress
#

What do you expect as the output? currently it should be a flat sequence of numbers

prisma wave
#

it is

lunar cypress
#

many of which will be zero since any multiplication with 0 = 0

prisma wave
#

...

#

oh yeah

#

lmao

#

I am quite possibly an idiot

#

ok second question, why does max do nothing? it doesn't seem to change the value of the output at all

#

(let [max-prod (max (map #(reduce * %) (partition 13 1 arg-list)))]

lunar cypress
#

max is variadic, doesn't take a sequence

#

you can use it with reduce

prisma wave
#

aha

#

apply max works too

#

probably should've read the docs lol

heady birch
#

How are you liking clojure?

lunar cypress
#

Or apply, output will be the same. But reduce is safer because it doesn't unwrap the entire thing (which can be problematic for large sequences)

prisma wave
#

ah so reduce is faster?

#

theoretically

lunar cypress
#

depends

#

I mean you can try such things quite easily with the time macro (although you won't necessarily get meaningful results because of jit and jvm warmup and so on)

prisma wave
#

yeah that makes sense

#

well, I got the right answer, so thanks for the help!

lunar cypress
#

I would prefer reduce in that case because it is more expressive here imo

prisma wave
#

I see

lunar cypress
#

Btw if you are looking how to actually return the digits, not just the product, you may want to look at max-key

prisma wave
#

Well the question was for the product, but that might be useful in future

onyx loom
#

How are you liking clojure?
i would also like to know this answer

prisma wave
#

you get used to it

#

I'm starting to figure out what it all means and it's actually quite elegant

#

everything is a list

#

I still prefer postfix (?) syntax rn, since it reads more naturally list.map instead of (map list) and isn't backwards

errant geyser
#

Everything is a fucking bracket mate

prisma wave
#

but it makes sense

#

function calling is just a list with the function name and arguments

old wyvern
errant geyser
#

I could not tell you what that does

#

There's like

lunar cypress
#

that is not surprising

prisma wave
#

lemme try convert that to kotlin

errant geyser
#

1400 brackets

lunar cypress
#

I doubt that you'd have a lot less parens in java

onyx loom
#

brackets 🙂

old wyvern
#

function calling is just a list with the function name and arguments
Wait what?

prisma wave
#

38 according to IJ

#

to call a function, it's just a list

#

(function-name function-args)

errant geyser
#

thats dumb

old wyvern
#

thats a list?

prisma wave
#

yes

#

(1 2 3) is the same

errant geyser
#

even dumber

prisma wave
#

how?

#

that pretty much exists in kotlin

errant geyser
#

if its a list it should be 1, 2, 3 not 1 2 3

lunar cypress
#

bruh

prisma wave
#

just with [1, 2, 3] (although only for annotations)

old wyvern
#

so each statement in a function is a separate argument to it?

lunar cypress
#

if you want to put commas there you can

prisma wave
#

yeah I think so

#
fun main(args: Array<String>) {
  val argList = args.joinToString("").map(Character::getNumericValue)
  val maxProduct = argList.partition(13, 1)
    .map { 
      it.reduce { a, b -> a * b }
    }.max()
  println(maxProduct)
}
``` I'm pretty sure that's the same code in kotlin
lunar cypress
#

I don't think such a partition function exists

prisma wave
#

no you're right

#

it doesn't

lunar cypress
#

You'd probably use iterate or something

prisma wave
#

windowed might work

lunar cypress
#

ah yeah that looks like the equivalent

prisma wave
#

yeah that works

#
fun main(args: Array<String>) {
    val argList = args.joinToString("").map(Character::getNumericValue)
    val maxProduct = argList.windowed(13, 1)
            .map {
                it.reduce { a, b -> a * b }
            }.max()
    println(maxProduct)
}
#

kinda gross though

lunar cypress
#

I bet you'd need more parens in Java than in clojure

prisma wave
#

in java definitely

#

it'd be about 30 lines in java lol

regal gale
#

Why is ur name Clojure @prisma wave

prisma wave
#

because Clojure good

#

kotlin bad

onyx loom
#

kotlin not bad

#

java bad

regal gale
#

Never heard of it thonking

prisma wave
#

it's the future of programming

onyx loom
#

another jvm language

prisma wave
#

yes

lunar cypress
#

it's the future of programming
mfw lisp has existed for decades but hasn't seen any commercial recognition like other languages

#

shit's 14 years older than C

remote goblet
#

i swear if r/conjuremememes becomes a thing

#

ima murder you brister

old wyvern
#

I bet you'd need more parens in Java than in clojure
@lunar cypress
You lose?

onyx loom
#

dont give him ideas 😬

lunar cypress
#

Show me

prisma wave
#

r/clojurememes >:)

old wyvern
#

Show be the clojure version

#

me*

prisma wave
#

I'm trying to implement it in java right now, just getting Stream#partition is painful

lunar cypress
#

hold on

prisma wave
#

(defn max-13-adj [& args]
  (let [arg-list (map #(Character/getNumericValue %) (apply concat args))]
    (let [max-prod (reduce max (map #(reduce * %) (partition 13 1 arg-list)))]
      (println max-prod))))```
#

38 parens

lunar cypress
#

can be reduced

prisma wave
#

probably

old wyvern
#

reduce it

distant sun
#

Now read that code

prisma wave
#

doing this functionally in java is painful

#

I already want to tear my hair out

#

just trying to implement partition

onyx loom
#

that just sounds like java anyway 🙂

prisma wave
#

true lol

lunar cypress
#
(let [arg-list (map #(Character/getNumericValue %) (apply concat *command-line-args*))
      max-prod (reduce max (map #(reduce * %) (partition 13 1 arg-list)))]
  (println max-prod))
prisma wave
#

imperatively it wouldn't be so bad

#
    public static void main(String[] args)
    {
        var argList = String.join("", args)
                .chars()
                .map(Character::getNumericValue)
                .boxed()
                .collect(toList());

        int max = 0;
        for (int i = 0; i < argList.size() - 13; i++)
        {
            var partition = argList.subList(i, i + 13);
            var product = partition.stream().mapToInt(Integer::intValue)
                    .reduce((a, b) -> a * b)
                    .orElse(0);
            if (product > max)
            {
                max = product;
            }
        }
        System.out.println(max);
    }``` here's an implementation of the same thing in Java
#

semi-functionally

lunar cypress
#

yeah but if your imperative code ends up being much more complex the argument is kinda pointless

prisma wave
#

Indeed

#

Therefore, clojure good kotlin bad

#

And Java bad ofc

obtuse gale
#

I just fucked my project lol - I moved directory and then moved it back and that was enough to break everything
> Spring Boot plugin requires Gradle 5 (5.6.x only) or Gradle 6 (6.3 or later). The current version is Gradle 6.1 and I had to remark the sources file lol

#

how would one update gradle wrapper

lunar cypress
#

I mean the point is - yes, overall clojure uses a higher rate of parens than Java or others since it doesn't treat anything special (you use everything like a function). But individually, those parens are just placed differently and in absolute terms you will most likely still have less of them because clojure code tends to be much much smaller than java code

obtuse gale
#

using kotlin gradle dsl thing btw as well

prisma wave
#

@lunar cypress An idiomatic equivalent of 3 nested for loops would be something like range right?

#

eg if I wanted to loop between 1 and 20 3 times

errant geyser
prisma wave
#

I have seen the light

lunar cypress
#

doseq if you want to do it for side effects

prisma wave
#

clojure is objectively superior

#

no side effects

#

that I know of

lunar cypress
#

for if you want list comprehension

prisma wave
#

just multiplication

errant geyser
#

Kotlin will always be the light 😭

prisma wave
#

alright

#

basically I wanna find the 3 numbers that multiply to make a certain number. would some sort of filter be a good idea?

obtuse gale
#

im disappointed

lunar cypress
#

You could indeed use for for this

onyx loom
#

he converts everyone to kotlin, now hes converting to clojure 😭

hot hull
#

Time to switch to clojure?

prisma wave
#

yes

obtuse gale
#

smh

prisma wave
#

times are changing

hot hull
#

Every time I look at it, I want to spoon my eyes out, so I'm good thanks fingerguns_reversed

prisma wave
#

you said the same thing about kotlin

#

a long time ago

onyx loom
#

same

distant sun
#

ye but now is fr

onyx loom
#

im not going to clojure

hot hull
#

But I really mean it for clojure

onyx loom
#

sorry

prisma wave
#

you will

#

we'll see

onyx loom
#

screenshot this pls

#

well see in 1 year

prisma wave
#

I promise you i'll get at least 1 person to use it

hot hull
#

I'm playing with something cool rn

prisma wave
#

is it clojure?

hot hull
#

It's Java :kek:

prisma wave
#

😦

hot hull
#

I'm not about to convert 60 classes sorry..

obtuse gale
#

java bad kotlin good clojure bad

prisma wave
#

no

obtuse gale
#

majority rules i guess

#

the poll answers the question

hot hull
onyx loom
#

¯\_(ツ)_/¯

prisma wave
#

Java bad

hot hull
#

Now to figure out where the issue is lmao

lunar cypress
#

recursive type

obtuse gale
#

great video

prisma wave
#

@lunar cypress so 3 nested fors? or should I be flattening them into a list or something?

obtuse gale
#

oshit

#

dont look at the comments to that video

lunar cypress
#

no, for is much more powerful

#
(let [r (range 200)]
  (first
    (for [x r y r z r
          :let [prod (* x y z)]
          :when (= num prod)]
      [x y z])
#

It basically does the nesting for you

#

In the bindings vector you can nest over an arbitrary amount of sequences

#

In this case, r is an infinite sequence of all positive integers

hot hull
#

fingerguns_reversed @remote goblet ezClaps

java.lang.StackOverflowError: null

lunar cypress
#

wait actually this doesn'T work with infinite sequences lmao

#

otherwise the inner most will never finish

#

but with some bound it will behave like nesting 3 layers

hot hull
lunar cypress
#

look for types that recursively reference themselves or each other

hot hull
#

Any easy way of debugging it?

lunar cypress
#

the person who wrote this has no idea what they're talking about

old wyvern
#

0:29

lunar cypress
#

its shared state immutability is intended to support concurrency but hasn't had a large track record without major errors
tf is he talking about

hot hull
#

Any easy way of debugging it?
fingerguns_reversed

lunar cypress
#

0:29
@old wyvern that's simply not true. It may be true for Common Lisp, but definitely not for clojure

#

anyone who has ever interacted with the Clojure community knows this

onyx loom
lunar cypress
#

Over half of the arguments are purely economic anyway

#

They sometimes even contradict each other

old wyvern
#

jk

hot hull
#

Tough talk for a fella within crusading distance

lunar cypress
#

They sometimes even contradict each other
like acknowledging that it runs on the JVM and therefore inherits the entire ecosystem but then going on with "it is horrible in terms of code libraries"

old wyvern
#

what does crusading distance mean?

heady birch
#

Whats the cost difference between initializing say a double[2] vs a Point { double x, double y }

lunar cypress
#

Not significant enough to justify choosing one over the other

#

(use a Point class)

prisma wave
#

inline class 😎

#

although i think that only works for 1 parameter

#

wait

#

wrong language

#

just use clojure

lunar cypress
#

Lmao

#

Yeah inline classes only have one property

prisma wave
#

😦

#

another case of kotlin bad clojure good

obtuse gale
#

smh

#

Someone get this man demoted on the kotlin memes discord

prisma wave
#

@lunar cypress for will return a list/sequence right?

#

no

#

i am still a kotlin user

#

but I have accepted that clojure is objectively better

obtuse gale
#

You said kotlin bad 😢

prisma wave
#

it is

#

compared to clojure

hot hull
prisma wave
#

your error is not using clojure

obtuse gale
#

that resolution

heady birch
#

Lol

#

Looks like spring logs

hot hull
#

Aj, it's a zoomed in photo of VSC, fuck u want

obtuse gale
#

zoomed in?

#

doesnt look very zoomed in to me frcsty

hot hull
#

Zoomed out*

obtuse gale
#

smh

prisma wave
#

(defn -main [& _]
  (let [r (range 1 200)]
    (println (filter #(= 1000 %) (reduce + (for [x r y r z r
                                                 :let [prod (+ (* x x) (* y y))]
                                                 :when (= (* z z) prod)]
                                             [x y z]))))))``` why is this not working 😦
#

class clojure.lang.PersistentVector cannot be cast to class java.lang.Number

obtuse gale
#

because its not kotlin

prisma wave
#

shut it

#

no more kotlin propaganda

#

kotlin bad

heady birch
#

Lol

obtuse gale
#

I hope its just a phase

heady birch
#

Formatting

old wyvern
#

All of you are bad, there is no one language to rule them all

prisma wave
#

the good thing about clojure is that you have an excuse for writing arrow code

obtuse gale
#

no

#

that just makes it a bad language lol

heady birch
#

rust 🙂

lunar cypress
#

@lunar cypress for will return a list/sequence right?
@prisma wave yeah, lazy sequence

prisma wave
#

right

#

so any idea what's going wrong?

#

the for would return a list of vector [x y z] right?

#

so perhaps I just need to use map?

lunar cypress
#

Get back to you when I'm done with my pizza

prisma wave
#

ok thanks

#

objectively.

#

superior.

#

rainbows and NPEs

old wyvern
#

😆

hot hull
#

Johny, debugging this is a bitch, but I'm getting close to finding the culprite fingerguns_reversed

prisma wave
#

isn't there some sort of debug logging?

#

that prints exactly what it's serializing or something

old wyvern
#

Do you know what class you are deserializing?

hot hull
#

return Bukkit.getUnsafe().loadAdvancement(id, json) != null;
This is the whore that's causing the issue

#

Time to figure out why

old wyvern
#

I see

hot hull
#

(I've legit just followed the method calls debugging each one :p)

lunar cypress
#

I shouldn't have picked extra cheese man

#

@prisma wave what exactly is your goal? You get the exception because + is called on the vectors in the sequence

surreal quarry
#
Execution failed for task ':dokka'.
> Guice provision errors:```
when trying to generate dokka 
```gradle
dokka {
    outputFormat = 'javadoc'
    outputDirectory = "$projectDir/docs"
    subProjects = ["bukkit", "bungee", "common"]

    configuration {

        sourceLink {
            url = "https://github.com/Jaimss/mcutils"
        }

        // spigot
        externalDocumentationLink {
            url = new URL("https://hub.spigotmc.org/javadocs/spigot/")
            packageListUrl = new URL("https://hub.spigotmc.org/javadocs/spigot/package-list/")
        }
    }
}```
jovial warren
#

yeah dokka is a pain

#

also using javadoc format will produce documentation as if what you're writing is Java code rather than Kotlin code

#

try using html

#

or markdown might work too I think

#

or if you're not using Kotlin, use the javadoc plugin

hot hull
#

Anyone got any clue of what the next method replacing this is?

Bukkit#getUnsafe()#loadAdvancement(id, json)

jovial warren
#

is this another one of those @Deprecated Bukkit methods that just haven't been documented to say what their replacement is?

hot hull
#

Yup

jovial warren
#

what's it's usage?

hot hull
#

It loads an advancement from a file

jovial warren
#

yeah no clue sorry

#

fucking md_5 man

#

does this guy not know what @deprecated (the javadoc tag used for saying why something is deprecated) is for?

hot hull
#

It's funny cause, everytime I call that method it's a stackoverflow fingerguns_reversed

#

I get that it's in the unsafe category, but damn

heady birch
#

Interesting

hot hull
#

@steel heart to the rescue fingerguns

distant sun
#

@jovial warren there's no @since in the entire bukkit / spigot code ..

hot hull
#

In all honesty Gaby, are you even surprised lmaO

distant sun
#

Nah

jovial warren
#

@distant sun true

#

I mean, it's md_5, what do you expect?

#

this is the same guy who'd be happy to sell the Spigot project if he was given enough money

#

the same guy who if he didn't have to have it open-source, wouldn't

distant sun
#

Bruh

jovial warren
#

he literally doesn't let anyone contribute

#

like that's why it took so long for 1.16 to come out

#

because he was working on his own, and went to bed at the end of the day

#

and because he doesn't really care all that much

prisma wave
#

this is the same guy who'd be happy to sell the Spigot project if he was given enough money
Source?

errant geyser
#

sauce*

prisma wave
#

^

old wyvern
#

how much would he sell it for?

#

👀

jovial warren
#

no idea

#

just heard from Paper that he'd sell it if he was given enough money

prisma wave
#

@lunar cypress sorry for late response. I'm trying to find pythagorean triplets for which a + b + c = 1000 for this https://projecteuler.net/problem=9
So for this code, I need to calculate a ^ 2 + b ^ 2 and compare it to c ^ 2
then with all the values where a^2 + b^2 = c^2, I need to check a + b + c = 1000 (which I'm attempting to do with (reduce +) (since the for should return something like ((3 4 5) (5 12 13))
obviously something has gone horribly wrong, I'm just not quite sure where. Any idea?

hot hull
#

Still waiting for that fundme so we can gather 1mil, and the paper team would document world gen fingerguns

errant geyser
#

Ask Tradie

#

Invested a ton in Ori's rat template

prisma wave
#

lol

onyx loom
#

speed rat reversed when

prisma wave
#

@lunar cypress nvm, fixed it I think

errant geyser
#

There you go kali

prisma wave
#

hot

hot hull
lunar cypress
#

@prisma wave I think I actually implemented that once too

prisma wave
#

you probably did it a lot better than me lol

onyx loom
#

imagine frosty

prisma wave
#
(defn -main [& _]
  (let [r (range 1 450)]
    (println (reduce * (first (filter (fn [triplet] (= (reduce + triplet) 1000)) (for [a r b r c r
                                                                                       :let [prod (+ (* a a) (* b b))]
                                                                                       :when (= (* c c) prod)]
                                                                                   [a b c])))))))
#

😎

lunar cypress
#

Wait no confused it with this

Given a positive integer n, find the smallest number of squared integers which sum to n.
For example, given n = 13, return 2 since 13 = 3² + 2² = 9 + 4.
Given n = 27, return 3 since 27 = 3² + 3² + 3² = 9 + 9 + 9.

onyx loom
#

disgusting

prisma wave
#

ah yeah

#

is that a project euler one?

lunar cypress
#

Nah that was a daily coding problem

prisma wave
#

ah ok

#

any way I can clean up mine?

#

apart from just spacing it a bit better

#

it could probably be less than 450 too

hot hull
#

My eyes burn looking at that

prisma wave
#

you're just not worthy

onyx loom
#

ur not worthy

hot hull
#

Shut up, go buy spigot and make it not shit

prisma wave
#

no

#

wait

#

unless...

onyx loom
#

that means dont write it in clojure either

prisma wave
#

damn it

hot hull
#

lol

prisma wave
#

you read my mind

hot hull
#

kotlin allowed fingerguns

prisma wave
#

hm

onyx loom
#

altho kotlin looks spicy fingerguns

prisma wave
#

that seems like a good compromise

errant geyser
#

Kotlin mc server wen

hot hull
#

But honestly, imagine if it was rewritten in kotlin

prisma wave
#

I've technically already done that

#

kind of

#

it loads you into an empty world

hot hull
#

(with a actually non shit api)

prisma wave
#

which is great

old wyvern
#

anyone in for a ideathon?

prisma wave
#

and you can't move

hot hull
#

Yugi, what's that?

analog crater
#

ive got a kotlin prototype with a few friends, closdd source though

prisma wave
#

🤔

old wyvern
prisma wave
#

but is it hardcoded to your UUID because you can't be bothered to do authentication?

#

i don't think so

onyx loom
#

clash of code 😮

old wyvern
#

Basically we have to ideate and design something for a integrated payments thing

prisma wave
#

clash

#

clash

old wyvern
#

they give us access to their sample APIs

prisma wave
#

😦

hot hull
#

sec, wait for my buildtools to finish

old wyvern
#

its not a minigame btw

#

its an actual competition

hot hull
#

I'm running on like 1gb of ram rn

onyx loom
#

sec, let me have a piss

prisma wave
#

Languages: false fingerguns

onyx loom
#

and turn my pc on

prisma wave
#

I like the sound of that

old wyvern
#

First round is ideation lol

hot hull
#

Hell nah Yugi

old wyvern
#

I dont think they will care about the language

#

xD

old wyvern
#

😆

prisma wave
#

although the actual thing you have to design sounds pretty boring

errant geyser
hot hull
#

That cat

old wyvern
#

Yea, but just thinking about doing it for the resume 😪

errant geyser
#

is the cutest thing you've ever seen Frosty?

hot hull
#

Make your own server jar Yugi, now that's a resume flex

#

(Even outside of MC)

old wyvern
#

For minecraft?

#

Im confused? xD

#

What exactly do you want me to make

#

Even if I do try to make a something like that, its going to be almost impossible to compete with what spigot has established rn

hot hull
#

Not the point

prisma wave
#

not if you make it in kotlin

#

now that's innovation

hot hull
#

The point is having a large ass well thought out project, which you can use in your resume

errant geyser
hot hull
#

(Even if the resume is being used outside of MC)

onyx loom
#

ok what we doing boys

old wyvern
#

People who Hire ussually have no idea about this shit

onyx loom
#

im on pc

#

waiting for frosty still?

old wyvern
#

they jsut care about the results

hot hull
#

Kali, still loading fingerguns

onyx loom
#

jesus christ

old wyvern
#

So if I make something good but no one uses it, its still a failed attempt

errant geyser
onyx loom
#

why dont u just download the paper jar from their website fingerguns

hot hull
#

Yugi, not really

#

You learn

errant geyser
old wyvern
#

Yes, but on my resume thats still nothing + to add except an extra project

hot hull
#

If the user is looking at your skills, he'll still see api design/code style

old wyvern
#

Not likely

#

UX is ussually what matters

hot hull
#

UX?

old wyvern
#

User Experience

hot hull
#

I mean yea, anyone can copy from stack overflow fingerguns

#

Almost done @onyx loom

onyx loom
#

😐

old wyvern
#

I mean yea, anyone can copy from stack overflow fingerguns
@hot hull
What does that have to do with this? xD

onyx loom
#

just copy code throughout ur coding experience fingerguns_reversed

#

10 years of copying from stack overflow Kappa

hot hull
#

I mean if the user doesn't look at your previous project closely, how will they know your experience

#

Even if they give you a project to make, you can still just copy like 90% of it from other sources

old wyvern
#

As I said, they will look into projects, but most likely not into the actual mode, its better if you have something they can readily use

#

People who hire you are most probably NOT developers

#

They have no idea

hot hull
#

Well then just have a bunch of projects which look nice but don't do shit lmao

old wyvern
#

Look nice?

#

Im speaking usefulness, usability, how many people use it...ect

lunar cypress
#

@prisma wave what's your result?

#

just to see if I got this correct before I suggest changes

hot hull
#

Ok i'm ready Kali

onyx loom
#

whats on the agenda then

prisma wave
#

31875000

hot hull
#

clash

lunar cypress
#

ok great got that too

prisma wave
#

👍

lunar cypress
#

so there are a couple of improvements you can make

onyx loom
#

nvm dont join that

#

theres randos

prisma wave
#

such as?

#

ew

#

randos

onyx loom
#

idk how to create a private

hot hull
#

smh

prisma wave
#

i will do?

onyx loom
#

go for it

onyx loom
hot hull
#

You scroll down Kali

onyx loom
#

man why is ur pfp so stretches

lunar cypress
#

so for instance, there is no need to have a layer for c, since that can be calculated from a and b

prisma wave
#

¯_(ツ)_/¯

#

@lunar cypress good point

onyx loom
#

WAIT WHAT

prisma wave
#

ahahaha

onyx loom
prisma wave
#

i'll make a new one

onyx loom
#

@hot hull LKEAVE

prisma wave
#

i thought you wouldn't notice lol

hot hull
#

You litle scam

old wyvern
#

im in

prisma wave
#

😏

lunar cypress
#

additionally, since a < b (or b < a, doesn't matter since the order doesn't), the range for for b can be capped at a

onyx loom
#

johnny u joining?

prisma wave
#

@lunar cypress I did consider that, just wasn't sure how to implement it lol

old wyvern
#

start bm

prisma wave
#

ok

lunar cypress
#

next round maybe

prisma wave
#

aight

onyx loom
#

👍

hot hull
#

Time to not use kotlin fingerguns

onyx loom
#

whats a harshad number

lunar cypress
#

your filter can be made part of the for bindings as well, and the for can return (* a b c) directly

#
(for [a (range)
      b (range a)
      :let [c (Math/sqrt (+ (* a a) (* b b)))]
      :when (== 1000 (+ a b c))]
  (int (* a b c)))
```here's my solution
prisma wave
#
A Harshad number is an integer that is divisible by the sum of its own digits.
For example, 1729 is a Harshad number because 1 + 7 + 2 + 9 = 19 and 1729 = 19 × 91.```
onyx loom
#

ye just googled

prisma wave
#

it literally said it

onyx loom
#

o it says at top too

#

LMAO

#

shut up

prisma wave
#

lol

#

@lunar cypress that's a lot cleaner, and I pretty much understand it. Thanks :)

lunar cypress
#

important to note is the == there. That's basically "compare numbers disregarding type difference"

#

(wouldn't work otherwise, since sqrt returns a double)

errant geyser
#

I actually finished second this time

#

Damn

prisma wave
#

I see

hot hull
#

This stupid ass tab completion holy shit

errant geyser
#

Didn't throw

#

phew

prisma wave
#

nice

lunar cypress
#

Although I guess you could just say 1000.0

prisma wave
#

either is fine I guess

lunar cypress
#

This solution probably won't work for any number because of precision issues but with a better sqrt function this should be no issue either

errant geyser
#

My solution is great

#

Positively the most pythonlike python I've written in a while

prisma wave
#

you got this turned on?

topaz bay
#

@prisma wave its happening

prisma wave
#

that's never happened to me

#

?

old wyvern
#

I have a weird test case

errant geyser
#

Indeed I do

#

Thx

prisma wave
#

@topaz bay what's happening

errant geyser
#

My life is 100x better now

prisma wave
#

ofc

errant geyser
#

Holy hell

topaz bay
#

Im rewriting the download code

old wyvern
#

Wouldnt 1540 be true?

prisma wave
#

for the ecloud?

topaz bay
#

mhmm

prisma wave
#

@old wyvern should be

#

nice

old wyvern
#

test cases say its false

#

o.o

errant geyser
#

o-O

topaz bay
#

This should look familiar @prisma wave

old wyvern
topaz bay
#

"failed to downloading"

prisma wave
#

HEY

#

hold on

topaz bay
#

lol

errant geyser
#

Did u nick that from PDM?

topaz bay
#

This is why you dont copy paste

#

fuck my life

prisma wave
#

that looks very familar

topaz bay
#

But yes, the general structure is from PDM

prisma wave
#

smh

#

actually

#

idc

topaz bay
#

Except I actually do the downloading correctly

#

👀

prisma wave
#

WHAT

topaz bay
#

LOL

prisma wave
#

what's wrong with mine?

onyx loom
#

oh right maps are things

#

fuck sake

prisma wave
#

lol

errant geyser
#

Y u need a map kali?

topaz bay
#

Yours is janky

errant geyser
#

Also what code did you get for 0%?

prisma wave
#

how so?

onyx loom
#

/shrug

errant geyser
#

ohk

topaz bay
#

You download to a byte array, and then write to the file

hot hull
#

I'm to dumb to solve this

errant geyser
#

Frosty

topaz bay
#

When you should just be doing a straight up system transfer

errant geyser
#

Do it in python

prisma wave
#

oh yeah good point

errant geyser
#

ez

topaz bay
#

Your way can have both memory, and computation restraints

#

Whereas channel transfer legit go straight from the source to the file

#

zero allocation on some systems

errant geyser
#

Frosty I'm disappointed

#

40%

hot hull
#

katsu, I've never used python fingerguns

prisma wave
#

yeah I'll change that

onyx loom
#

katsu share code

errant geyser
hot hull
#

Check what I did wrong KM, please

#

Ohhh

prisma wave
#

probably an integer division thing

hot hull
#

I see what I did wrong

prisma wave
#

you should probably have been using %

old wyvern
#

finally

#

ffs

#

I had a wrong *10 on input for some reason

prisma wave
#

:/

onyx loom
#

again fingerguns

hot hull
#

Atleast I wasn't last fingerguns

onyx loom
#

☹️

errant geyser
onyx loom
#

shouldve put the code that i had

prisma wave
#

another???

errant geyser
#

Show us it

hot hull
#

Yes KM

prisma wave
#

splendid

onyx loom
#

i put it to an array and thats about it fingerguns_reversed

old wyvern
#

CLASH

prisma wave
#

Programming languages allowed: Bash, C, C#, C++, Clojure, D, Dart, F#, Go, Groovy, Haskell, Java, Javascript, Kotlin, Lua, ObjectiveC, OCaml, Pascal, Perl, PHP, Python3, Ruby, Rust, Scala, Swift, TypeScript, VB.NET
Thonk

old wyvern
#

🍉

prisma wave
#

which did you disable?

old wyvern
#

Didnt disable anything

prisma wave
#

oh lol

old wyvern
#

😂

hot hull
#

Clojure fingerguns

onyx loom
prisma wave
#

you could've just selected none and it would allow all

onyx loom
#

cya kiddos

lunar cypress
#

oh there are custom settings now?

#

finally

prisma wave
#

yep

old wyvern
#

I didnt have a none setting

#

Just ticked all

prisma wave
#

if you tick none of them

old wyvern
#

oh

#

rip

prisma wave
#

it means any

#

oh well

#

lol

old wyvern
#

I had java + kotlin from the other hcc day

prisma wave
#

ah yes

onyx loom
#

o u disabled the character count thing

prisma wave
#

😦

onyx loom
#

so whoever gets least wins mode

prisma wave
#

this is an interesting one

onyx loom
#

ive no clue

old wyvern
#

lmao

onyx loom
#

UYUGI

old wyvern
#

XD

onyx loom
#

what is it

hot hull
#

This boi already got it smh

old wyvern
#

That is the most shit

onyx loom
#

im so confused what its asking

old wyvern
#

bruh litrally look at output

errant geyser
#

HOW YUGI

prisma wave
#

nvm it's easy

old wyvern
#

||REMINDER||

onyx loom
#

😐

prisma wave
#

||REMAINDER*||

old wyvern
#

damn u km xD

prisma wave
#

:)

errant geyser
#

oop

#

Got it

#

Ok I'm braindead

old wyvern
#

zyy

onyx loom
#

thank

#

i got 1 right !!!

prisma wave
#

nice

old wyvern
#

Why does this jolly person have developer in their name

onyx loom
#

i was so confused lmao

old wyvern
#

👀

hot hull
#

This autocomplete is nice btw

onyx loom
#

because hes developer !!!

errant geyser
#

Just you left Frosty

old wyvern
#

😂

hot hull
#

It legit throws an error on every fucking method

#

Like :what:

errant geyser
#

Didn't Cube rename him cos his name starts with !

old wyvern
#

its just a operator boi

prisma wave
#

java bad

analog crater
#

Why does this jolly person have developer in their name
@old wyvern because someone set my nickname as that

onyx loom
#

java very bad

old wyvern
#

ah

errant geyser
#

Frosty

#

Its vewy ez

onyx loom
#

if i got it, its easy

prisma wave
#

😦

old wyvern
#

boi

#

what

#

kefngoeg

hot hull
#

What was the answer?

errant geyser
#

LOL

onyx loom
#

did u not know what it was asking?

old wyvern
#

reminder

#

OWO

prisma wave
#

literally %

#

lol

onyx loom
#

it was just modulo

hot hull
#

I see

onyx loom
#

N2 % N1

errant geyser
#

literally second % first

onyx loom
#

shouldve opened the spoilerrs smh

hot hull
#

Fockin cheaters

old wyvern
#

join frost

onyx loom
hot hull
#

I know what's it's asking, but not sure how to make it fingerguns

lunar cypress
#

dammit

#

I only looked at the first example

#

well

#

good enough

prisma wave
#

oh no

#

i made the mistake of trying to do this in clojure

#

help

lunar cypress
#

don't take my code as inspiration for this one

#

lmao

#

a bit rusty in clash of code currently

prisma wave
#

it doesn't even compile 😦

lunar cypress
#

rip

#

man I had so much time

#

didn't know this would take you all so long

topaz bay
#

@prisma wave do you just never remove from the downloads in progress map?

hot hull
prisma wave
#

uhh

#

maybe

topaz bay
#

Yeah, you just dont

#

lol rip

prisma wave
#

oops

#

¯_(ツ)_/¯

#

it's only a minor memory leak

ocean quartz
#

Oh what 80%

old wyvern
#

Invalid input

#

🍴

ocean quartz
#

Oh

old wyvern
#

was last testcase

lunar cypress
#

oh lmao you're supposed to print "invalid" for some

#

so that's why

old wyvern
#

just 1

#

it was the last testcase

lunar cypress
#

fair enough

hot hull
old wyvern
#

Capital I frost

hot hull
#

I know, but wHy

old wyvern
#

The tester just compares directly I guess

prisma wave
#

gtg

#

rip

old wyvern
#

Ciao

prisma wave
#

Have fun

errant geyser
#

Now what

onyx loom
#

fuck mannnnnnn

#

ik how to do it

#

but i cant 😐

errant geyser
#

Usually " ".join(myList) would work but I'm getting some idiotic error

prisma wave
#

The amount of checks you have to do are just annoying

#

oh wait

errant geyser
#

Checks?

prisma wave
#

you could split on I guess

#

yeah

errant geyser
#

I aint doin any

prisma wave
#

For the invalid I was just doing a length check

#

But that didn't work because of -

#

And at the same time you can't just add individual chars

#

Because of -

errant geyser
#

print(" ".join(output))

#

ohk that was weird

#

got it

analog crater
#

im soo confused. it says it expected nothing but when I give it nothing it expects 3 5 7

old wyvern
#

The last test case has invalid input

errant geyser
#

Yugi I'm in the 100% club before BM

#

Recording this

old wyvern
#

bm left

#

lmao

errant geyser
#

Still counts

hot hull
#

God I love that NFE when the number is a negative lmao

old wyvern
#

oh wait nvm

#

he didnt

analog crater
#

fuck I forgot theres a time limit

errant geyser
hot hull
#

Yugi, look at my code

onyx loom
#

thank

errant geyser
#

Holy balls

old wyvern
#

send frost

errant geyser
#

Frosty what is that

old wyvern
#

I just pressed back to home

hot hull
#

Atleast I used finals fingerguns

errant geyser
#

@prisma wave I got a higher score than u. Recorded.

old wyvern
#

ew

#

another one?

onyx loom
#

using finals in clash of code OMEGALUL

topaz bay
ocean quartz
topaz bay
#

That works pretty well...

hot hull
#

Shut up, not my fault this autocorrect is retarded so I gotta wait for it resolve a changed line before I can test

old wyvern
#

Why do you have auto correct?

onyx loom
#

phone? fingerguns_reversed

hot hull
#

I mean method completion smh

errant geyser
onyx loom
#

no dont do that

hot hull
#

I don't do well under speed

errant geyser
#

Kali did you do either of these?

onyx loom
#

wot

errant geyser
#

Did you try and complete either or did u say naaaaaaah

onyx loom
#

where everyone go

#

i did the 2nd one

#

modulo

#

ez

prisma wave
#

@errant geyser I left halfway through the game, I have an excuse

errant geyser
#

Just let me have it

#

The only one

#

I'll probs ever get

onyx loom
#

ez

#

i did this one

#

😄 😄 😄 😄

#

oplease be happy for me guys

#

....guys ???????

old wyvern
#

nah

onyx loom
#

😦

old wyvern
#

64 * n

onyx loom
#

xd

errant geyser
#

That was easy

onyx loom
#

last one

#

anjyone else joining?

#

sad face

errant geyser
#

Do we gotta

#

Make a giant map of every circle count

#

Thats gai

onyx loom
#

yup

old wyvern
#

theres like only 4 numbers with zeroes in them bois

onyx loom
#

6 8 0 9

distant sun
#

wait for me

onyx loom
#

u missed it

#

o wait u can join?

errant geyser
#

But what am I doing wrong here

distant sun
#

I know this one, pretty nice ngl

prisma wave
#

Kotlin!!!!

errant geyser
#

Better help me now senpai

prisma wave
#

Bad language

#

Nope

#

No can do

errant geyser
#

Ah fuck you

old wyvern
#

katsu you have a NPE

distant sun
old wyvern
#

you used !!

errant geyser
#

U used to be my snif snif senpai

#

Gaby that is

#

Creative and I'm ashamed I didn't think of it

distant sun
#

Yugi did the same

#

today @onyx loom 😦

onyx loom
#

sorry

#

i tried my best

distant sun
#

jk m8

onyx loom
#

@errant geyser why JAVA

distant sun
#

next

#

I need to setup my iij

onyx loom
#

i wanted someone to share code so i could see what i did wrong

old wyvern
#

i did share

distant sun
#

share yours

errant geyser
#

I copied Gaby's after mine flopped

#

¯_(ツ)_/¯

onyx loom
#

fuck java

#

cant read that shit

#

🙂

old wyvern
#

sad for you

distant sun
#

you are just stupid dw

onyx loom
#

😦

#

ok LAST ONE

errant geyser
#

^

onyx loom
#

oh shit ok so i overcomplicated the last one

#

:/

errant geyser
#

Gaby share cod

#

How did you get 66%?

topaz bay
#

beautiful.

errant geyser
#

Looks lovely

onyx loom
#

test on the rng expansion fingerguns

topaz bay
#

I had to turn my nic on and off at least 6 times to get this to work

errant geyser
#

nice one

#

Kali u got 6 mins boi

onyx loom
#

anyone know how to see what the test's inputs are?

#

ive passed the first one, but idrk where im going wrong on the 2nd

errant geyser
#

You can't, except for the ones they give you

#

Thats the point

onyx loom
#

😐

#

i pass all except 2 and 5

#

i imagine thats what gaby did too

#

f it

errant geyser
#

F

#

Well that was my last one

onyx loom
#

me too

heady birch
#

@topaz bay Is array intialization costly

onyx loom
#

thanks for games 👍

heady birch
#

E.g double[] {x, y} vs Point2D
And dont say "readability"

errant geyser
#
import sys

urlbar = input()

if ("http://" in urlbar or "https://" in urlbar):
    print(urlbar)
    sys.exit()

if ("." in urlbar):
    print("http://" + urlbar) 
else:
    print("ftp://" + urlbar)
``` kali u coulda just done this boi
heady birch
#

And dont say "readability"

onyx loom
#

yuck python

#

shouldve used kotlin

errant geyser
#

eh

#

It works tho

onyx loom
#

oh wait

errant geyser
#

Actually that one doesn't

onyx loom
#

so was i not meant to print if it already had http://?

#

and instead close it?

errant geyser
onyx loom
#

o nvm u did print

errant geyser
#

If it already had either of those 3 in it, print it as is

onyx loom
#

thats what i did 😐

errant geyser
#

U had your if statement with the . above everything else tho

onyx loom
#

ohhhh right

#

it was meant to go under 😐

errant geyser
#

So if I had https://www.someting.com, I'd end up with https://https://www.something.com

onyx loom
#

yeah

#

fuck

#

o well

errant geyser
#

U were close enough

onyx loom
errant geyser
onyx loom
#

time to update to ij 2020.1.4

errant geyser
#

ikr

#

exciting

onyx loom
#

very

topaz bay
#

You think that'll work?

onyx loom
#

?tryandsee

compact perchBOT
onyx loom
#

idiot sx

topaz bay
#

I didnt @ you bitch

onyx loom
#

I DONT CARE

topaz bay
#

Actually this doesnt even follow the contract

prisma wave
#

Should work?

topaz bay
#

Doesnt handle null properly

#

ugh... I miss kotlin and FP

errant geyser
#

Rewrite it in kotlin instead

topaz bay
#

Its not that simple

#

And here comes the pain