« first day (2667 days earlier)      last day (2169 days later) » 

12:11 AM
@Neil Hmm. what's the 0 for
 
github front page is ruined
what is this
 
12:30 AM
So, I've got an interesting story.
At my job, I work with .NET core.
The GNU ncurses library recently introduced a new format for the TERM environment variable.
.NET Core is unable to understand this new format.
By building the curses interface for Nethack on my computer, I had to grab a new version of ncurses, and the TERM variable on my system went from just `xterm` to also listing more detailed information about color support.
.NET Core immediately reads TERM to determine how to interact with the console.
 
uhhh sounds like .net core being, i dunno, an alpha got you fired
it should always have a fallback for TERM lol
you should post an issue and also sue Microsoft
 
@quartata Well someone did post an issue
That's how I found out
This is totally Microsoft's fault
Blaming nethack is funnier though
 
nethack is actually the most fault-tolerant and cross-platform (considering it needs to do userland input cooking at least) piece of software ive ever seen
the thing can recover from almost any error no matter how absurd
 
Apparantly they're finally dropping Amiga support in the next major version
But it runs basically everywhere
 
1:37 AM
user image
11
 
 
5 hours later…
6:29 AM
> std::mersenne_twister_engine
 
@Downgoat what about it
 
For compiler errors, most of the time just looking at the errorneous line of code and rubber duck debugging it (with some help from the documentation) is more useful.
Reading the compiler errors are probably only for debugging the compiler or the STL.
 
 
2 hours later…
9:02 AM
3
A: mastermind horse battery staple

David RogersC# - Total: 1000, Run Time: 305 Seconds, Avg: 24, Min: 14, Max: 32 Wow Avg's < 15 that's pretty good, well I can't beat that but I did take a stab at it so here's my approach. I broke it up word by word then solved them in succession. By determining the length of the first two words and then ma...

:|
@user202729 or when you're a beginner
 
@ngn :)
@Pavel g++/gcc is making a serious effort to improve their compiler errors
 
9:16 AM
@Anush that's not good enough :P
especially since they switched to a recursive descent parser a long time ago :P
 
It's the programmers who should make effort to improve their ability reading the compiler errors. Don't expect machines to do your work.
 
@user202729 ... so everyone should be programming in asm?
 
9:47 AM
@ASCII-only it's to prevent missing overlapping overlaps, which otherwise would need a lookahead, which costs 4 bytes
 
10:44 AM
@ASCII-only :)
 
1
Q: Binary tree rotations

BMOBalanced binary search trees are essential to guarantee O(log n) lookups (or similar operations). In a dynamic environment where a lot of keys are randomly inserted and/or deleted, trees might degenerate to linked lists which are horrible for lookups. Thus there are various kinds of self-balancin...

 
 
1 hour later…
12:11 PM
0
Q: Treasure Map Drawing Bot

racer290You're organizing a treasure hunt for your friends. To conduct things more easily, you want to draw a map of all locations where you hid the precious objects. Input A string consisting of the locations of the objects separated by newlines. Each location is represented by two non-negative intege...

 
 
3 hours later…
3:09 PM
@Neil Fails this test case
 
might be left-associative concatenation
 
@EriktheOutgolfer The OP gave this test case
 
yeah I know, didn't say it's valid
looks like it should be right-associative
 
3:28 PM
Oops, almost forgot to renew my domain name, expires in 3 days. Protip: if you want to remember when something is due, don't write it down or think about it.
 
you're able to post that, so you're most probably able to set an alarm for that specific date too :P
 
4:16 PM
0
A: Sandbox for Proposed Challenges

Redwolf ProgramsTired Sumo Fighters king-of-the-hilljavascript This is a simple KOTH challenge in which you program a bot to push other bots out of a ring. Each round consists of two bots, and every bot will compete against each other bot at least 10 times. The reason that this KOTH is different from other sim...

 
4:31 PM
I have been running my brute forcer (for Hexagony Hello, World! program) for quite a bit of time and it still can't find a 24-byte solution. Should I give up?
 
in Mathematics, 1 min ago, by Luis Mendo
Does anyone know a symbolic language/package that provides the general term of a Taylor expansion? For example, for f(x) = 1-log(1+sqrt(1-x)) I can use Matlab's symbolic package to numerically obtain each Taylor coefficient. But I need an expression of the general term. (Actually I want to prove that they are all positive).
^ Any ideas?
 
@LuisMendo Try Mathematica ... I'm not sure if it can handle general terms. Let me try...
Around zero?
 
Yes
 
4:43 PM
I don't know why FullSimplify do that. Without Simplify it just returns a complex expression involves DifferenceRoot.
 
0
Q: Challenge - Standard Object Shema

BRownHi, Question: How can I build a function that: Recive a object by argument; It's a schema model for the second argument; The second argument is a array of objects that has not the same model of the first argument; Objective: The return need be a array of objects with this modif...

 
@user202729 Thanks for trying. I got an answer in the Mathematics room. I don't know how they got it, but it works
in Mathematics, 5 mins ago, by Mats Granvik
The coefficients are given by:
Binomial[2 n, n]/(n*2^(2 n - 1))/4
for n=0,1,2,3,4,5,...
 
@LuisMendo With OEIS :/
 
I don't really know how he used OEIS for that, but yes
 
@LuisMendo Use Mathematica to compute the exact (not numerical) terms for first few terms and then lookup oeis.
 
4:57 PM
But OEIS is only integers?
 
> If you have a sequence of fractions, look up numerators and denominators separately
(from this page)
Hexagony brute forcer still running.
CMP Question: Should I left it run overnight or terminate and find a more efficient way?
 
@user202729 Ah, I see. The OEIS page for the numerators gives the general expression, and then the denominator is just 4
 
5:16 PM
@TwiNight Ah, tricky, but I can still golf yours down to 18
 
@DJMcMayhem what's the shortest way to join several lines with a single char delimiter in Vim (practical)?
 
@Cowsquack Hmmm...
Either qqJr<char>q<n>@q or :<range>s/\n/<char>/<cr>
 
-2
Q: Phython open search replace sort system

Hector AgostoHi I’m in school for programming but haven’t learned enough yet. Do you think someone could explain how it would be possible to open and edit a text file systematically with python 3? As in each open searches for specific string and then replaces it with another string. I want to put it on a GUI ...

 
BMO
qqJr<char>@qq@q doesn't need the number of lines and would be only 1 char more.
 
Well, that'll do every single line after the current line
 
5:26 PM
@DJMcMayhem I had the first one, but I was thinking whether if there was a specific trick, looking up :h joingave no helpful results, but I forgot about the :s/, thanks for that
 
BMO
Yes, true
 
@Cowsquack Yeah, it would be really nice if you could do :j <char>
 
hmm I am trying to remember now if that would have been useful in a V submission
 
Should I add that as an operator?
 
how many more chars does V have remaining?
 
5:33 PM
I don't remember.
A lot xP
I think <M-J> is open (but don't quote me on that)
 
also you can simply do òJr<char> at 4 bytes, but as an operator, it would probably be 2 bytes, is it worth it?
actually the optional closing ò would take up another byte
 
Actually it's really gonna be 5-6 bytes since you'll usually want a closing ò and you might want n lines so nñJr<char>ñ vs n<M-J><char>
 
boy I haven't golfed in V for a long time
3 V answers in the past 10 months
 
You know what the number one thing that V could use is? A way to generate a regex for literal text
So like, if I need to match the input char (regardless of what it is) I can do something like /<C-M-r>a and then it will escape it if necessary
I don't know if my explanation makes sense
 
I understand what y ou mean
 
5:44 PM
Yes, that's exactly the challenge that made me think of it
 
0
A: Sandbox for Proposed Challenges

l4m2Find the k-th largest element of n elements in O(n) code-golf restricted-complexity

 
6:04 PM
0
Q: Merge two code in two languages into a polyglot

l4m2Write a program that merge two codes in two languages you decide, into a polyglot. You can assume both code compile. You can't assume the input is golfed, so if you choose BrainFuck and WhiteSpace, you can't just link them, because there may be spaces in the BrainFuck code. Shortest program in...

 
 
1 hour later…
7:14 PM
4
Q: It's getting harder and harder to be composite these days

ArnauldGiven a non-empty list L of integers greater than 1, we define d(L) as the smallest positive integer such that n + d(L) is composite for each n in L. We define the sequence an as: a0 = 2 ai+1 is the smallest integer greater than ai such that d(a0, ..., ai, ai+1) > d(a0, ..., ai) Your task ...

 
CMC: given N, yield the Nth tetrahedral number, 0-indexed or 1-indexed (A000292). First few entries: 1, 4, 10, 20, 35, 56, 84, 120, 165
 
(0-indexed) J, 4 bytes, 3!>:
 
Jelly, 4 bytes: ‘‘c3
 
7:33 PM
Stax, 4 bytes â╟{♂&dq
 
BMO
Husk, 7 bytes /3§*Σ‼→
 
Oh, I mean 7 bytes
 
BMO
Crazy how Jelly & J are only 4 bytes, how do they work?
 
@BMO N+2 xCy 3
 
BMO
Jelly is probably twice to add 2 and then c3 for C(.,3)?
:)
 
7:41 PM
Lol
 
@wastl could've edited it... (too late now)
 
BMO
Why does it have a built-in for it?
 
@EriktheOutgolfer Was already too late when I noticed it
 
And better yet, 05AB1E, 3 bytes: Ì3c.
Because why not :) It’s really used a lot
 
BMO
Yeah, I guess but still it occupies a char. It probably has factorial too :)
 
7:45 PM
Besides, Dennis likes math.
 
BMO
The only golfing lang I know is Husk.. I never even thought about a built-in for nCr
Then again Husk has a built-in for triangular numbers, lol
 
Yeah. That would siimply be (sum)(range), right?
 
BMO
Yep
 
@BMO J adds once instead of twice
 
7:50 PM
Instead of n+2 as in Jelly, J does n+1
And actually... I can make my Jelly answer 3 this way :))
 
BMO
But sum is Σ and it's overloaded, st. if it gets a number it computes the triangular number.
 
Jelly, 3 bytes: ‘c3 (-1 thanks to Cows Quack)
@BMO That makes sense.
 
oh he means the J solution, not ‘‘ in J
 
@ConorO'Brien So... Sum of first n triangular numbers?
 
BMO
@DJMcMayhem Husk, 3 bytes ṁΣḣ
^^
 
8:01 PM
@ConorO'Brien Canvas, 5 bytes
 
-1
Q: Solve: 1X1 = 99*X

FuleSnabelFind the first number (X) where X multiplied by 99 is X surrounded by 1s. For example if we assume X is 456 then it shall hold that: 14561 = 99*456 Obviously it doesn't hold for 456. Your task is to write function that finds the first X that satisfy the condition and then returns X. The sho...

 
@ConorO'Brien APL, 5 bytes
 
you don't need parens around 2∘+
the jot operator binds the 2 and + into a tine
 
@Cowsquack I didn't even attempt golfing the train/whatever it is
 
8:38 PM
0
Q: The N Queens Problem, but with Fairy Chess Pieces

BeefsterFairy Chess is a sort of generalized chess that allows unconventional pieces. The eight queens puzzle is a classic problem where you have to put 8 queens on a chess board such that no two queens threaten each other. This challenge is sort of a generalized combination of the two. Challenge Given...

 
 
1 hour later…
10:36 PM
@Jakube congrats!
 
10:58 PM
@ConorO'Brien Charcoal, 10 bytes: IΣE⊕NΣE⊕ιλ
 
@BMO 0 is falsy...
@BMO also you're using the wrong equality operator. the one you're using casts if needed.
@AdmBorkBork natural language nuances?
 
CMC: return all vowels in a given string
 
what does wolfram.py even do ._.
 
@ConorO'Brien Ruby -p: gsub(/[^aeiou]/i,'')
 
11:07 PM
@ConorO'Brien Wolfram Language (or a tiny part of it. and it does it terribly as well)
 
@ASCII-only but why is that in charcoal lol
 
@ConorO'Brien >_> so it could be golfy in "Bake a Slice of Pi"
 
instead of a pi builtin
 
>_> don't ask me idk what I was doing
I just thought it would be fun I guess
plus it means Charcoal actually has regex now
 
@ConorO'Brien Stax, 10 bytes: êfß[<0╟▼g⌂
 
11:10 PM
@ConorO'Brien Charcoal, 11 bytes: ΦS~⌕aeiou↧ι
 
CJam, 11: q_"aeiou"--
 
CJam, 18: q_"aeiouy"5Ymr+<--
(keeps y half of the time)
 
"oh no my challenge is solved by builtins, I guess z is a vowel now"
6
 
@EsolangingFruit half? O_o
 
yes, it doesn't know so it just guesses
 
11:15 PM
shorter: q_"yaeiou"2mr>--
 
Oh, right
 
@ConorO'Brien Charcoal, 22 bytes: ▷SCa⟦S▷Pa¦[aeiou]➙≕IC¹
Uses wolfram
 
but that's longer lol
 
Something like StringCases[s, Pattern["[aeiou]"], IgnoreCase -> True]
Still wolfram :P
 
11:30 PM
Hey.
 
11:47 PM
@ASCII-only only 12 bytes in native Charcoal: ⭆θ×ι№aeiou↧ι
 
@Neil isn't that native charcoal though :|
 
@ASCII-only my bad, I didn't recognise the symbols
@ASCII-only -1 byte: Φθ№aeiou↧ι
 
BMO
@ASCII-only As you can tell, idk javascript :)
 
@BMO Go learn it. It's a nice language...
 
BMO
I just stumbled across it and found it rather funny that sth. that is truthy can be equal to sth. that is falsey..
@FreezePhoenix It is?
 
11:54 PM
@BMO Language of the Web + Doesn't bite
 
it is a nice language :>
 
BMO
Well it's a weird language for sure, it's somewhere between a dynamic language and a statically typed language..
 
how is it statically typed?
 
BMO
What's the purpose of var?
 
@BMO to define a variable
 
BMO
11:59 PM
Well in a dynamic language you don't have to specify var foo = 12 but could just do foo = 12
 

« first day (2667 days earlier)      last day (2169 days later) »