« first day (504 days earlier)      last day (1269 days later) » 

00:08
such lazy
@emanresuA remeber this:
in The Nineteenth Byte, Aug 27 at 21:04, by Dude coinheringaahing
If anyone stars that, I'll clear it :P
?
Well lets see if caird clears it now
it's hidden in the depths of the history of the starboard
but it's starred
because I set a reminder to star it today earlier this week
and I used Allxy to star it
Good job lol
And caird can't clear it from the transcript ;)
:)
gamer moment
and it didn't show on the starboard either
!!/night
!!/goodnight
@user o/
00:20
o/
'night
been a while since i've been here
TIL the online interpreter doesn't work in Internet explorer
00:39
oh no
anyway
lol
welcome back btw
all you've missed is that some elements have been implemented
and that there's a new YAML file for element documentation
which can be used for multiple things
I've started on it - it's about 20% done
like we can use it for elements.txt, elements.md, element test case generation, vyxapedia descriptions, the interpreter's keyboard and the lb extension
@hyper-neutrino what do you think of the yaml file? github.com/Vyxal/Vyxal/blob/fb-transpiler/documents/knowledge/…
:o
very nice
this will greatly improve the capacity for me to develop vyxapedia and vyxalbot
3 mins ago, by exedraj
like we can use it for elements.txt, elements.md, element test case generation, vyxapedia descriptions, the interpreter's keyboard and the lb extension
00:50
BTW, if you're going to work on it, please do stuff in the order it appears in the codepage
I usually do
oh wait you meant hyper
I only added "add" and "subtract" out of order to give some solid examples of dyadic elements
generated from the yaml
@exedraj Oh ok
@exedraj that's nice
@JonathanFrech Welcome to the Vyxal chat room! Type !!/help for my list of commands, and !!/info for info about Vyxal!
01:05
!!/info
@JonathanFrech hello there!
welcome to Vyxal :)
Hello.
May I ask how I/O is idiomatically handled in Vyxal?
if the stack is empty popping will pull a value from input
each line of input is a value, attempts to eval it but if failed then it is just a string
!!/run +
@hyper-neutrino 0
01:15
!!/run + _ 1
@hyper-neutrino 2
!!/run + _ 1 2
@hyper-neutrino 3
so if you just give it 1 then + will return 2 because it pops twice and gives the input both times
if you give it 1 and 2 then + will of course give 3
i think that's what you meant?
also the TOS is implicitly outputted unless explicit output was used in which case it is disabled, unless the o flag is used (force implicit output). unless O is used (disable implicit output)
No, o overrides O, not the other way round.
01:18
oh
i mean if you use both then like why but
Aaron has
good to know regardless
Ok. And there is only one main stack?
!!/help run
All of my commands start with @VyxalBot or !!/
- Use "ping me" or "don't ping me" to add/remove yourself from the ping list
- To evaluate Vyxal code, use "(execute|run|run code|evaluate)", followed by code, flags, and inputs inside inline code blocks (multiline code is not supported; provide multiline input in multiple code blocks)
- To ping everyone, use "hyperping" or "ping every(body|one)"
- For a full list of commands, see https://github.com/Vyxal/VyxalBotSE/blob/master/instructions.md
How do you define input in !!/run?
01:21
!!/run
@emanresuA Did you forget to put backticks around your code (`code`)? Remember to escape any backticks in your code (to type `hi`, enter `\`hi\``).
!!/run + text
@JonathanFrech 0
I think it's !!/run `code` flags space-separated inputs.
_ for no flags
!!/run + _ text
01:23
So that was running with the flags text
@JonathanFrech 0
also your input needs to go in backticks too
non-backtick stuff after the code just gets ignored
this command syntax is kind of clunky unfortunately but i don't really know of a good way to make it make sense
!!/run ? _ text
@JonathanFrech 0
Flags need to be in backticks as well I think
!!/run ? _ text
01:25
@emanresuA text
!!/run ? _ text
@JonathanFrech text
It's best to use the online site: Try it Online!
!!/run ? _ text\ntxet
@JonathanFrech text\ntxet
01:26
the run command is only for very basic and simple programs
good for demonstrating easily reproduced bugs too
Yeah, I'd recommend it for short examples and demonstrations
The online interpreter is best for longer stuff
@JonathanFrech yes, there is only one main stack
It appears as though ? treats the input line-wise. Can one treat it byte-wise?
Not really
01:29
No, but f will split a string into a list of characters, or the K flag takes input as a list of charcodes
And C converts a string to a list of charcodes
!!/run `abc`C
@exedraj ⟨97|98|99⟩
!!/run ? K `abc´
@JonathanFrech 0
!!/run ? K abc
01:31
@JonathanFrech ⟨97|98|99⟩
That's about the closest you can get to taking input byte by byte
Is this now one list object on the stack or a three high stack?
!!/run ?_ K abc
One list
@JonathanFrech ⟨97|98|99⟩
@VyxalBot that's because of the implicit input and output
01:33
Can I splat the list onto the stack?
Use ÷
!!/run K abc
@exedraj 99
And I can omit the leading ?.
correct
!!/run ÷ K abc
@exedraj 99
01:36
Is the language designed so that one peeks far down the stack or should you modify your values as lists?
You can do both
so it's really whatever is shorter
For arbitrary-size lists, it's generally better to modify as a list
Because vectorisation is poggers.
@hyper-neutrino In the docs' elements table, 's out/effect is missing a quotation mark.
!!/run + K abc\nabc
[@JonathanFrech: 59050675]
⟨⟩

STDERR:
global stack, register, printed, output, MAP_START, MAP_OFFSET, _join, _vertical_join, use_encoding, input_level, raw_strings, retain_items, reverse_args, this_function
rhs, lhs = pop(stack, 2); stack.append(add(lhs, rhs))
01:43
But not with the K flag.
How do I use appending + not vectorized +?
And on strings, + and J are equivalent?
@VyxalBot @JonathanFrech This is because you forgot to put the flag in backticks, so it took your input string as flags - c prints the transpiled code to debug.
@JonathanFrech Yep
01:46
!!/run J K abc\ndef
@JonathanFrech ⟨97|98|99|92|110|100|101|102|97|98|99|92|110|100|101|102⟩
I guess !!/run does not interpret this escape sequence. Is the input looped by default?
Correct for both
the command doesn't do newlines well, and input cycles
!!/run J K abc def
@exedraj ⟨100|101|102|97|98|99⟩
no need for newline
01:58
How do I output the main stack for debugging?
W,
or W:,÷
Is 0 falsey?
!!/run 1 2 3 0 4 () W,
@JonathanFrech ⟨1|2|3|0⟩
02:01
But how can I pop the stack empty when it is implicitly filled with input?
!(_)
or W_
but note that the stack isn't prefilled with input
Can I print imperatively?
explicitly?
,
!!/run 1 2 3 0 4 (9|8) W,
@JonathanFrech ⟨1|2|3|0|8|8|8|8⟩
02:05
Why does this not result in 9 9 9 8 4?
because the 9 is acting as the variable name
What should I do if I want a literal 9?
Just 9
!!/run 1 2 3 0 4 ([9|8]) W,
@JonathanFrech 9
02:07
Are you trying to make a list?
I am trying to map an if over the stack.
Oh hi @JonathanFrech, welcome to vyxal!
@user Hello.
!!/run 1 2 3 0 4 ([9|8]) W,
@JonathanFrech ⟨1|2|3|9⟩
02:08
@JonathanFrech well the problem is that the result of each for loop is retained on the stack
!!/run 1 2 3 0 Wƛ[9|8];
@exedraj ⟨9|9|9|8⟩
Yes. Ideally, this is what I want to achieve.
I know about ƛ, but I wanted to first map and modify it to be able to skip elements.
Use ' then
'...; is a fliter lambda
And I read about a global array. How do I store a single bool globally?
If something returns a falsey value at the end of ..., it's removed.
@JonathanFrech Register / variables
£ to push to register, ¥ to get it
Variables are →name to store and ←name to get
02:11
Is there only one register?
Yes, but infinite variables
Is it zeroed by default?
^
@JonathanFrech pushes to the global array from the stack, ¼ pops from the global array to the stack and ¾ pushes the whole global array
so
!!/run 1 2 3 0 !([9|8]⅛)¾
02:15
@exedraj ⟨8|9|9|9⟩
does what you want
!!/run 1 2 3 0 ^!([9|8]⅛)¾
@exedraj ⟨9|9|9|8⟩
orders it correctly
^ reverses the whole stack, and ! gets the length of the whole stack
Great. How do I ''.join?
there's a few ways
for 1 byte
¤j for 2 bytes
02:16
So Cṅ?
yep
C∑ will also work, but only because it's all strings
And why does this work? ṅ (a: function) first integer where a(x) is truthy from the docs.
  (otherwise)                        = "".join(a) # Join by empty string
elements do different things based on what type they are given
they are overloaded based on type
that's why there's lots of lines that don't start with a symbol in the docs
because subsequent lines are overloads
e.g.
e (a: number, b: number)             = a ** b # exponent, exponentiation, a^b
  (a: number, b: string)             = every ath letter of b
  (a: string, b: number)             = every bth letter of a
  (a: string, b: string)             = regex.search(pattern=a, string=b).span()
  (otherwise)                        = vectorised
are all the overloads of e
02:19
Most things don't have function overloads
^
(which is probably something we should change in v2.6)
(but that's irrelevant right now)
Many thanks to you all; what do you think of my Vyxal attempt at solving https://codegolf.stackexchange.com/questions/233884/remove-oddly-nested-substrings?

https://lyxal.pythonanywhere.com?flags=K&code=%C6%9B91-%5B%7C0%5D%3B%C6%9B93-%5B%7C0%5D%3B%27%5B%C2%A5%C2%AC%7C%C2%A5%C2%AC%C2%A3%5D%3BC%E2%88%91&inputs=zyx%5Bw%5Dv%5But%5Bs%5Dr%5B%5Bqp%5D%5Bkj%5Di%5Dgf%5D%5Bd%5D%5B%5D%5B%5D%5Bc%5D%5Bb%5B%5D%5Ba%5D%5D&header=&footer=
[FEATURE-REQUEST] The on-line Vyxal interpreter should probably be changed to percent encode ' in the share URL.
@JonathanFrech is ƛ91-[|0]; checking to see if the character is equal to 91?
It only changes it to zero if it is 91.
ƛ91≠*; does the same
02:27
[FEATURE-REQUEST] In the docs' elements table, 's out/effect is missing a quotation mark.
@JonathanFrech I edited that in an hour ago when you first mentioned it :)
also,
!!/issue Vyxal The Online Interpreter should probably be changed to percent encode ' in the share URL chat.stackexchange.com/transcript/message/59050852#59050852 enhancement online interpreter
Vyxal-Bot opened issue #237 in Vyxal/Vyxal: The Online Interpreter should probably be changed to percent encode ' in the share URL
@exedraj Great. Thought not forget it.
The bot can open issues on the repositories in the Vyxal organisation ;)
That is one useful chat integration.
02:29
we have hyper to thank for that
it's running on his server/sock
@JonathanFrech other than the mapping lambdas, I like it
it makes good use of the features I added to allow people to write programs more practically
Thank you. May I ask why you added the s flag?
So that it automatically sums the list
It's a way to get the last byte off
How do you feel about Vyxal after your first golf using it?
02:36
Very cool
Welcome to the gang! :p
@exedraj I think it is rather usable; it does not feel as esoteric as, say, brainfuck. I also enjoy its stability and documentation -- the last stack-based language I tried out bugged at corner cases and had conflicting documentation.
@exedraj Thanks for showing me around.
@JonathanFrech no thank you for coming! We're always happy to have more users join us!
@JonathanFrech I'm happy to hear that. Simplicity has and always will be one of my major language design goals
02:53
All right; if I find a suitable challenge, I will definitely give Vyxal another try. For now, thanks again and until then.
 
9 hours later…
11:55
Wait does execute as python or vyxal?
Vyxal
6 messages moved to ­Trash
'nyte
12:33
o/
Man it feels good to be lyxal again
4
 
2 hours later…
14:25
@emanresuA Here's a pretty good Rule of Thumb: If there's something strange, dumb, or broken in Vyxal, I've probably done it. :)
@lyxal Is that so?
!!/run `><+-][.,`£¥↔¥`‟„›‹}`f`{:|:C₴_¼`²JĿ?ṘƛC⅛;k23*(0)„Ė Dob "++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>---.+++++++..+++.>>.<-.<.+++.------.--------.>>+.>++."
[@AaronMiller: 59054682]
Hello World!
8
15:22
@lyxal When did the K flag change to not output numbers as characters?
 
6 hours later…
20:59
@lyxal Hi again, lobg time no see
Someone named exedraj took over while you were gone, I vote we keep tgem as leader instead of lyxal :p
21:17
Hi
22:10
Hi!
23:08
Hi!!
23:20
Hi!!!
Hi!!!!
Hi!!!!!
Hi!!!!!!
Hi!!!!!!!
(message response failed or the new message is not a command)
Hi!!!!!!!!
23:37
user image
5
Huh
Gifs do work
23:54
Of course that's the first thing you tried :P
What? He'll never give you up or let you down, unlike vectorisation and generators
._.

« first day (504 days earlier)      last day (1269 days later) »