« first day (4115 days earlier)      last day (720 days later) » 
00:00 - 20:0020:00 - 00:00

12:11 AM
@lyxal look outside? you'd need windows for that... oh.
 
Yeah
You can see the predicament now :p
 
12:46 AM
0
Q: Rounding a range

xiver77You have a line with two endpoints a and b (0 ≤ a < b) on a 1D space. When a or b has a fractional value, you want to round it to an integer. One way to do this is to round a and b each to its nearest integer, but this has a problem that the length of the rounded range (L) can vary while b - a st...

 
1:28 AM
:( just got -9% on a test cuz i did mental math and didnt write down some of the work
 
Negative nine percent?
Or a deduction of 9%?
 
deduction 9%
 
Ah
 
got 91% on the test
 
Well that isn't as big of a yikes as getting -9% overall but still
yikes
 
1:30 AM
well it does amount to quite a bit cuz tests are 75% of the grade in this class
 
But it's better than doing so poorly that you just get marks taken away from other assignments :p
 
@lyxal CMC
 
On a different note: who the frick is Jack and why does he have so many pots?
Like I'll be playing poker and it's all about his pots being won
Ffs Jack why couldn't you let Bob or Mary offer their pots?
 
1:46 AM
@lyxal He got lucky and hit the Jack pot jackpot
 
I made a cool thing to help me debug rSNBATWPL:
 
It parses the program and draws it as a tree, showing roughly how the AST looks
 
What's rSNBATWPL tho?
 
It'a s secret
 
1:48 AM
I don't see why you and pxeger are so scared to share this sort of stuff
 
This isn't a golfing language
I'm just too lazy to bother explaining it lol
And I want it to hit people all at once in the same way a piano from a fourth story window does
 
could u at least tell us what does it stand for
:)
 
No, the name is so verbose it would spoil everything :p
But I will reveal three of the words: should, to, and programming
 
reverse SNAKES, NOT BASKETBALL ATHLETES, THE WORLD PEELS LEMONS
really Should need big apples to write programming languages
really Should not be annoying to write programming language
How close am I?
 
You're only a few words off
 
1:52 AM
or maybe "really Should Not Be Able To Work Programming Language"
 
@RadvylfPrograms Is write correct?
 
Yep
@AidenChow Two verbs and a noun (and a pluralization) away
 
@RadvylfPrograms Languages?
 
Possibly
 
Itt has to be lol
 
1:53 AM
shoulds™
 
Radvylf should not be allowed to write programming languages
Gotcha!
 
That doesn't really reveal anything lol
 
I think that at least hints at what sort of language this will be, tone-wise at least :p
 
1:55 AM
uhh imperative programming ??
 
Prefix/infix cursedness?
 
or declarative programming ???
 
Declarative is just imperative with sprinkles
 
huh i thought they were totally opposites
 
Yeah I don't see how declarative is just imperative with sprinkles
Unless you mean that when you compile it it all turns into assembly, which is imperative (?), but then you'd be calling the entire language "sprinkles"
 
2:04 AM
i don't even know what either of those mean tbh
 
Declarative is just marketing speak for "imperative but everything sucks"
 
???
 
What is your definition of declarative? I feel that we're not using it to mean the same thing.
 
> Many languages that apply this style attempt to minimize or eliminate side effects by describing what the program must accomplish in terms of the problem domain, rather than describe how to accomplish it as a sequence of the programming language primitives[2] (the how being left up to the language's implementation). This is in contrast with imperative programming, which implements algorithms in explicit steps.
 
Yeah. It's just a vague way of describing how abstract a language is using a binary marketing term
 
2:05 AM
Basically what the Wikipedia page says
 
Hm, regex = declarative I guess lol
 
Prolog would be an example
 
"Declarative" is a bad thing IMO. A purely declarative language would be literal hell.
@user That's its own paradigm though, I don't think "logic paradigm" falls under "declarative"
The problems I have with things like SQL and the things that are supposedly good about "declarative" are pretty similar
 
@RadvylfPrograms I agree, Prolog is very difficult to program in
 
huh I wonder if I still remember how to code in Python fluently given that it's been like at least a month or two since i've touched it and i've been using basically exclusively JS
 
2:08 AM
Prolog is exactly what I would think of when someone says "declarative"
 
I mostly use copilot for python
 
You give it some rules and it just does stuff based on that
 
Regex is declarative, and really powerful because of its simplicity
 
"simplicity" :P
 
Doesn't mean it's not abused
@user I consider being able to type something representing "a string with 3 as, an even number of bs, and either 2-3 cs or 4+ ds" and having a regex engine do what I want pretty simple
 
2:11 AM
@RadvylfPrograms Constraint programming is as far as you could possibly get from imperative stuff
@emanresuA Okay yeah it's simple as long as you stick to simple stuff
 
Hmm, I suppose actually declarative stuff is the opposite of actually imperative stuff, but most of the time I see it used it's just to make semi-abstract half-imperative stuff sound cooler
 
Surprisingly expressive for such a limited language
 
@emanresuA For reference, aaa(bb)+ccc?dddd+
 
@RadvylfPrograms I mean, whenever you see any claims about a language being Some Big Word, you should probably just ignore it and try the language yourself
@emanresuA Could be golfed with {} :P
Wait nvm
 
d{4,} is the same length
 
2:14 AM
Yeah just realized lol
 
Oops, misread my own message.
aaa(bb)+(ccc?|dddd+)
 
2:27 AM
-1.'...1-'3 is a valid number in rSNBATWPL and it's the same as 17 / 15
Be afraid
 
... do I want to ask how that even works
is that a literal?
 
2:46 AM
Yep
But I have to go to sleep now so you can't know why or how for the next multiple hours
 
i could probably find some mechanism by which i could make that represent 17/15 but i could also probably make it equal like 20 other numbers so at best i'd get maybe one or two things correct by random guessing
 
3:24 AM
@cairdcoinheringaahing was there something that brought that whois request to your notice? I don't mind the sweet mod-rep, I'm just curious =D
 
@nitsua60 I was looking for a specific feature relating to chat, and found that, and from time to time I start bounties for feature requests I support
 
3:49 AM
@RadvylfPrograms No
 
4:08 AM
 
bruh
guess it's better than strictly necessary but
 
4:22 AM
@emanresuA I don't get it either.
You don't need secrecy for success lol
Not with language design at least
 
Indeed, most langs grew and acquired help by being publically accessible
 
4:36 AM
IMO your language is more likely to succeed and be popular if you have community contributions and feedback; popularity is a long game, not a short burst of interest on language reveal followed by nothing
 
since:
in flax, 41 secs ago, by PyGamer0
no one noticed ^^ :(
 
Plus you're more likely to finish because you have other people actively checking your progress and helping you out rather than you potentially procrastinating and pushing back work further and further
 
in flax, 12 hours ago, by PyGamer0
CMP: A C++ (experimental) version of flax?
 
Don't do that
Could be painful
 
what's flax currently in
 
4:54 AM
Python
 
A glflang does not need effin'ceie
 
You say that as if we aren't migrating to Scala for that exact reason
And as if we don't have two flavours of Vyxal specifically dedicated to speed
 
att
5:09 AM
imagine not writing it in a real language (machine code)
 
ah. moving to c++ would probably be quite painful and if flax makes use of python's infinite integer precision that might be very annoying for you to figure out in c++
 
5:46 AM
@emanresuA looks at jyxal
@att was planning to write flax in aarch64 :P
@hyper-neutrino i use infinite integer precision and i also use infinite float precision...
(well not infinite float precision but arbitrary float precision)
 
if you're doing arbitrary float precision you may as well just use rationals though?
unless there's some huge performance edge i'm missing
 
sympy was hard for me to embed..
mpmath.org was easier.
 
you can hack together a basic rational type without using all out sympy
 
i Am LaZy
 
has the disadvantage compared to sympy of only being able to approximate irrationals but floats do that anyways
 
5:52 AM
mpmath has arbitrary precision floats
example:
 
yeah mpmath looks really nice for practical applications
 
(warning: out of date code)
@UnrelatedString sympy uses mpmath under the hood
 
makes sense
probably why i haven't actually heard of it before now :P
 
i tried teaching @mathcat flax 2 months ago..
in flax, Mar 10 at 15:05, by mathcat
and the result is 5×(3+4)=12
CMC: what is wrong ^?
in flax, Mar 15 at 10:51, by PyGamer0
@lyxal i am using doc comments instead of doc strings :p
CMC: Guess what happened here:
in flax, Mar 15 at 11:40, by PyGamer0
there is atleast 40000 unicode characters there
       1j2i[[0,1,2],[3,2,1]]
>>>
1
^ i am proud of that overload :)
 
6:59 AM
UUGH js is being a sussy baka
Nvm I pulled a huge big brian
 
> Big Brian
 
7:50 AM
We have a lot of national flag drawing challenges, but the most important question is…
CMQ Which flag drawing challenge has had the longest shortest answer?
 
 
2 hours later…
9:39 AM
CMQ: How much RAM does your PC have?
 
My latpop has 8GB
 
> No-one needs more than 16k of memory.
 
9:59 AM
@PyGamer0 My laptop has 16 GB.
@emanresuA What is a latpop? Population at a specific latitute?
5
 
Lol
 
my computer has 8gb
i want to make an 8 bit computer .....
Main goals:
- 8 bit
- built on a breadboard
- can chat here via the computer
 
Wait, so 8 bits of ram?
 
nah, maybe 32kb of ram
a byte of ram does nothing
 
> latpop
 
10:01 AM
You're going to need a substantial amount of storage space or some clever usb dongle to have tls/ssl working
 
hmm i dont know how the internet works...
todo: make a c program that communicates with the internet (without any libraries)
@emanresuA does DSO stand for Digital Storage Oscilloscope? /s
TIL Ben Eater uses desmos
 
10:58 AM
@PyGamer0 no, silly, that's not what DSO means.
It means Danger, Stupid Ostriches
It's a warning that birds are near by
 
frick copilot
 
11:36 AM
@emanresuA what did it do wrong?
 
That's decidedly not constant time
o/
 
12:09 PM
,,,,,chameleon
 
@emanresuA aha
What happens if you try optimized before a description
E.g. optimized sorting
 
Bad idea: Encode files into images to use image-hosting services as file-hosting services
finally, a use for sa2!
 
Scene and Asset Archive Don't tell anyone that's what it was for
@lyxal blursed_ipaddress
 
12:26 PM
@cairdcoinheringaahing Sounds good =D
 
hey look it's a mod
 
Does anyone know of good alternatives to McAfee? I can't exclude folders from real-time scanning, and the general lack of options is driving me nuts
 
I use Avast online security too
 
Give up and surrender your computer to the h4x0rs
 
and quick heal anti tracker
 
12:43 PM
and other fun out-of-context HNQ questions: tex.stackexchange.com/questions/643183/…
 
@lyxal It's mostly just that I'm too lazy to try explaining my language concepts early on and then needing to keep everyone up to date lol
Announcement: I'm going to tell everyone how catstruct works later today because I'm in an explainy mood
 
0
A: Sandbox for Proposed Challenges

Kevin CruijssenRandom Pixelated Image Compression Tags: code-golfgraphical-outputrandomcompressionimage-processing Given an integer \$n\$, guaranteed to be \$\geq2\$ and a power of 2, we are going to draw multiply boards either side-by-side or below one another, where the first has dimensions of \$n\$ by \$n\$;...

 
1:19 PM
@RadvylfPrograms you take the parts of the cat and you plug them together
ez
 
I thought it was more like
struct cat {
    ...
}
 
oh
 
1:32 PM
no that's the response when you ask what a pufferfish is
 
2:10 PM
I want to make a multiplayer game but I'm 100% sure that naughty people will abuse it
The solution I've come up with is "have player-hosted servers" (think of Among Us)
 
2:26 PM
Make people login first, maybe? That way, only you and approved people would be able to play
 
They will have to, but I have no doubt someone will find a way around it
 
0
Q: Maximising affinity in tables

DarkSkullA couple invites N people to their wedding and wants to distribute them on K tables in the best possible way, taking into account their mutual affinity. Assuming that a minimum and a maximum number of guests can sit at the table and that the mutual affinity is known and is expressed with an integ...

0
Q: Maximize affinity among tables

DarkSkullA couple invites ***N*** people to their wedding and wants to distribute them on ***K*** tables in the best possible way, taking into account their mutual affinity. Assuming that a minimum and a maximum number of guests can sit at the table and that the mutual affinity is known and is expressed...

 
2:50 PM
It is finally cold enough to unironically wear my alexa hoodie and I'm so happy rn
 
this is so happy alexa play never gonna give you up
 
3:10 PM
Oh yeah, the southern hemisphere's a thing that exists
 
there are things that dont exist?
 
arguably
For instance, the Death Star is a "thing"
but it doesn't really exist
 
A smoooorbledeeebordiczzzz is a thing but it does not exist
Hopefully
 
smordle. Wordle, but you have to guess the contents of a smore.
 
3:38 PM
> Otherwise, let n, k, and s be integers such that k ≥ 1, 10k - 1 ≤ s < 10k, đť”˝(s × 10n - k) is x, and k is as small as possible. Note that k is the number of digits in the decimal representation of s, that s is not divisible by 10, and that the least significant digit of s is not necessarily uniquely determined by these criteria.
Blegh
 
I wonder if a TNB Corewar tournament could be interesting.
 
3:55 PM
 
I saw those, and Code Bots has been pretty similar too, but I mostly meant as a real-time event (get an hour or 2 to make bots, then run them all). Maybe teams.
 
I do like the idea of a KotH where all submissions are in the same small, easily learned language. It avoids the whole "I'd like to participate but I don't know (JavaScript/Java/Python)" conundrum.
@Romanp For Corewar in particular, from what I've seen of it, there are a lot of established strategies... so with 2 hours to write a bot, I'd say anyone with prior experience would trounce the rest of us.
 
Ok.
I'll think about a challenge-specific lang KoTH though (my current idea isn't working too well)
 
I have wondered before whether something like Corewar could be done using Subleq...
@Adám Latvian popular music
 
ofc
 
4:03 PM
Would probably need a way to interact better with an opponent, but seems pretty close to working. Something with just one or two functions might do it.
 
@DLosc "Dating back to the 20th century" i love it
 
Shameless plug: 4 hours left in King of the Holster! codegolf.stackexchange.com/questions/246460/…
 
RSNBATWPL is working! I just need to add the builtins and standard library :D
This is my first practical language I've actually finished
 
practical as in practical for golfing?
 
No, practical as in a practical language for actual usage, like PHP or C++
There are three main categories of language IMO: practical, golfing, and esoteric
This one's moderately esoteric, but mainly practical
 
4:10 PM
PHP and C++ are interesting choices for practical languages
 
"practical"
 
@pxeger I chose them for a reason :)
 
you have a repo for it?
id like to see it
 
Not yet
I need to add some builtins or it won't actually work. Every nontrivial program returns null right now :p
 
the latpop at 25000000000000ft is 0 people
 
4:19 PM
@RadvylfPrograms Why does your language have null?
 
What else would it have?
 
sum types
so you can have Nothing / Just x
more explicit than "nullability"
 
nothing is basically null
 
they have similar meanings, but work more explicitly
if you want a string variable to be allowed to be null, its type is Maybe String instead of just String
 
Problem is, everything's gotta be nullable
And None / Some(x) would be pretty annoying if everything returned it
 
4:22 PM
@RadvylfPrograms why?
 
It's complicated
But if a variable doesn't exist, I need some way to indicate that, and null is a convenient value for such a thing
 
4:56 PM
I just had an epic idea
I'll create an "Open in 10 years" folder
but also an ahk script which opens it after 10 years
 
and put what inside?
 
a rickroll
ofc
but maybe also some other stuff
 
A rickroll that contains the private key to decode everything else on one frame
 
clever
 
so they HAVE to watch it
 
5:00 PM
really clever
the private key will be shown in the last frame
 
Make it so that the private key is the xor of all the frames
Gotta watch 'em all
 
nah, people skip to the end. Put it around 80% of the way through at a random spot
 
what are yall planning this time?
 
and it just appears on screen for a single frame and is gone
the worst time capsule ever
 
@Romanp you can't
because I'm coding the video player in python
 
5:02 PM
Ah
 
6 mins ago, by mathcat
I'll create an "Open in 10 years" folder
@RadvylfPrograms how would that work?
 
5:13 PM
Idk I'm not paid enough to figure out the specifics :p
 
hmh
how many cookies?
 
Two, but they need to be the same diameter as the averge 37 year old's liver
 
So it turns out QBasic uses call-by-reference--and not the kind modern languages do, where you can only modify mutable values passed to a function. We're talking full "change the parameter in any way you want" call-by-reference.
FUNCTION TestFn(n)
  n = n + 1
  TestFn = n * n
END FUNCTION

a = 4
b = TestFn(a)
PRINT b    ' Prints 25, as you'd expect
PRINT a    ' Prints 5
 
@RadvylfPrograms uff
that's big
 
@DLosc huh, neat
 
5:25 PM
Now that I've run into it again, I do vaguely remember knowing this previously, because when I learned other languages I was surprised they didn't work that way. But now that I'm used to other languages, it's a royal pain to deal with QBasic.
Basically had to create separate copies of all the parameters of one function because I wanted to mutate them in a loop but definitely didn't want the arguments to the function call to be updated.
I guess it can be useful if you're expecting it. Might actually simplify my parser logic.
 
Finishing rSN and Y'know what's fun about writing an interpreter for a practical language in another high-level practical language...you don't need to garbage collect anything because the language you're writing the interpreter in handles that lol
 
Yup
 
its in python?
 
I'm guessing Java's Crypt
 
autcorrect
 
5:39 PM
(intentional)
 
@DLosc Sounds like a really bad 90's adventure video game
 
You say bad, I hear cult classic ^_^
 
Well, maybe ;)
They spent all this money flying out to Indonesia to film a trailer for the game, but never showed any gameplay...
Got GPT3 to write an article about it
in the Edge
"The team was made up of four people: Brian, Adam, Chris and Chris, each of them with different skills. "
 
Calling functions, assigning variables, function literals, and array literals now work :D
 
5:55 PM
Noice!
 
which lang?
 
Interesting choice of function call syntax--any particular reason for the curly braces?
 
Yes, a particular oddity in its parsing
 
@RadvylfPrograms stands for?
 
5:56 PM
The function call syntax has to be distinct from the grouping syntax
@mathcat Radvylf Should Not Be Allowed To Write Programming Languages
The full name is RSNBATWPL, but rSN is shorter
 
yeah totally makes sense
Ar-e-san
 
I prefer "raisin-batwaffle"
 
lol
 
r-bw?
 
6:26 PM
Looks like QBasic's maximum recursion depth is 49.
 
that's low
 
To be fair, it was designed to work on computers that had like 1 MB of RAM
 
6:56 PM
I feel like y'all are gonna have some opinions about my language's booleans
 
1 and 0?
 
if (id.match(/(do|can?|(sh|c|w)ould|did|is|was|will|wo'?|non?)?(n't)*'?/))
    return {
        type: "bool",
        data: Math.floor((id.match(/(n't)+'?$/) || [""])[0].length / 3) % 2 == (id.slice(0, 2) == "no" ? 1 : 0)
    };
no is falsy, do is truthy, don't is falsy, don'tn't is truthy, non't is truthy, can't is falsy, will is truthy, won't is falsy
And so on
 
all i can say is im confused
 
Basically the booleans are english contractions
so if {can't} isn't going to run, while if {can} will. Same with do, can, should, did, is, will, and a couple of others
 
i see why you said you shouldn't be allowed to write programming languages
 
7:02 PM
why don'tn't?
 
@RadvylfPrograms I could probably justify this fairly well with some sort of readability thing, but not with a straight face :p
 
Less than an hour left in King of the Holster!
 
Hmm slight problem it seems my parser doesn't allow functions with multiple statements in them
 
it's not a bug, it's a feature!
 
7:17 PM
Well, problem is, functions are basically the only way to group together code
 
can you make a function call another function? If so, you can still group stuff probably
 
Yeah, but rather painfully
 
Just in a terribly janky way
 
@RadvylfPrograms if you need a more than 50-character regex to figure out whether or not something is a boolean literal you are doing things incredibly wrong
 
Well I was previously using a chain of ||s and ==s that was four times the width of my screen
Would you prefer that
 
7:25 PM
I think the implication was that you shouldn't have a boolean literal syntax that compilcated in the first place
 
This is for readability. rSN's slogan is "readability first, security second, performance third".
 
I find it hard to believe that this will end up being any more readable than true/false
 
Well then you are wrong :p
 
but whatever sinks your yacht I guess
 
I think the name of the language kind of shows how much I care about actually making this language good lol
 
7:29 PM
what does it stand for?
radvlyf scripting notation?
really stupid notation?
 
Radvylf Should Not Be Allowed To Write Programming Languages
 
ah
 
i can see why
 
7:50 PM
@pxeger Politifact says: True!
 
if {do or don't} is so much more readable than if (true || false)
It makes programming so natural you might fall asleep at your keyboard
 
Hey, as long as it works for you, it has a reason to exist. If too many other people like it, tho, we might have a problem. These sorts of idiosyncratic languages sometimes catch on, and then the rest of the world has to deal with them. ;)
 
I'm almost certain I will hate the end product
Which is, after all, part of the goal :p
If rSN did catch on the world would be a better place though
Because everyone would have a shared traumatic experience to bond over
 
@DLosc have you seen FORTRAN's call by reference?
 
No--I haven't experienced FORTRAN yet.
 
00:00 - 20:0020:00 - 00:00

« first day (4115 days earlier)      last day (720 days later) »