« first day (2615 days earlier)      last day (2227 days later) » 

12:06 AM
My monitor keeps crashing ._.
Not my video driver or anything, the actual software that runs in the monitor (that handles screen brightness and whatnot) is repeatedly dying.
 
Side note: "repeatedly dying" was probably not a phrase in anyone's common vocabulary before the computer age
 
I get some text in the top right corner like Dell [model_number] has encountered a problem.
 
@ETHproductions The dumb birds kept repeatedly dying as they flew into the window
 
@ETHproductions Example: plays N++ I'm repeatedly dying :/
 
@NathanMerrill Hmm, that does work pretty well
 
12:14 AM
the key here is you talking about a population, not an individual
 
Can I just say how wierd I find Eiffel's syntax:
class
    HELLO_WORLD
create
    make

feature  -- Initialization
    make
        do
            print ("Hello Eiffel World!%N")
        end
end
 
looks like a makefile
 
Eiffel is a language with great ideas, but didn't care that much about the verbosity of the syntax
functions could have different parts (like preconditions) that were distinct from the body
(and not just functions, different constructs had different parts)
 
12:32 AM
0
A: Sandbox for Proposed Challenges

DJMcMayhemExpand compressed brain-flak code-golf string brain-flak balanced-string I was thinking about what the most efficient way to encode brain-flak programs would be. The obvious thing to do, since there are only 8 valid characters, is to map each character to a 3-bit sequence. This is certainly v...

 
@NathanMerrill I discovered Eiffel seconds after asking Dennis to add a different language to TIO and I want to request Eiffel to be on TIO except now it feels akward.
 
12:59 AM
Eiffel definitely should be on TIO, only trouble is installing EiffelStudio will probably suck
you're gonna want to look past the syntax on Eiffel @Pavel, it's awesome and almost all of the good shit in Ruby came from it
 
The syntax is amazing
Just hella weird
Although %N to escape newline in strings is... an interesting design decision.
 
I still think it's the only compiled language that really got this OO stuff figured out
I personally have a soft spot for Smalltalk but I know by modern standards not everyone likes it
 
I feel all that's missing from C# is multiple inheritence.
(And I realize Eiffel has that)
 
Eiffel does it really well too, in that it actually lets you explicitly rename inherited names
Like it seems like such an obvious solution but no one else does it as far as I know
Go does the thing where you append the class name
Ruby only really has mixins
C++ and Python just dgaf about conflicts
everyone else is snorting lines of interfaces
 
What Smalltalk implementation would you reccommend to the modern Smalltalk developer?
Wikipedia lists so many
 
1:10 AM
Pharo
You should also check out Self though which is related to Smalltalk. Self was where all the JIT techniques for Java were cribbed
 
Quartata changed their avatar, I see
 
that was weeks ago
 
1:28 AM
anyone here know perl?
 
@ASCII-only Quartata does
 
oh yeah >_>
 
@ASCII-only burn it with fire
 
1. is there a golfier way to check for 0 given a nonnegative number than `<1`? alternatively is there an equivalent to perl 6's `%%`
2. is there a golfier way to do `1..++$n`
 
@ASCII-only n<1 -> !n
 
1:33 AM
@Pavel part of an expression so that doesn't work
>_> my primary language is basically js, do you think i don't know that
 
People forget about stupid things sometimes
 
@Pavel not if they've been trying basically everything for hours
3. is there a golfier way to print an array delimited by spaces than @{[]} or $,=$"
 
2:15 AM
@ASCII-only do we want async file io
I don't think so
 
@Downgoat yes pls async no
 
I think we'd want those to run on other threads with other things
because it's pretty pointless to spawn a new thread and wait for that to finish and then close the current thread
we're not like JavaScript where we are single threaded so we need an event loop
because event loops get weird
 
:D finally finished golfing divisors
 
Anonymous
 
Anonymous
I think I broke chat
 
I think you did
Refreshing fixes it though
 
Anonymous
Unless you hit "load older messages"
 
Anonymous
There we go
 
Anonymous
It finally caught up - had to hard reload + drop cache
 
3:31 AM
@Mego :|
 
I also hate the <space>:...
 
3:46 AM
0
Q: Fizz Buzz with unique characters in columns

Weijun ZhouInspired by Digits in their lanes and 1, 2, Fizz, 4, Buzz Introduction Your task is to generate exactly the following output: 1 2 Fizz 4 Buzz Fizz 7 8 Fizz Buzz 11 Fizz 13 14 FizzBuzz 16 17 Fizz 19 ...

 
Is there a way to span a J link to multiple lines? (to put the f=: to the TIO header, for example)
 
@user202729 link pls
 
Is there a way to make TIO display 44 bytes?
 
You could do a bash wrapper
 
4:03 AM
(is .ijs the correct file format?)
 
No idea
 
New useful UI change:
2
Q: When revealing hidden comments, focus now goes to the first newly revealed comment

Jon EricsonA few years ago I was looking at how hidden comments might be more discoverable. As a result I talked with the developers about implementing a change so that when clicking "show X more comments the focus would change to show the oldest newly revealed comment. That way readers would not have to sc...

 
(Any idea why every time I post a comment, the screen seems to scroll randomly?)
(experienced on closed questions with long comment thread, for example on meta SO)
 
4:42 AM
does libpcre exist on most linux boxes by default?
 
@Downgoat No, but I'm pretty sure it comes with Git somehow
 
Usually it's C programs that rope it in. Perl and Python don't use it after all
 
Oh no, it doesn't come with Git. My system did in fact come with pcre-devel installed.
Thanks rpm -q --whatrequires
 
Really? Huh.
Headers too?
My Ubuntu box did not have the headers
 
@quartata Yep, headers too.
 
4:46 AM
Anyways POSIX regex will be in any libc worth its salt
 
rpm says nothing depends on it and I didn't manually install it, must have come with the system.
 
although it's p bad
@Pavel you sure you didn't install it to build a wheel? E.g. python-pcre
 
Can pip install dnf packages?
I'm pretty sure it just errors out when the packages are missing.
 
I just meant how did you know you didn't manually install it
for that purpose
 
Well I don't have python-pcre installed, for one thing
I don't remember ever typing it in
$ sudo dnf history list pcre-devel
ID     | Command line             | Date and time    | Action(s)      | Altered
-------------------------------------------------------------------------------
   100 | update                   | 2018-03-14 14:20 | E, I, U        |  286 EE
    32 | install mono-complete    | 2018-02-12 22:29 | Install        |   31 EE
    30 | remove mono-*            | 2018-02-12 22:25 | Erase          |   17 EE
     3 | install zsh vim mono-dev | 2018-02-07 16:24 | Install        |   69 EE
@quartata ^ would indicate it came with mono. Why it isn't showing up as a dependency of mono, I have no idea.
 
4:53 AM
Question: can I assume the memory from alloca is zero-initialized?
 
Yes, but alloca is very dangerous
 
man alloca says it's up to the compiler
 
Oh yes right I forgot that if another function ran before it there could be data above you
So yeah it won't be zero'd
alloca literally works by adding the number of bytes you specify to the stack pointer, then returning the previous one
so it "skips" over the block
It does not protect you from the slightest from stack overflows and can have strange interactions with inclined functions
So be careful
 
So it's stackalloc
 
CMC: the pattern is too obvious but too tedious to describe, so an example is given. Input is 3, and output is [[3,3,3,3],[2,3,3,3],[1,3,3,3],[0,3,3,3],[0,2,3,3],[0,1,3,3],[0,1,2,3]]
 
4:58 AM
nvm stackalloc is just a C# thing
 
Input is 2, output is [[2,2,2],[1,2,2],[0,2,2],[0,1,2]]
 
Sorry, autocorrect changed "inlined" to "inclined"
 
given n, start with (n+1) copies of n, gradually decrease each copy from left to right until you reach [0,1,2,...,n]
 
I wonder if C# has a "good" way to do malloc
 
@Pavel "good"?
 
5:04 AM
new char[n]?
 
@ASCII-only Well a "bad" way to do it would be linking libc and defining an extern function
@quartata I mean specifically to get back a void * in an unsafe context
 
oh and python 3.6 removed the space-tab trick?
i.e. I can't indent by a space and then on the next line indent by a tab
 
I'm pretty sure that' just a Python 3 thing
Not sure though
 
would my CMC be a good challenge in main
 
5:05 AM
@Pavel it is
 
@LeakyNun Yes
@ASCII-only Oh right I forgot about Marshal
 
@Pavel could you suggest a name?
 
Marshal: Letting you do horrible things in C# that are usually left for the more segfault-y languages
 
"range successors"?
Hm
It's like, in reverse though
 
"Reverse range successors"
 
5:08 AM
@LeakyNun Which one?
 
@user202729 scroll up
 
@LeakyNun This one? Seem pretty simple.
 
It's still interesting
 
(why not the reverse polynomial one?)
 
Simple challenges are fun
 
5:10 AM
But not "overall good".
 
It's not that simple
 
Also true
 
@quartata hmm do you know a golfy way to assign a hash slice to a new dictionary?
 
@Pavel ok so bad idea to pass alloca'd ptr directly to pcre_compile
 
@ASCII-only like, to copy it?
what do you mean
 
5:16 AM
like e.g. you have @d{list here}=values in a loop
 
@Downgoat I'm guessing passing alloca'd memory to anything you didn't write yourself is pretty risky.
 
you can assign into a hash slice
thats what you're doing there
really not sure what you're doing still :P
 
@quartata yes. but it doesn't get cleared every iteration
i'm using local atm but that looks terribly ungolfy. references seem to be even less golfy
 
so... You want a new dictionary like this every loop?
 
@quartata yes
 
5:20 AM
Jelly, highly suboptimal: Try it online!
 
what's wrong with my?
 
@user202729 You have two spaces there that serve seemingly no purpose
 
@quartata i'm using statement modifiers
 
Three, actually
 
@Pavel Improve readability for Jelly code.
 
5:22 AM
@ASCII-only I suspect a block and my will be shorter, but would have to see it
 
@quartata already tried, it's longer because i have to do my%d; since my doesn't take an expression?
 
But currently you're defining %d outside and then using local %d inside right
 
@quartata nope, local@d{foo}=bar
 
braces add 2, save three from removing local, shift the initialization of the hash in the loop
@ASCII-only whoa.
I can't believe that works...
Hm
 
is nmp on strike?
 
5:26 AM
yeah so those should be the same byte count though
since my%d; is the same length as local
Well I don't see an improvement
 
@quartata >_> wait actually i'm just doing local@d{foo}. without local i need =1
 
it’s been 10 minutes already
 
Oh but then the braces add two bytes for the my case
Yeah not seeing it from what you've described
 
they add one
 
Oh because of the space, right
 
5:28 AM
since for needs a space (the last thing in the block is a function call)
 
All of the pre-initialized hashes are three chars (e.g. %SIG)
 
If I don't overload operator ne in Python what would be its default behavior?
 
so you can't local those and skip the definition
 
Compare objects.
 
@user202729 compares addresses
I.e. are these references to the same object
 
5:31 AM
Our school's AP Calculus class designs a T-shirt every year. This year the shirt says "If you forget the +C, you get a C+", and I think that's lovely.
 
(just tried)
 
maybe nmp is too shocked because I haven’t posted in a long time
 
@LeakyNun usually posts once an hour iirc
 
@Pavel drilling in bad habits for when they hit multivariate I see
just tack on the + C, don't worry about the why
 
3
Q: Reverse Range Successors

Leaky NunGiven a positive integer n, do the following (and output every stage): start with a list containing n copies of n. do the following n times: at the ith step, gradually decrement the ith entry of the list until it reaches i So, for example, if the given n is 4, then you start with [4,4,4,4], a...

 
5:33 AM
@LeakyNun does it have to start at 1
 
@quartata It's explained why, but we don't get to multivariate in Calculus AB or BC, so until Calculus in Uni, there will always be +C on the end
 
I thought in your example it started at 0
@Pavel fair
 
hmm @quartata are there any variables that are different every loop (apart from the loop variable of course)
 
although a C+ comes across as harsh, I hope that was just for the consonance and not literal :p
 
@quartata well I didn’t just copy the cmc
 
5:35 AM
Can confirm not literal, always forget +C and have a B+
I'm going to wear the shirt to all my exams to remind me not to forgot it in future
 
@Pavel the AP actually has rules about that
For when you take the exam
@LeakyNun I just meant maybe you want to offer 0 or 1 as the starting point?
@ASCII-only no don't think so
 
@quartata nah
 
> Clothing with subject-related information
from the "not allowed" section on the college board website
lol
 
speaking of college board I'm curious if they'd let me use a dip pen for my SAT essay
 
Oh im looking through the guidelines of the turkish equivalent of ap
Nowhere they say "don't wear things with words on it"
 
5:51 AM
@betseg only one way to find out if that is permissible
 
6:07 AM
0
Q: Lyric -> Pronunciation

l4m2Write a program that, when given the input on the left, output the result on the right: 呼んでいる 胸のどこか奥で yo n de i ru / mu ne no do ko ka o ku de いつも心踊る 梦を见たい i tsu mo ko ko ro o do ru / yu me wo mi ta i 悲しみは 数えきれないけれど ka na shi mi wa / ka zo e ki re na i ke re do その向こうできっと あなたに会える so no mu...

 
6:41 AM
I can never understand why JS allows using names in object keys ({key:"value"}) and json doesn't allow them ({"key":"value"}). Shouldn't it be reverse?
 
@Soaku this is why JSON5 exists
 
:O
 
@Soaku JS allowing them was part of the ES spec, JSON not allowing them is to make it easier to parse I guess? because it reduces the number of data types by one
 
@ASCII-only But on the other side, JS is dynamic, so var key=1;console.log({key:"test"}), should, in theory, print {1:"test"}. It's how it works in any other language I know, with such or similar syntax. JS parses it differently. That wouldn't be such problem in JSON tho, since it doesn't allow variables.
 
@Soaku yeah JS does that with {[key]:"test"}
because in JS you're usually not using objects as keys
 
6:51 AM
This is confusing...
 
Why does the image appear to be so low-resolution?
("pixelated")
 
@user202729 I think it's on purpose. Why exactly? I don't know.
 
Yeah it's on purpose
ask whoever drew it
 
Why do J define short verbs and then define longer variant of it ...
But stdin is actually shorter than 1!:1&3...
 
7:13 AM
@user202729 longer?
@user202729 not that the latter works for arbitrary files...
 
That appear to make J programmers can't read code of others.
(at least those who use long names can't read code of those who use short ones)
(C has a similar issue, those who define one set of macros can't read code of those who define other set of macros, but that's not too much of a problem)
 
 
2 hours later…
9:30 AM
hi
 
9:52 AM
@Riker if the person who named walkie talkies also named other things.
7
 
10:06 AM
I now realised I wanted to ask a sightly different binning question.. oops
 
10:18 AM
0
A: Sandbox for Proposed Challenges

FrownyFrogNot Quite Roman Ternary code-golfinteger Given an integer n ≥ 0 , output it in a non-positional base-3 notation, using digits 139ABCDE… and a 1-character separator. Every digit is a consecutive power of 3 and the digits on the left side of the separator are negated, e.g.     A931|B   →    81−(1...

 
 
3 hours later…
Anonymous
@user202729 Like what?
 
@Mego Isn't that very weird?
 
Anonymous
I still don't know what you're referring to
 
He left a comment, so he’s a PPCG user. That gave him 100 reputation.
 
But why not 101?
 
1:17 PM
oh he had a post too
and then deleted it
oh i see
not 101
 
Anonymous
@FrownyFrog You don't need to post anything to get the association bonus
 
0
A: Sandbox for Proposed Challenges

l4m2Is it a valid number theory expression? A number theory expression contains: There exists at least one non-negative integer (written as E, existential quantifier) All non-negative integers(written as A, universal quantifier) + (addition) * (multiplication) = (equality) >, < (comparison operators)

 
Anonymous
Also I didn't notice that it was 100 and not 101 until now
 
Anonymous
Probably got downvoted on a question
 
Anonymous
Or manually set his rep to 100 :P
 
1:25 PM
he has the badge critic
...actually, it looks like he's upvoted and downvoted many times
do you get rep for your first upvote?
or just a badge?
 
@NathanMerrill Of course not.
> 31 votes cast
Makes sense.
 
ok, then he's cast exactly 30 upvotes, and 1 downvote
 
Anonymous
Oh right, casting answer downvotes costs 1 rep
 
Anonymous
I always forget that
 
A mod that doesn't know everything about SE pfff, demote him!
5
 
1:38 PM
So many people seem to think wikipedia is entirely serious. They are wrong
 
@moonheart08 it is one of the greatest sites on the internet though.
 
Agreed
 
Do I like delete the sandbox post?
 
Once you've posted to main yes. Keeping a post only 3h in the sandbox doesn't really give people the chance to notice and comment on it though.
 
I have a NmP. Although not explicitly mentioned in the question, I am partially referring to
This one is clearly not unclear. >.< — user202729 5 hours ago
 
1:54 PM
2
Q: Not Quite Roman Ternary

FrownyFrogGiven an integer n ≥ 0 , output it in a non-positional base-3 notation, using digits 139ABCDE… and a 1-character separator. Every digit is a consecutive power of 3 and the digits on the left side of the separator are negated, e.g. A931|B → 81−(1+3+9+27) → 41. A digit may appear only...

 
@FrownyFrog Isn't the 139ABCDE... somewhat arbitrary? Why not 123456789ABCDE...?
Basically balanced ternary?
@FrownyFrog Yes, posted sandbox post should be shrinked and deleted.
 
It's a pretty arbitrary challenge yes
I also didn't want to allow a space separator
 
(also links to many other languages)
 
2:14 PM
would anyone be willing to take a look at my problem hosting site and see if I can improve the CSS anywhere? :D here
 
I decided to see how dense commands could get if you had a simple jelly like language, but all operands were order dependant, and could take variable arguments
 
@HyperNeutrino "CSS" and "improve" just don't go together
 
I currently have something i suspect is potentially turing, using only 15 commands
 
@moonheart08 Turing-complete please...
 
2:16 PM
sorry.
 
@HyperNeutrino Maybe you can somehow fix the text wrapping?
 
I have a function density of on average 14 diffrent functions per symbol. You really can get dense
 
@user202729 where?
oh I see. my window was too wide to notice
 
@HyperNeutrino Probably you have a larger screen...
 
@HyperNeutrino didn't know about vw/vh, that is neat:)
 
2:17 PM
Probably with trailing ... or something...
 
@flawr yeah :D my friend told me about it bc it's better than % because that's window size instead of viewport
 
@HyperNeutrino Why so many &nbsp;?
Consider using actual table...
 
@user202729 to add spacing to elements to make them line up or to make them look nicer
 
npm package to check whether a number is 13: github.com/jezen/is-thirteen
 
how do I make line wrapping space out differently ._.
 
2:22 PM
0
A: Not Quite Roman Ternary

ArnauldJavaScript (ES6), 82 bytes Outputs in lowercase, which should hopefully be fine. f=(n,k=0,s='|',c='13'[k]||(k+7).toString(36))=>n?f(-~n/3|0,k+1,[s,s+c,c+s][n%3]):s Try it online! Similar to Leaky "Ninja Master" Nun's answer and also based on xnor's answer.

Leaky "Ninja Master" Nun...
 
(can't figure out how to draw thinner lines)
 
yeah idk how to fix that without making the rest of them look overly spaced
 
request support for Jelly
 
I'm probably just going to use a borderless table
@user202729 10/10 will do
 
@HyperNeutrino And have each cell begin with a |?
 
2:26 PM
@user202729 I might actually use borders in between instead of the pipe thing
 
... I thought the table was ASCII tables (like J) ...
... why is there a console.log on submit ...
 
1
Q: A Close-Vote is clearly not a Super-Downvote! What to do with challenges that are wrongly closed but also widely-disliked?

user202729Related: What to do about widely disliked questions that don't technically break any rules? Unspoken challenge rules What does "unclear" mean? [Gaming Meta.SE] A Close Vote is not a Super-Downvote. Please don't use it as one We have a lot of widely-disliked challenges. Some of them are wro...

 
@user202729 did you try a no-separator format?
I mean the challenge
 
function submit() {
  console.log("Submitted!");
@FrownyFrog Separator what?
 
2:32 PM
if you sort the right side down, there's no need for a |, is that longer in Jelly?
 
Oh, the separator is flexible.
 
very
 
Saved 2 bytes.
@HyperNeutrino Not aligned...
 
working on it
 
@user202729 now the output has a stray V
 
2:39 PM
@HyperNeutrino Don't make different tables.
 
yeah I realized
 
@user202729 now it's broken for sure
 
@FrownyFrog How? (the 24 bytes version)
... Ah, I realized.
 
yeah it needs a left side or it flips out
 
I need to experiment with Ġ a bit. Never used that.
 
2:51 PM
0
A: Sandbox for Proposed Challenges

musicman523Find the Intersection code-golf geometry Challenge Given some planes in an n-dimensional space, return the intersection of these planes with the highest degree, if it exists. Details You will be given two integers, n and k, such that 0 < k ≤ n and 1 < n. You will also be given (n-k) hyperplan...

 
CMC: Given an integer x∊ OEIS055025, output its Gaussian prime factorization.
 
A space separator was criminalized
It's a crime now
Dont answer with a space separator
 
@FrownyFrog Huh?
 
@J.Sallé Test Cases: 5 → (2+i)(2-i); 9 → 3²; 29 → (2+5i)(5+2i); 41 → (4+5i)(5+4i)
 
@FrownyFrog (now use a newline)
 
3:01 PM
fine:)
everyone's satisfied
 
@FrownyFrog Why do you change rules after posting...
 
dont be mad :(
 
3:17 PM
@HyperNeutrino 504 gateway timeout?
 
3:36 PM
@LeakyNun huh, did anybody assume that?
 
@EriktheOutgolfer well just in case
 
well, the user may already know that, there's no need to comment that each and every time there's a "related" comment :P
 
It seems unnecessarily inefficient...
 
@EriktheOutgolfer to be fair, there were about 7 comments above Leaky's. Some seem to have been deleted
 
(or is that special-cased for determinant and permanent?)
 
3:44 PM
but he said it was "well just in case"
 
(or is there a way to efficiently calculate the definition?)
 
@user202729 Yes it is.
 
@Mego pfff, SE employee abusing his diamond
 
@EriktheOutgolfer maybe I didn't interpret the comments they way people intended but some seemed quite harsh. idk though
 
well, technically, there is a comment indicating lack of understanding, and it has 4 upvotes, that means 5 people don't have a clue about the challenge and it should've been closed as unclear
 
3:48 PM
@EriktheOutgolfer Votes are weird as usual.
"it's not even the worst challenge on main, votes are weird, again, as usual"
 
No answers means they can delete it if they want to
 
(who cares about rep?)
 
<--
 
flags for shameless self-advertising oh wait that's actually an answer to a question
 

« first day (2615 days earlier)      last day (2227 days later) »