« first day (742 days earlier)      last day (1033 days later) » 

01:01
Help is required to restore the vyxal thing in canvas
Terse elegant readable has become terse elegant semantle
Or we could just leave it tbh
01:31
Also symvy planning needs a bit more attention than canvas imo
01:56
[Discord Relay]
nailuj29#4234: new lyxal pfp 👀
CGSE exclusive
 
2 hours later…
04:26
whoa
what is it?
[Discord Relay]
UnrelatedString#9744: was playing off the "new lyxal pfp"
05:05
!!/help
All of my commands start with !!/
- Use "!!/ping me" or "!!/don't ping me" to add/remove yourself from the ping list
- To evaluate Vyxal code, use "!!/run" followed by flags (if any), followed by code and inputs inside inline code blocks (multiline code is not supported; provide multiline input in multiple code blocks)
- For a full list of commands, see https://github.com/Vyxal/SE-Bot#readme
!!/coffee
Beep boop why you no yum liquid?
!!/coffee hyper-neutrino
@lyxal brews a cup of coffee for @hyper-neutrino
Works for me
05:36
probably a bug
!!/coffee
hm idk
!!/coffee .
@hyper-neutrino brews a cup of coffee for @.
 
2 hours later…
07:34
in The Nineteenth Byte, 27 mins ago, by hyper-neutrino
if you have smth specific you want i can ask an admin
I do got a specific library in mind
pip install vyxal on DMOJ would be cool
Because it's easier than adding the whole language as an individual thing
@hyper-neutrino ^
 
4 hours later…
11:28
@lyxal another ai thing?
You're only realising this now?
Y'all do realise that I've been using this one on SE for a while now right?
And that nailuj29 is only commenting on it because it's the first time they've seen it
I’ve never bothered looking too closely at it
It just looks black from q distance
Reminded me pf your flowey pfp
 
6 hours later…
17:53
@user
[error] Referring to non-existent class vyxal.JSMain
[error] called from core module module initializers
[error] Referring to non-existent method static vyxal.JSMain.main([java.lang.String)void
[error] called from core module module initializers
[error] There were linking errors
[error] (vyxalJS / Compile / fastLinkJS) There were linking errors
[error] Total time: 3 s, completed Apr 29, 2022 11:53:08 AM
I can't get the vyxalJS to work
the JVM works
 
1 hour later…
19:11
Steffan153 opened PR #12 (Vyxal/VyxalS) (Vyxal:postfix-modifiers → Vyxal:main): make modifiers postfix
19:35
!!/am i privileged
!!/status
!//status
@VyxalBot status
bot ded
!!/status
@hyper-neutrino
circular structure thing again, weird
!!/status
@hyper-neutrino I am doing you.
i'll try to figure out how to fix this
it could be a websocket disconnect TBH
i might just make it crash on error and auto-restart
!!/am i privileged
@Steffan You are not a privileged user. If you believe this is a mistake, please ask an admin to grant you permissions. [!!/promote 421797]
 
2 hours later…
21:27
i just found out that kotlin has generators
and now i cant stop using it
because i dont have to specify anymore the hasNext function for certain iterators
22:20
@Seggan Wait wut
@Steffan Hmm, what did you run?
@lyxal oh yeah wait is nailuj not a cgcc user
cgccuser requested changes on PR #12 (Vyxal/VyxalS): "Thanks for the changes, I'll look it over properly later"
22:33
@Steffan Did running vyxalJS/fastOptJS not produce similar output?
@user vv
sequence {
    // calc
    yield(obj)
}
returns a Sequence<T>
which is basically a lazy list
Ooh
I love how yield is just a function in the stdlib
me too
im considering replacing JyxalList with Sequence
22:46
Not a bad idea, since you're using Any anyway, right?
ye
im currently checking out the operations it provides
it provides map and filter
hmm seems Sequence is Kotlin's version of Java's Stream
but much better
I'd suggest using the more general Iterable instead
nah
then my code would be much more verbose
Ah, you need to use asIterable
im saying get rid of JyxalList and replace it with Sequence
22:53
?
since Sequence is a lazily evaluated list just like JyxalList
Iterable would also work for that
@user i think you understood me as replacing the internals of JyxalList with Sequence?
Kotlin's Iterable, I mean, not Java's
theyre the same
ah nvm
i though you meant Iterator
22:54
@Seggan I thought you were going to replace JyxalList with Sequence<Any> everywhere
ye i am
@Seggan I think they really are the same in bytecode but Kotlin just treats them as different in source code? idk
@user just Sequence is considered a collection, and has all the map, zip, filter, etc functions in it
But you can instead use Iterable<Any> everywhere and do sequence { ... }.asIterable when actually constructing a lazy list
@Seggan They are extension methods, though
iterable does not have them
22:56
The Sequence interface itself has only a method to get an iterator
Sure it does
ah
i thought only Collection had
They are extension methods though, you are right about that
also you cannot "get the nth element" from an Iterable
while you can from a Sequence
f
List has that but again, Sequence doesn't implement List :(
Sequence has take
which is List's get
23:00
Not really
It's somewhat wasteful to do seq.take(n) and then get the last element of that
but you have the same thing with lazy lists
you have to generate all the elements before it
Ye
I mean it creates another Sequence object
But that's not a huge deal ¯\_(ツ)_/¯
hmm using Sequence has a slight problem
Sequence is a generic type
Unchecked casts are fine
wouldn't you want to do that anyways
23:04
which means using is on it requires is Sequence<*>
You're casting anyway, right?
and the * means that it is nullable
and also is Nothing
Just use a wrapper or smth
23:05
which means i cannot do most operations on it
@Seggan That ain't a problem
You just do seq as Sequence<Any>
It'll be all good
but thats so much more noise
Follow your dreams
@Seggan Use an extension method
how is that that much more noise
23:06
constantly casting
ill just go back to good ol' JyxalList
val Sequence<*>.toVyxal: Sequence<Any> = this as Sequence<Any>
Nonono please don't
Use Sequence
@user This reduces the noise somewhat
@user why not
No real reason lol
Sequence breaking everything
But it'll just be sugarier and you won't have to have implementations of map and filter and whatnot
23:08
i do have map and filter and whatnot
@Seggan No I mean I have no real reason for not liking JyxalList
@Seggan Exactly, and there's no need to have an entire file for that stuff
oops wrong one
that is the weirdest error
Context? (bigger screenshot plz)
nvm fixed
reminds me my plan in perhaps is to have a PerhapsList that's just a normal list except with a boolean for if it might be infinite
23:10
but using null assertions everywhere is not pretty smh
Kotlin contracts could help you here
i mean when doing operations like map and filter the elements are nullable
so i constantly have to !!
You could use an inline class as a wrapper

« first day (742 days earlier)      last day (1033 days later) »