« first day (3992 days earlier)      last day (868 days later) » 
00:00 - 11:0013:00 - 23:00

12:18 AM
I love it when I draft a question and in the "Similar Questions" thing, five of the top 6 are my own challenges :P
 
it do be like that sometimes
 
took me ages to work out why I didn't earn Thought Bubble on PPCG - it's because I have SO as the parent of my chat user
 
12:32 AM
0
Q: Collect the elements of an array

caird coinheringaahingAdd++, the Language of the Month, has the "collect" builtin as BC. Your task is to implement this builtin. Consider a non-empty array, where each element is either: A positive digit between 1 and 9 inclusive, or A non-empty list of positive digits between 1 and 9 For example, all the following...

 
@NewPosts 6 bytes in Add++
 
12:43 AM
@cairdcoinheringaahing clever usage of lambda flags
 
Because storing the date in an integer is a great idea
Year, month, day, hour, minute, second all encoded into a 32 bit unsigned integer iirc
 
Store the date as a floating point, and randomly loose days due to floating point errors
 
^ is the real reason we have leap years
 
1 day after 02/01/2022 is 03.0000000004/01/2022
 
12:55 AM
@NewPosts wait, do we touch the inner lists or only group stuff at depth 0
 
Only group stuff at depth 0
 
@lyxal Unix timestamps be like
 
ah
@hyper-neutrino tbh this is extra cursed cuz storing it as a base 10 repr like that doesn't even make it easier for computation
like if you did like, 5 bits for the day + 4 bits for the month + whatever at least that makes some sense
 
@RedwolfPrograms well those are just the number of seconds since an epoch
Microsoft was storing the date like 20220103115820
 
yeah
but unix timestamps do still "stor[e] the date in an integer" :p
 
12:59 AM
i have a idea: best of TNB 2021
 
Nice, just hit 20 hats \o/
 
we can search out for:
1. funniest comment
2. the most out of context
3. the best informational comment
4. the best event(do not need to be a announced one, for example cat week counts as event)
 
is this the most active room on the network?
 
Close to it, yeah
 
We are only 210 messages away from 2 million total messages in the room
 
1:04 AM
Some of the language-specific SO rooms might be a bit more active, and possibly some math ones
But we're definitely one of the top few
 
FYI we crossed 60,000,000 on chat.SE a few days ago...
 
So roughly 1 in every 30 chat messages is posted in this room
@Wolgwang TNB, Mathematics, CHQ are the three most active rooms on chat.SE, I believe
 
@NewPosts what's funny is that Vyxal would also be 6 bytes if single numbers were allowed to be outputted as singletons
Actually wait 2.6.x had a bug where singletons were wrapped when molding
 
We get 4k/wk, Mathematics 4.5k, CHQ has 3.2k, and only a couple of other rooms even break 1k
 
14
Q: Counting universal n-ary logic gates

BubblerBackground A classical logic gate is an idealized electronic device implementing a Boolean function, i.e. one that takes a certain number of Boolean inputs and outputs a Boolean. We only consider two-input logic gates in this challenge. There are \$2^{2 \times 2} = 16\$ distinct two-input logic g...

 
1:16 AM
1999700 th message
 
Nice :p
@cairdcoinheringaahing Did you mean 310?
 
Yeah, I can't do mental maths :P
Which doesn't bode well for my exams, cause we don't get calculators for those :/
 
Huh
My dad brought home a fruitcake that was on sale and my family's getting mad at him because nobody's going to eat it lol
CMQ: What's an aspect of programming that doesn't get taught as much as it should?
 
Hmm that's actually an interesting question
 
1:22 AM
I think writing clean, readable code is a good one, at least for all of the two programming-related classes I've been in
 
I'd say the software development cycle
 
Oh, that's also a good one
 
And how to actually manage projects
 
Or any sort of collaboration when programming projects with multiple people, in my case
Because good luck getting people in CS classes to interact with each other
 
Which site is least active? I want to test something by posting a question for 5 minutes...
 
1:26 AM
I'd do that on CGCC meta
Don't bother the three people still using WindowsPhone.SE
 
@Wolgwang Windows Phone.SE hasn't had a new question this year
(their last one was Dec 2nd 2021)
 
@RedwolfPrograms I'm lucky the course on software development I took at high school actually covered the software development cycle - despite the fact that it was based on info from the early 2000s, it still had actually helpful content
Heh, it even looked at lexing and parsing languages
 
@cairdcoinheringaahing Before that was Sep 7th
 
Lucky. We hardly even covered for loops.
 
@RedwolfPrograms at least you didn't have to use vb.net
That was truly an experience
 
1:30 AM
@cairdcoinheringaahing Oh wow, that recently?
I thought it was like...bianually lol
Windows Phone should really just me merged into retrocomputing at this point :p
 
@cairdcoinheringaahing Hmm I wanna post verbatim copy(Yeah yeah I know it is not ethical) of this to test E-pic .
 
@RedwolfPrograms ooh typing
That should be taught more too
Typing as in variable typing
 
1:42 AM
0
A: Sandbox for Proposed Challenges

BubblerDomino tilings in an N-dimensional cube code-golf dominoes tiling sequence combinatorics Challenge Imagine an N-dimensional cube which has dimensions 2×2×...×2. Given the value of N (a positive integer), calculate the number of ways it can be divided into 2×1×1×...×1 "hyper-domino" pieces (two un...

 
2:27 AM
how to implement SCBS?
 
there isn't really much to implement
you just pick 256 characters and say your language's code is encoded in that codepage, and as long as you stick to only those characters you can call each one a byte
 
ok, please do.
(all are random)
 
technically speaking your implementation does need to have a way to accept a sequence of raw bytes of the length you say it is in order for you to claim your answer has that length
for example, jelly has a flag that allows you to enter a file that's just raw bytes, rather than being in utf-8-encoded jelly codepage characters
 
vyxal does too
 
I think all SCBS langs do
 
2:33 AM
0 1 2 3 4 5 6 7 8 9 A B C D E F
0 1 2 3 4 5 6 7 8 9 A B C D E F
0 1 2 3 4 5 6 7 8 9 A B C D E F
0 1 2 3 4 5 6 7 8 9 A B C D E F
0 1 2 3 4 5 6 7 8 9 A B C D E F
0 1 2 3 4 5 6 7 8 9 A B C D E F
0 1 2 3 4 5 6 7 8 9 A B C D E F
0 1 2 3 4 5 6 7 8 9 A B C D E F
0 1 2 3 4 5 6 7 8 9 A B C D E F
0 1 2 3 4 5 6 7 8 9 A B C D E F
0 1 2 3 4 5 6 7 8 9 A B C D E F
0 1 2 3 4 5 6 7 8 9 A B C D E F
0 1 2 3 4 5 6 7 8 9 A B C D E F
0 1 2 3 4 5 6 7 8 9 A B C D E F
0 1 2 3 4 5 6 7 8 9 A B C D E F
0 1 2 3 4 5 6 7 8 9 A B C D E F
 
UTF-8 is just a convenience
 
@cairdcoinheringaahing they should, but some don't
or at least didn't for a long time
 
^ Someone can do this?
 
@lyxal Technically speaking then, I don't think they can claim to use a custom code page
 
@cairdcoinheringaahing things they don't tell you when you're new to creating golfing languages.
 
2:35 AM
by definition, technically that is the case. i don't think we've really ever cared to check but because of the implementation-defines-language definition, you would need to be able to accept a string of that many bytes to claim your code has that many bytes
 
I may have left Keg without an actual raw byte system for 3 years yet still claimed SBCS during that time...
 
Yeah, we do take most things at face value here :P
 
@hyper-neutrino data = open(__import__("sys").argv[0], encoding='scbs') will do.
:P
 
open(filename, mode = 'rb) works :P
 
@cairdcoinheringaahing EOLERROR
@lyxal acess to Lyxal's Juicy Memes Stash?
 
2:42 AM
which can be somewhat extended to "doesn't use more than 256 distinct chars <-> bytes == chars"
 
@Bubbler wdym?
 
2:55 AM
@pxeger i have a question
0
A: Best Of CGCC 2021 - Call for categories

FmbalbuenaBest new programming languages New programming languages sometimes is useful, But the answer gets more golfy and gets accepted, Even if it's new language.

 
@RedwolfPrograms Testing and (good) documentation. I’ve never written “real “ code but I assume those are extremely important
 
3:10 AM
@RedwolfPrograms How to properly use comments. Take a look at my github, I never use comments, because I was taught to basically comment everything, regardless of what it did. The way schools teach commenting now misses the point of comments
 
i personally stand by the opinion that most of your code should be written in a way that allows someone (who is reasonably familiar with the language and any frameworks, at least) to understand (approximately) what it does just by reading the code itself, and hence does not need commenting
ofc some larger things could do with some comments to explain some high-level things, and documentation is important
 
Agreed
That was my main design goal with Add++ v6 tbh
 
but like, do I really need to comment print(sorted(a)) # sorts the list "a" and prints it? :P
 
help me
 
17
Q: Discount Pokemon Battles

caird coinheringaahingI have decided to create a discount Pokemon battle simulator using a module called guizero. It's basically a wrapper for Tkinter that is easier to learn. Recently, I started to learn OOP and thought that this project would be a good practice for my "new-found skills". Someone in my computing grou...

 
3:14 AM
@hyper-neutrino I agree that having a comment every line is absurd, but you do still need comments for anything that isn’t super obvious
 
> This, like many of your comments, is exactly the kind of comment you should never write. It just says what the code does. We can see what the code does. Use comments, where absolutely necessary, to explain why it does it.
 
@cairdcoinheringaahing off-topic sry
 
If you can find a way to write code so simply that anyone can understand your function bodies, I will pay you a billion dollars to write my code :p
 
assign = all_equal([name,strength,speed,skill,age]) and name == None
self.assigned = not assign

if assign:
    return None
*chef's kiss*
 
tbh installing the black plugin for atom has made my life so much easier
i get to save so much time not reformatting my code when i insert or remove things within a line/block
 
3:17 AM
@cairdcoinheringaahing Wait a second, are you checking that all those values are None? That is some amazingly convoluted code :p
 
I was not a good coder in 2017, and am kinda a not awful one now :P
 
@hyper-neutrino Also when I manually format stuff I get paralyzed by all the choices. When an autoformatter does it for me, even if it isn’t perfect, I can shrug my shoulders and say “welp the bot said it gud so it gud” instead of spending an hour figuring out where to put a line break
 
lol, yeah. some things that black does i didn't personally like at first (like no space around = in kwargs) but i've gotten used to it over time
 
3:19 AM
Why debate tab vs spaces, when you can use Jelly which doesn't even have tabs/spaces :P
 
The true way
 
and on top of starting to care a lot more about code efficiency and avoiding code repetition lately (because those two have started to really bother me when i don't care about them) my code is actually fairly reasonable quality these days :P
at least compared to before, which I suppose is a low bar
 
Hell, "tab" isn't even in the SCBS :P
 
How to solve any “X vs Y debate”: get rid of both X and Y :p
 
@hyper-neutrino My main motivation for clean code for Add++ v6 is that the current version of Add++ is buggy as fuck, inconsistent in it's builtins, so on and so forth, and I figured that a clean interpreter would lead to a clean language
 
3:22 AM
Use Clean to implement it instead of Python then :p
 
yeah my main reason is that previously finding bugs took me forever cuz i'd have to dig through like 200 lines of code and it's impossible to tell where each stage of the algorithm starts and ends :P
 
I'd bring up an example, but my code is on my external hard drive, and that involves walking upstairs
elif cmd[0] == '{' and cmd[-1] == '}':
    if cmd[1] == ',':
        argcount = abs(int(self.stack.pop()))
        sslice = 2
    else:
        argcount = 0
        sslice = 1

    try:
        func = self.functions[cmd[sslice:-1]]
    except:
         error.UnableToRetrieveFunctionError(line, outer[line-1], cmd[1:-1])
Huh, I forgot Add++ has specific function calling syntax for dyads.
 
one thing i could work on is better error types and handling
i ran one of my projects through lgtm and got a bunch of complaints about using except to catch all errors :p
 
@cairdcoinheringaahing My code is so bad I can't even remember what it does lol
 
@cairdcoinheringaahing I do love a bit of self.a(function) when I want it just on the top of the stack :p
 
3:43 AM
0
Q: Should I post non-language specific KOTH?

FmbalbuenaCan I post KOTH challenge, but non-language specific?

 
@NewPosts Yes
But the specifics of it are much more complicated than one word, and I defer to Redwolf
 
The title says Should but shouldn’t it be “Can?
 
answer?
 
"Yes you can, but no, you probably shouldn't"
 
answer the question?
 
3:54 AM
CMQ: how should printing in a lazily-evaluated map output?
like
[4
45
, 56
, 67
, 78
, 89
, 910
, 1011
, 1112
, 1213
, 13]
or just
4
5
6
7
8
9
10
11
12
13
 
TLDR
 
that first one is generated by 10L ε3+,} in 05AB1E and 10 ƛ3+,; in vyxal
 
TLgerDR
Hmmm i found a funny non-CGCC question
 
@lyxal It shouldn’t output anything
Since it’s lazily evaluated
I will die on this hill
 
@user then `` in Python 3.
 
4:02 AM
?
 
@user but upon full evaluation, it'll still print something
the question is should it be handled nicely or just left as-is
 
Upon full evaluation, sure
Left as is I guess
I’d expect similar behavior to printing in a for loop
 
@lyxal What does 3+, do?
 
@Bubbler it adds 3 to the argument and prints it
the 3+ is arbitrary
it could be anything
 
After printing, what is left on the stack?
 
4:05 AM
nothing
but in vyxal, if nothing is on the stack, the original argument is returned
 
05AB1E's output looks cursed but it's really what you get when you mix lazy evaluation with side effects (printing in this case)
So again my advice is: don't write code like that
 
@lyxal this looks plain weird
 
@PyGamer0 It runs like "I need to print an array, so print [; now I need to print the first number, so let's evaluate it... oh, it has a print in it, let's print it; now I have the first number so I can print it now; ..."
 
4:22 AM
@Bubbler People do weird things for code golf and restricted source
 
i have school, but im doing it offline
cause covid is slowly increasing
 
So I'm watching Die Hard 2, and wow is it not good
But not in the sense that it's so-bad-it's-good, it's just plain not good
 
4:39 AM
It’s not unwatchable though is it?
I remember watching one of the Die Hard movies, idr exactly what happened but it was bearable despite having a weak plot
CMP: What are some movies that are so bad they’re good? The kind where you spend the movie laughing at how bad it is rather than enjoying the movie itself?
I would like to torture my parents tomorrow >:)
4
 
Minions
 
4:57 AM
Good idea except I already made them sit through that during my cringe Minion obsession phase :(
 
@user Did it involve a tower or an airport or neither?
 
I don’t remember anything about it lol
 
I don't get how people can not remember things about things
 
The bald dude was on a bus and a roof at some point
@RedwolfPrograms Me neither :(
 
@user BEE MOVIEE?
idk its a meme
 
5:01 AM
The Bee Movie is totally awesome, yeah
 
Watched that already too
 
I thought it was subpar before it was cool
 
@RedwolfPrograms Looking back at it it’s so frickin weird
Sapient, organized bees are scary
 
We watched it at a math camp I went to, and oh man is it fun to watch with 39 other nerdy middle schoolers
 
Picked it apart to shreds? :p
 
5:04 AM
Not really, people would just occasionally make really funny remarks about it
It did cut off a casual game of chess I was playing though, and it was too dark to continue
 
Hmm, I could try to get my parents to watch episode 2 star wars but I don’t know if I can sit through it again myself without choking
 
I own the book for that one, unfortunately
 
i'm having a ton of trouble giving a <table> a background color and padding it on the sides properly. are tables deprecated/gone as well or am I just bad?
 
And it's the only one I own the book for
 
cuz until like 2 days ago i didn't even realize center got removed from html5 so idk what else i'm behind on :p
 
5:07 AM
@hyper-neutrino Tables still exist, IIRC the formatting works a bit differently from most stuff
 
wait, i think the issue probably has to do with the fact that my structure is table > a > tr > td
 
@RedwolfPrograms You can probably cheat and use display: block and display: inline-block to revert that
The math camp in question has been indefinitely postponed, presumably due to COVID D:
 
@hyper-neutrino yeah that wasn't it
@RedwolfPrograms oh i'll give that a shot thanks
 
It was super cool, we spent three weeks in a college dorm over the summer, in math classes six hours a day
Okay, maybe my idea of "super cool" is a bit unusual
 
Uh huh
 
5:10 AM
But being surrounded with 40 other people my age who were just as interested in math was pretty great
 
Who are we to judge though? This is cgcc :p
@RedwolfPrograms Did one of you die?
 
Yes, math overdose :(
Nah, just an off-by-one error
 
Because you said only 39 others watched the movie
Sus
@RedwolfPrograms and you call yourself a math nerd. Taktsk
 
You had to like...apply to get in and stuff, and you had to take either the SAT or ACT to prove your mathiness
I took the ACT and got a 34
 
That sounds high
 
5:13 AM
Nope, I just like standardized tests
I got a medal for it
 
Nice
 
A girl in my science class took the SAT through the same program I took the ACT through, and got a medal as well, but didn't show up at the ceremony
 
Oh was she the one who OD’d? :(
 
The program I took the ACT through was only related to the math camp
(Also just in case it wasn't clear nobody died :p)
(Actually now it looks like you were pretty clearly joking (not you Jo King) so now I feel dumb)
 
I thought it was pretty clear from the start that I was joking lol
 
5:19 AM
Yeah I mostly just wanted to add some context in the transcript lol
 
Out of context messages are the best
 
Nov 24 '21 at 0:34, by lyxal
I need consent from emanresuA, rak and user
Sep 30 '21 at 13:54, by Redwolf Programs
I like money though
There are two for free, from lyxal's private reserve :p
 
For a moment then I was wondering how you managed to break into my out of context TNB discord group
But then I realised you were quoting me, not you.
 
@RedwolfPrograms which private reserve?
 
I just searched messages from lyxal containing something along the lines of "saving this in my list of out of context TNB messages" lol
 
5:26 AM
42 mins ago, by user
I would like to torture my parents tomorrow >:)
Oh ok
 
lol, that's a good one
 
@user How dare you
 
Épisode 2 is by far the worst
 
user suddenly becomes french
 
Idk, episode 1 isn't very good either
 
5:28 AM
I'd rather sit through the acting and dialogue of Episode 2 than have to endure the shit that is "Somehow, Palpatine returned"
 
And if you count any of the disney stuff, it's no contest
 
I have a french keyboard that randomly casus french suggestions to pop up
 
At least the prequels make an effort, even if it failed from time to time
 
I'm actually not too against episode 7, though it's only good-ish because it stole from episode 4, but 8 was bad and 9 is...
 
@cairdcoinheringaahing i didn’t include the new movies, they hardly count as star wars
New direction, writers, actors
 
5:31 AM
7 had potential, 8 was so disconnected that it failed, 9 was just bad
 
@RedwolfPrograms better than 2 imo (although tbh i barely remember any of it, only my feelings about them when i watched them)
 
8 could've been good, but it just ignored all the foundation laid in 7, and decided to create random ass lore that didn't wokr
If you walk away from watching the sequels and aren't asking "Who the fuck was Snoke?", you didn't really watch them :P
 
Yeah randomly switching to another director for the second movie only is not typically a good idea lol
 
Hey maybe i can get my parents to watch 8 and 9 then thanks for the idea
 
5:33 AM
The sequels had so much potential, if the story had been actually good
 
I also dislike the fact that too many people equate disliking the sequels with disliking female lead roles. Cause Daisy Ridley is fucking amazing , but the writing is for shit
Too many people just can't understand that writers can be bad, and , no matter what the actors do, there's no salvaging a movie with a badly written script
 
^ a movie can get by with mediocre acting if the plot is good but if it’s really bad then even the best acting can’t make it palatable
 
Wait I just noticed the torturing-user's-parents message is starred now lol
 
:/
 
5:51 AM
> die - Ends the program. Dog dies. :(
Browsing random esolangs pages gives you some interesting languages lol
 
@RedwolfPrograms the dog died :(
:'(
 
I've had an idea for an esolang for a while, but I don't care enough to implement it: There's no looping, only conditionals, and once the last instruction in the program finishes you wrap around to the start.
Should be TC
 
in flax, 2 mins ago, by PyGamer0
i might have potentially finished a repl
@RedwolfPrograms NLRNIS? (idk the name but its made by Fmbalbuena)
 
Oh, does that work similarly?
 
yeah
stands for No loops, Recursion neither if statements
 
6:02 AM
wait i guessed the name right
€_£
 
admittedly it doesn't loop around
but it's the same principles
get ninja'd redwolf
 
I don't see any conditionals either
In which case it isn't TC
 
noo it isnt Totally Cute
 
@RedwolfPrograms that's just Whenever but deterministic
also Sidex (10k+ link)
 
@lyxal They seem very different lol
 
6:07 AM
Sidex is more similar to what you mean
> Sidex doesn't have any control flow other than an implicitly-wrapped infinite loop; instead, the only form of sequential control flow isn't sequential; they might execute at any order. As a complement, the whole program is wrapped in an infinite loop.
 
@lyxal i am <1k i am sad :(
 
Still no conditionals though
 
@RedwolfPrograms i think it has some facility for self-modification but last time i looked it still wasn't adequate for anything resembling conditionals
 
@RedwolfPrograms The conditionals and non-random stuff are critical to the way my idea works
 
@RedwolfPrograms latches act as conditionals
 
6:09 AM
Oh huh
It'd still be very, very different to use than what I'm thinking of tho'
I'm sure something like it exists already, likely quite a few
 
actually come to think of it this almost sounds like some kind of 1d fungeoid
except not really
 
maybe backhand is more what you mean
 
Cool but still very, very different
I'll write a sample program, just a sec
 
oh yeah how did i forget about backhand
 
if not s:
    i: (i || []) + input()

    if tail(i) == -1:
        i: slice(i, 0, -1)

        s: 1

if s == 2:
    if not size(i):
        stop

    print tail(i)

    i: slice(i, 0, -1)

if s == 1:
    s: 2

[implicit return to start]
Obviously the syntax would be much more esolang-y than this
But this is a program to print all inputs in reverse
It uses a state variable s to keep track of whether it's inputting or printing, since you can't nest loops
I haven't 3d printed stuff in a while...any ideas?
 
6:26 AM
@RedwolfPrograms 2 gears, and 2 lego pieces
 
I did at one point 3d print 2 gears, but no lego pieces yet :p
 
then do 4 lego pieces
 
Sounds like a boring lego set
 
then do 400 pieces?
 
Sounds good
3d printed lego bricks don't actually seem like they'd work too well, thinking about the structure. I know people make them, so I guess they must either modify them quite a bit or spend a lot of time removing supports
 
6:30 AM
yeah i was asking for 4 huge pieces
 
> A loaf of bread in Berlin that cost around 160 Marks at the end of 1922 cost 200,000,000,000 Marks by late 1923.
Okay wow
That's definitely hyperinflation
 
0
A: Sandbox for Proposed Challenges

SketchySketchUniversal Command Sequence Definition An \$n\$-maze is a \$n\times n\$ chessboard which has "walls" on some edges, and a "king" on the board that can move to the 4 adjacent cells, which cannot pass through any walls. Starting from any cell the king should be able to reach every cell on the board....

 
@RedwolfPrograms chess
 
thats also a good idea
 
Ooh good idea
 
6:37 AM
use black and white filament
 
If only I had someone to play it with :(
 
:(
does transparent filament exist?
 
Maybe I should make a toroidal chess board to play against myself
@PyGamer0 Yes, but it's very difficult to work with
And it's more translucent than anything
So uh...
This is the 2 millionth message in TNB
4
 
lol
wait
@RedwolfPrograms that is? where you tracking it?
 
6:40 AM
i know but were you tracking the counter?
 
No, I just checked it a little while ago and kept count
See y'all in the morning o/
If I'm not up by 8:30 CST ping me
 
o/
 
7:30 AM
can anyone tell me what the js code tweeting platform was called
 
@Razetime dwitter
No I totally didn't steal the answer from discord
Why would I do that?
Why ever would I do such a funny thing?
 
7:58 AM
gamer
 
8:52 AM
CMP: Which error message looks better:
any other suggestions?
 
keep it fully red
 
@Razetime ok any alternative suggestion?
 
just keep errors a different color from program text
red is the usual
 
ok
is there some standard as to what exit values to return?
 
0
Q: Maximum value after insertion: how does the solution work?

SRSR333I was solving this problem, and was looking at a solution after multiple failed attempts. I understand everything that the code does, but I don't understand why. Reproduced here: string maxValue(string n, int x) { int len = n.size() - 1; int ans = len + 1; if(n[0] == '-') { ...

 
9:05 AM
@PyGamer0 if you find that important for debugging, define them or use your implementation language's values
 
ok
i found a bash tutorial (and a question on SO)
 
@user samurai cop, joshua and the promised land
 
ok my mind was working today
CMQ: Suggestions to import that ^ error message
 
@PyGamer0 Do you have any way of keeping track of where the 1 and 0 came from?
I suppose the 1 isn't all that important, really.
 
 
1 hour later…
10:20 AM
@wizzwizz4 no
actualy idk
@wizzwizz4 do you mean the arguments of ÷?
i think a better way would be to point explicitly:
  1÷0
   ^---- Error occured while executing this.
ERROR: Division by 0.
like that^
that also looks better
and running with the -d flag should give more information
 
@PyGamer0 Looks very APL:
DOMAIN ERROR: Divide by zero
      1÷0
       ∧
 
  1÷0
   ^---- Error occured while executing this.
ERROR: Division by 0.
INFO: λ = 1
    | Executing ÷0, dyad-nilad pair.
 
10:36 AM
When you want more helpful error message, it is the right time to try out a 3rd party parser package
 
£_€
noo not lark please
 
@wizzwizz4 What if the zero comes from inside a variable?
 
i am fine with the current parser and the attrdict allows me to store more information like glyph
@Adám flax doesnt have variables
 
But it might be the result of another expression. E.g. 1÷(2-2)
 
yeah
@Bubbler is there a jelly parser package :p
that parses jelly like tacit languages
 
10:45 AM
Good news: I found out how to do type checking in Charcoal. Adding a list to an unknown type always results in a list, and in particular adding an empty list only results in the original unknown if it's a list. Similarly, adding a string to a number results in a string, so adding an empty string to an unknown only results in the original unknown if it's a string. Bad news: I'm pretty sure that there was an old challenge that required type checking on the input, but I don't know how to find it.
 
00:00 - 11:0013:00 - 23:00

« first day (3992 days earlier)      last day (868 days later) »