« first day (4152 days earlier)      last day (704 days later) » 

12:07 AM
@user I suggested that once, to no avail obviously
@user they always do
@Seggan definitely Fig
@Seggan I'm assuming the G stands for generate, the `0 1) is the list [0, 1] and '+ is a 1 element lambda
@Seggan and that R2 is the range [0,2)
Meaning that Fig is some sort of prefix language
 
0
A: Sandbox for Proposed Challenges

emanresu AFlatten from the inside out Say we have a ragged list [ [1, 2], [3, [4, 5] ], ] And we want to flatten it by a layer, decreasing its depth by 1. We could flatten it from the outside: [1, 2, 3, [4, 5]] Or, we could flatten it from the inside. To do this, take all subarrays with maxima...

 
@lyxal nope. Fig is a functional language
@lyxal '+ is not just a 1 element lambda
its a 1 function lambda
otherwise, you are correct
its equivalent to (G `(0 1) '(+)) in Clojure-ese
 
(prefix language refers to the syntax, functional language refers to the semantics. They're not incompatible)
 
^
Lisp itself is described as being paranthesized prefix notation
So any dialect that keeps the (func args) syntax is also considered paranthesised prefix notation
But anyhow, man if I had a nickel for every fractional byte golfing language based on lisp-like syntax, I'd have 2 nickels. Which isn't a lot but it's weird that it's happened twice.
 
12:25 AM
whats the other one
 
HBL
 
also, the 2nd program is equivalent to (G (R 2) '(+)) if you didnt get it
@lyxal ah
ig that one didnt go so well
i aim for fig to actually be used :)
 
@Seggan the idea for Fig sounds different enough though that it sounds like it has a fighting chance at being successful though
 
@lyxal Wait is this a regular thing lol
@Seggan it’s still newish
 
@lyxal how is it different, may i ask?
 
12:31 AM
@DLosc is working on it, you guys could maybe trade ideas
 
12:43 AM
@user this isn't the first time they've exchanged passwords and stuff
@Seggan 16 characters doesn't exactly allow for easy writeability
97 characters do
 
yeah i just thought of that lol
tho he still has a shorter scoring system: .5 bytes vs .835
 
in lambda.chat, May 26 at 14:43, by lyxal
Just make a private github repo, invite Radvylf as a collaborator and put it there
@Seggan but you have more room to add functions
Meaning that what would take a bit of padding in HBL will only take a single unit in Fig
 
true
 
@user yes.
 
technically mine is 94 because space and nl are nops and tab is the string compression char
 
12:56 AM
@Seggan you also won't have things like + representing the literal 4
Meaning people can just write Fig as they expect without having to think about weird syntax rules
Which imo has been one of the obstacles holding fractional byte languages back - approachability
 
@lyxal wait whaaaat
ooh intellij got a new commit UI
 
are you not aware of how hbl does literals
^
 
Sandbox posts last active a week ago: Rational numbers
 
Nibbles is the only fractional byte language I've seen that has a good degree of approachability
 
1:35 AM
also lyxal youll be pleased to learn i stole waaay to much syntax from vyxal :P
i.e. ? for input, , for printing, M for map, F for filter...
 
Personally I think 32/64-char is good
 
yeah but why do that if youve got all of printable ascii your entire keyboard at your disposal
 
You can make a compiled lang with syntax sugar
 
wait how do irrational byte counts deal with this
 
e.g. say 5 can be compiled into some sort of compressed literal, "string" can be maybe somehow UTF8'd
 
1:45 AM
is my dream of a full ascii codepage falling apart?
 
It's more that it's inefficient just because of the loss versus the gain
 
bingus
 
@emanresuA ParseError: my brain
that sentence makes no sense to my brain
wait it makes sense now
still, how does an interpreter read an irrational codepage?
 
yesterday, by Wezl oOvOo
pro gre ess who ray
@Seggan You'd be encoding the program into a bijective base <codepage-length>
So the raw program would be pretty much a number
 
yay just ran my first Fig program
+1 2
 
1:52 AM
Woohoo
 
~3.3 bytes (3.2999564210935638399131094644405)
 
0
A: Sandbox for Proposed Challenges

emanresu ATruncate words in a sentence Inspired by wezl. Your challenge is to take words (sequences of [a-zA-Z]) and truncate them to length 3. For example, never gonna give you up would become nev gon giv you up. Words will not necessarly be delimited by spaces - for example, youtube.com/watch?v=dQw4w9WgX...

 
I should probably stop lol
But when a mod deals with those I'll have Deputy ;)
 
2:04 AM
@hyper-neutrino / other mods would y'all mind taking the other two LDW posts off Hot Meta Posts?
 
the refinement and proposal?
 
Yeah
 
removed refinement, and proposal isn't on it anymore
WW already removed it a few days ago
 
Oh :P
Wow - pxeger has exactly 1 more year rep than me
 
0
A: Sandbox for Proposed Challenges

emanresu AEnumerate all pure sets open-ended-function In set theory, a set is an unordered group of unique elements. A pure set is either the empty set \$\{\}\$ or a set containing only pure sets, like \$\{\{\},\{\{\}\}\}\$. Your challenge is to create a bijection from positive integers to pure sets. This...

 
2:28 AM
0
A: Sandbox for Proposed Challenges

emanresu AIs it a valid list? Given a string like [[[],[[]]],[]], made of only commas and square brackets, your challenge is to determine whether it represents a list. A list is either: [], the empty list At least one list, joined with commas and wrapped in square brackets. You may output as: Any two co...

 
>:|
 
3:00 AM
Confusingly, "emo" sort of means two different things depending on who you ask. There's the music genre, which was never really that mainstream, and then more well-known bands associated with the "emo kids" and emo fashion in the 2000s like My Chemical Romance and Fall Out Boy were labeled as "emo" despite not really fitting into the original definition (although most of those bands were heavily inspired by it IIRC)
 
 
3 hours later…
6:16 AM
0
Q: Consecutive coin flips

dingledooperThis is a cross-post of a problem I posted to anarchy golf: http://golf.shinh.org/p.rb?tails Given two integers \$ n \$ and \$ k \$ \$ (0 \le k \le n) \$, count the number of combinations of \$ n \$ coin tosses with at least \$ k \$ tails in a row. For example, if \$ n = 3 \$ and \$ k = 2 \$, the...

 
 
3 hours later…
10:07 AM
Hi there,
Is it okay to use a file path as input for a Golf-Problem? Or should I reformulate this question to input two matrices directly?
https://codegolf.meta.stackexchange.com/a/24872/113044
 
10:18 AM
I'd recommend following the I/O defaults and just allowing passing the strings or similar
In this specific case, reading/parsing the files doesn't really add anything to the challenge.
 
@not-a-feature Yes, we recommend allowing flexible input, because it means answers don't have to spend a lot of bytes on dealing with the IO requirements
 
10:43 AM
okidoki, i thought that it would make this a little bit more interesting as there are only a few file-parsing problems out there
But thanks for the input, i'll change that
 
11:35 AM
 
 
1 hour later…
12:42 PM
@user don't forget to award this bounty
 
Thanks to the web engineering course I did, I got really confused for a second
Like I wouldn't imagine you'd just switch frameworks mid-development
 
If we're talking about the original Struts, the answer is approximately 10 years ago: cvedetails.com/vulnerability-list/vendor_id-45/product_id-6117/…
 
yikes, that's a lot of vulnerabilities
no wonder they taught struts^2
 
 
2 hours later…
2:36 PM
@pxeger dw, I’m just stretching it out
 
ok lol
 
hellollo
 
ehlo
 
I managed to get video streaming from my ev3 working by setting the framerate to 3fps
it is quite rain outside
 
@Ginger Set it to 1fps and really have fun
 
2:43 PM
@lyxal tried that, but I found that I can do up to 3 with no noticeable issues
if I suddenly stop responding and OLIMAR drops offline then it's probably because I lost power
 
@Ginger liar. It is no rain outside
Only black
 
you are in australia
weather is not the same everywhere
 
Well okay there's actually a lot of light because it's a gosh dang full moon
At least I think it's full
 
it looks like someone set the render distance to 4
I can't see anything through my window
sounds like someone's throwing assorted ball bearings at the wall
 
Dang it I didn't know I was being that loud
 
2:46 PM
logging off for my own safety
 
Going to sleep for my own sanity
o/
 
2:57 PM
@pxeger Multi-dimensional array intuition for non-APLers…
 
@Adám ...?
 
APLers don't need your explanation about touching edges in a multi-dimensional array
 
I don't think most people need it, but I put it there to give a precise definition that's easier to base a programmatic implementation on
 
Don't get me wrong; you're doing a fine job of explaining it.
Challenge seems exceedingly clear to me.
Personally, I prefer "rules" (other than obvious ones, which can be left out) to be part of the initial spec.
So I'd merge "You do not need to handle empty arrays" into the opening spec: "Given a non-empty multi-dimensional rectangular array"
 
I try to avoid information overload in the introduction of the challenge.
> Given a multi-dimensional rectangular array of non-negative integers, pad it with the minimal number of zeroes so that no non-zero elements of the array are "touching the edges" of the array, in any dimension.
is already a very long sentence, which may be hard to parse
 
3:09 PM
> Given a non-empty multi-dimensional rectangular array, pad it with zeros so all edges are all-zero, along all dimensions.
Avoids the double negative "no non-zero" too.
 
@pxeger Unlike rectangularness, padding minimalism, etc., the rule "you do not need to handle empty arrays" isn't particularly relevant to understanding the task.
It concerns an edge case you likely won't think of until you've started implementing it, so I don't think it needs to be in the intro
I have just moved the Rules section to above the Test Cases section, though, to make it slightly less "hidden"
 
@lyxal my brother searched on youtube: "lxyal screaming aaa"
LOL
 
3:26 PM
@Ginger Isn't that one of those lego robots programmed with blocks? I thought you had a proper one built
 
3:37 PM
ok, I'm back
 
What is this? ↑
 
@user I do, but due to chip shortages I don't have its brain yet
but programmed with "blocks"? don't make me laugh :b
I'm using linux!
 
Oh ok
I worked with some at a summer camp in middle school and we had to use an awful block language
 
yea
I'm programming it using the power of Python
 
I guess actual code was always an option, they just wanted to make it "easy" for us
@Adám The most atrocious C I've ever seen?
 
3:41 PM
@Adám Looks blurry to me (which is probably a good thing)
 
@user But what's up with all the [/|\]s?
I also spot some ===s — is that valid in C?
 
@Adám what the hell is that
@Adám i dont think it is valid
 
Too many * too
Feels like something an AI would generate
 
That would actually fit the plot!
 
What is it?
 
3:48 PM
It is supposedly some code to store human memory and conciousness, written by a human/AI hybrid; another example of the entertainment industry failing on the realism front when it comes to computer code.
 
Oh it's from a movie
 
TV show, but yeah.
 
I don't understand, if they know enough about programming to write code looking like C, why can't they copy actual C?
I would love to know how this "code" was generated
Which show is it from?
 
by a monkey bashing a keyboard I assume
 
It looks like they took real code, removed all the newlines, added spaces randomly, and inserted [/\|]
 
3:51 PM
@user The 100.
 
Oh no, don't watch that
It is awful
 
@Adám appears to be an interspersion of OpenBSD source code and the repeated random (ASCII-art?) string [/|\][/|\][/|\]===[/|\][/|\][/|\]
 
Oh, so all the spaces are from the original source code
 
@pxeger Neat. Nice find.
 
I've never seen anyone align their method names like void foo
@pxeger Guess they didn't find OpenBSD cryptic enough and decided to throw in some junk
 
3:55 PM
@Adám a film studio would only need to pay someone experienced about £100/hour in consulting fees to give them an example of some realistic source code, which should be a drop in the bucket for a Hollywood budget
I wonder if OpenBSD can sue them for not including the copyright notice in that reproduction
it's probably fair use, isn't it
 
Parody?
 
@pxeger I mean, they didn't even hire good writers, so I don't see why they'd hire consultants for realistic code
 
@pxeger Yeah. I wonder why they care so little about realism. I notice the same thing whenever they picture Jewish religious practice and life. All other complex field's specifics are probably misrepresented too; I just only know about those two fields.
 
Because (they think) most viewers don't care, I suppose
 
well, I'm sure you can tell them that if they want good source code they can call TNB
 
3:59 PM
It's fine to have a villain speak gibberish because if the audience is American, most of them will believe it's Russian
 
@Adám a friend of mine, who's a physicist, was approached for consultation on the topic which his PhD thesis in order to make sure they got it right in some film
that's why I'm wondering why they never do it for computers
 
Cool, did they get it right?
@pxeger I hear Mr. Robot did consult people
 
I don't know what film it was, so I couldn't tell you
Mr Robot is the one good example I can think of, out of every show I've ever seen or heard about
 
I've heard of films consulting actual experts. Didn't they do that to get a best estimate of what a black hole would look and behave like up close?
 
It'd also be extremely boring to see realistic programming stuff, so you can't really blame directors for making it look cool
 
4:01 PM
But that code doesn't look cool. They could at least have used some top notch AI code.
 
Although, actually, they'd need to have got someone who vaguely knew something in order to find some random snippet of OpenBSD source code
 
Yeah it's possible they got trolled by their "expert" :P
Otherwise they'd have gotten something like
 
Stock photo of jQuery?
 
Yup, except it was on a university's website
 
I've seen both of these before. You get those if you image search for "computer code" or something.
 
4:05 PM
It was probably like:
Producer: "anyone know anything about code?"
2nd assistant grip: "yeah, my brother's a software engineer"
--- later ---
2nd assistant grip: "hey brother, can you send me an example snippet of code?"
2nd assistant grip's brother: "here's what I was working on yesterday:"
2nd assistant grip: "great"
Producer: "great"
 
Yeah, I searched for "image of code"
 
Sad.
Then again, what would I screenshot to be representative of APL code…?
 
@user amusing that searching use_wystepuje brings up only variations of that image, and no indication as to what its source might be
 
Weird, my second result when I searched for it was this (DDG) nvm it looks like all the results are nonsense
 
Looks like "występuje" is Polish for "occurs"?
 
4:09 PM
wystepuje is Polish for "occurs", apparently. Any idea if there's a JS method meaning roughly use_occurs?
Ninja'd
 
it's not a method, it's an object attribute name
 
4:32 PM
86
Q: Largest number in ten bytes of code

YpnypnYour goal is to print (to the standard output) the largest number possible, using just ten characters of code. You may use any features of your language, except built-in exponentiation functions. Similarly, you may not use scientific notation to enter a number. (Thus, no 9e+99.) The program m...

 
@TannerSwett ?
 
Do we have a "largest number in X bytes" challenge that doesn't have the more questionable restrictions that this question has (like "you may not use a built-in exponentiation operator," "your code must actually run in less than an hour," and "you can't output the number as a string")?
 
take a look at
 
Awesome, thanks.
 
5:35 PM
@Adám you could take a peek at my website :P
quite a bit of sweet APL art
only skew it a bit/add glow and distortion like on that image and it'd be perfect
 
5:48 PM
It's not wide enough though
It has to take up the entire width of the screen and have no newlines
 
6:30 PM
@pxeger +10 score on a sandbox post... that's pretty rare
inb4 it does terribly when posted on main
I just updated the "sort by active" links in the Oldest and Highest-scored sandbox posts, but as a result they're now the most active posts too...
 
 
1 hour later…
7:49 PM

Radvylf trying to send Ginger a password reset link

23 hours ago, 1 hour 13 minutes total – 114 messages, 6 users, 0 stars

Bookmarked 36 secs ago by mathcat

hilarious
10/10
 
Lol
@Adám @pxeger But if proofreading is all you're doing, I'd say it's good to go :P
 
Agreed.
 
@emanresuA input [] -> []?
Also re codegolf.meta.stackexchange.com/a/24876, I presume [[],] is falsey? Because many languages will accept it too.
 
 
1 hour later…
9:09 PM
CMC: Given a list with odd length, get the first element, the first three, the first five etc
 
@emanresuA Can we assume numeric list?
 
Yes
 
@emanresuA Jelly, 4 bytes: ;\m2 (Try It Online!)
ascii only \o/
 
@emanresuA BQN, 9: ≠`∘=˜/1↓↑ Try!
 
@emanresuA Scala, 28 bytes: _.inits.grouped(2).map(_(0)) (reversed)
 
9:19 PM
@emanresuA dzaima/APL, 8: =⍨≠\⍛⌿,\ Try it online!
 
Stream.from(1,2)map _.take gets very close, but unfortunately, it's an infinite list that goes [1], [1, 2, 3], [1, 2, 3, 4, 5], [1, 2, 3, 4, 5], [1, 2, 3, 4, 5], ... forever
alert lol
 
if i do return it leaves the function :P
 
@thejonymyster With tio.run/#javascript-v8 you can use print
 
ah ty
too late to edit but yea, it still works
 
9:25 PM
Ooh, got Deputy
 
9:46 PM
Haskell, not the most elegant solution: f[]=[];f x=x:f(take(length x-2)x)
 
@emanresuA does the order of output matter
 
@thejonymyster I'll say no
 
@user same length, but more elegant: Haskell, 33 bytes: f x=[take i x|i<-[1,3..length x]]
 
9:51 PM
aha
 
@des54321 Ah, that's nice
I still don't like the length but without it, you'd probably end up with a longer solution
 
i wish empty arrays were falsy and nonempty arrays truthy
 
without the length youd just get the last item repeating forever, I wonder if theres any smart way around that
 
Maybe recursion
 
@emanresuA JS, 34 bytes: f=x=>x+x?[...f(x.slice(0,-2)),x]:x
@thejonymyster Yeah. one of JS's most annoying array quirks
 
9:59 PM
woah nice golf!
 
I learned the x+x and x+x?:x trick from Arnauld a while back, which fortunately isn't too much longer
 
just need a sec to start understanding this lol
 
@emanresuA JS, 32: x=>x.map((e,i)=>i%2?[]:e).flat()
 
@Adám x=>x.flatMap((e,i)=>i%2?[]:e)
(I think?)
 
Seems like it.
 
10:01 PM
@Adám this doesnt seem to work in what im using :o
 
Works for me in FF.
 
@Adám This just gets every other element
 
weird, its grabbing every other element for me
which is like... surprisingly functional still in a way yeah
 
10:02 PM
D'oh, I was solving a different problem!
 
lol yeah I almost did the same
@emanresuA x=>x.filter((_,i)=>i%2)
 
yeah :P
 
@emanresuA I've been searching for a better way in haskell for a bit now with no luck, it might just be the beauty of haskell that the shortest way to do something is the cleanest way
 
10:28 PM
This one's shorter by only a byte and its output is reversed: Haskell, 32 bytes: f[x]=[[x]];f x=x:(f$init$init x)
 
i meanwhile seem to have managed to break haskell with this: Haskell, 41 bytes: f a=foldr(\_ x->(init.init$head$x):x)[a]a
which claims it is returning an empty list even though there is no way it can be returning that
 
Interesting
 
@des54321 It complains about tabs for me lol
 
I wanted to try filtering inits but there's no way to do that nicely
 
@emanresuA thats just a warning, you can ignore that
 
10:33 PM
@des54321 Why is there no way for init to be called on an empty list?
 
wait is that whats happening? i guess i just suck at reading haskell error messages
that makes more sense
 
Yeah I think it only has one element so the second init is sad
 
11:31 PM
0
Q: Leaderboards not working any more

N. VirgoSome of my old questions, such as Paint Starry Night, objectively, in 1kB of code or Write Moby Dick, approximately have large numbers of really great answers and still occasionally get answers today. I used to use the leaderboard snippet to keep track of the scores, but I found today that it's n...

 
@NewPosts Can't test this because my school sometimes accidentally blocks jquery lol
 

« first day (4152 days earlier)      last day (704 days later) »