« first day (2576 days earlier)      last day (2258 days later) » 

12:01 AM
I want a practical language with python's syntax, haskell's smarts (pattern matching) and mathematica's standard library
 
@totallyhuman So, Coconut + pip installing a bunch of mathematical libraries.
Kinda
 
Anonymous
Use Mathics for the library :P
 
@Mego Can I actually import mathics like that?
Hmm, I wonder if I can get Dark Souls 3 to run on Wine on Intel graphics
@Mego Your Tr implementation is still the most recent commit to Mathics btw
 
12:31 AM
yeah except with haskell's syntax for the haskell things
:P
 
12:57 AM
@totallyhuman Why would you want that.
 
because I like it more than f#'s? :P
 
0
Q: Real TV contest

PPCHere's a contest that I posted on the STEEM network. You'll have to write a python3 bot to play a real TV elimination game. In short, your AI will come to small islands where all players solve a trial together, then vote for elimination of one of them, and repeat the process until the team fail...

 
@totallyhuman 0/10
Other than pipes Coconut doesn't really follow f# anyway
 
 
1 hour later…
2:18 AM
I still didn't vote for mods as diffchecking the questionnaire is hard (why aren't they assigned in a grid) / So each year we have 2 new mods?
 
@user202729 Depends on how much we need
 
2:31 AM
Face-palm bug of the day: Wrote a parse-int function for the Appleseed standard library: convert from string to list of charcodes, call a helper function to parse an integer from the list, convert the result back to string. Couldn't figure out why I couldn't do math with the results. :P
 
lol
 
._..
 
I... What. How. Why.
https://youtu.be/Ll0qHlx_qLg
 
PPCG has no right to judge. QFT is a thing.
 
2:47 AM
.oO( What has quantum field theory to do with this? )
 
@ØrjanJohansen Quest for Tetris (playable Tetris in Game of Life)
 
Good point
now we need Quest for Tetris: Opus Magnum edition
 
What's in the video?
 
a Brainfuck interpreter built in Opus Magnum
 
P', actually
 
3:01 AM
And what's that language?
Re newmetaposts: Great, +1.
 
BF - , and ., IIRC
 
Without loop how can it be tc?
 
1
Q: What's the PPCG policy on originality of content?

HyperNeutrinoI recently closed this post as off-topic because "it is not clear and it does not appear to be your own content". While I know realize my mistake in that it does actually seem to be OP's original post on that site, I will not vote to re-open because it is still not clearly written or specified en...

 
That's w/o input and output (P')
 
the computer in that video has loops tho
 
3:03 AM
P'' is Brainfuck has no I/O. It has loops
IDK if it's P' or P''
 
@Pavel That's false
Oh wait
Sorry, I thought the question was about this year, not in general
 
@user202729 Our last election was two years ago.
oh wait do you mean every election there are exactly two new candidate positions
We had Doorknob and Martin here earliest (not sure if they were pro tem or elected afterwards earlier on, I think pro tem because there have only been two elections including this one), Dennis and Alex were elected two years ago, and two of the three candidates will be elected this year.
 
3:20 AM
@HyperNeutrino Alex and I were also pro tem mods. When PPCG graduated 2 years ago, the four of us got re-elected.
 
Oh okay, I see.
 
3:33 AM
@HsMjstyMstdn I brought you here?
 
@Zacharý Yes, I like poking around chatrooms
 
O.O
 
3:59 AM
@moonheart08 I haven't ever seen this game before, but I wasn't at all surprised to see Zachtronics behind it.
 
4:17 AM
Really need to crack this one:
1
A: The Programming Language Quiz, Mark II - Cops

MD XF???, 14 bytes [+1[+7]35@]100 Oh huh, this is still uncracked!

Oh nevermind got it
...huh. doesn't work in Braingolf
looks exactly like it
 
Yeah, I thought so too, surprisingly.
 
huh
@MDXF Can you confirm it's not supposed to work in braingolf?
 
4:45 AM
Is there a Pythonic, cross-platform way of reading from /dev/tty or conIN$?
Other than open('/dev/tty', 'r') if os.name != 'nt' else open('conIN$', 'r')
 
Perl?
 
I don't think "use Perl" is ever the Pythonic answer. ;)
 
Also, I can't find a good way to do it in Perl either
 
@quartata .
 
@DLosc write an interpreter for Perl in Python
 
4:52 AM
30 secs ago, by Pavel
Also, I can't find a good way to do it in Perl either
 
and then write a good way in the Perl that is inside the Python
 
@LeakyNun I smell a challenge! Let's remove the language restriction and post that to main! /s
 
@Pavel what do you need this for?
 
@quartata When code is piped in through stdin, read input from the terminal instead of stdin.
(For the Appleseed interpreter)
 
4:58 AM
CMC: Given a full (rooted) path to a file or directory, output the shortest string that will expand to only that path after * and ** glob expansion.
I'd post to main if I wasn't lazy af
 
That requires a directory tree traversal, doesn't it? To check what the other expansion possibilities are?
 
@DLosc Yep
So it's not very mini I suppose
More smallish
 
What is ** expansion?
(let me search for it myself)
 
@user202729 /** will expand to any directory depth, rather than the name of just one directory/file
 
5:30 AM
Sigh there's not a way to get a space at the beginning of a code escape, is there?
 
(Cx (Fin {re=(Int 7), im=(Int -3)})) + (Im (Fin (Int 3))) -> (Re (Fin (Int 7))) I'm too proud of this.
 
Oh well, I'm already using <newline>, so I might as well use <space>.
 
@Οurous Ooh, what is it?
 
@DLosc Symbolic complex arithmetic for github.com/Ourous/dirty
Finally found a representation I'm happy with
Given that the only type in the language is Number, I'm trying to get it right
 
5:54 AM
So is this the actual code, or a parse tree, or..? (Doesn't look like a 2D language to me.)
 
@DLosc This is the stuff that will power the implementation
At the moment I'm putting together the basic mathematical operations on the Number type, once most of those are working, then comes UTF8/TeX/Native charset converters. Then the parser to map them into instructions, and a state machine to run the program and call the libraries providing the implementation for the instructions. Which come last.
 
Aha. So it's the guts of the interpreter. ^_^
 
@Pavel I willingly give my family tech support because otherwise I have to cope with their stupid ways of dealing with their stupid problems. If I help, they're still stupid problems but at least they go away quickly. twitch
 
logic
 
@Pavel See, I don't have that problem. I just shrug and say, "I have no idea what's the best antivirus software." "I have no idea how to connect your smartphone to wifi." "I have no idea what caused that error." When I can help, I do; but I'm more of a programmer than an IT guy. My family members don't usually need help debugging code or snapshotting a VM. ;)
 
7:40 AM
0
Q: Reduced Factorization Leader Changes

isaacgtl;dr: Output the values where the reduced prime factorization leader changes. Every positive integer has a unique prime factorization. Let's call the reduced prime factorization just the list of multiplicity of the prime factors, ordered by the size of the factors. For instance, the reduced pri...

 
7:58 AM
0
Q: Indices of inner join

Michael MGiven two integer vectors x and y of possibly unequal lengths, produce the two position vectors (of equal length) associated with an inner join based on the "by" columns x and y. A position vector [4, 4, 1] e.g. means that the forth element of the input should be repeated twice, followed by the ...

 
:O wine finally supports gamepads
 
8:31 AM
1
Q: Counting polystrips

Galen IvanovPolystrips are a subset of polyominoes conforming to the following rules: each piece consist of 1 or more cells no cell can have more than two neighbours the cells should not enclose a hole Free polyominoes are distinct when none is a rigid transformation (translation, rotation, reflection or...

 
8:59 AM
@NewMainPosts And... moved into the sandbox.
 
0
A: Sandbox for Proposed Challenges

Michael MIndices of inner join (code-golf or alternatively also minimizing computational complexity) Given two integer vectors x and y of possibly unequal lengths, produce the two position vectors (of equal length) associated with an inner join based on the "by" columns x and y. A position vector [4, 4,...

 
9:37 AM
0
A: Sandbox for Proposed Challenges

BMOCompile an XOISC program Recently I solved this challenge, for which I created XOISC - a very low-level functional assembly language. To compile a program (written in the absurdly high-level lambda calculus programming language) for that low-level language it must first be translated into an exp...

 
10:34 AM
I'm creating a functional programming language that is used to create single-page websockets-powered HTML apps and decided that PHP will generate the initial HTML layout and Python will control websockets. Is this a good idea?
Or could it be better to create own server in Python?
Instead of Apache?
 
@labela--gotoa Soooo.. similar to iTasks? Or, rather, similar to a subset of iTasks?
Or more like functional ASP?
 
10:56 AM
@Ourous I don't know what iTasks are .-.
and never used ASP
 
0
A: List of bounties with no deadline

Martin Ender1000 – 2000 rep for figuring out how to program with both halves of a Stack Cats program This bounty needs a bit of background, so bear with me. Stack Cats is an esolang with fairly strong constraints on its program structure. Specifically, each valid program has to have mirror symmetry, and th...

 
11:21 AM
thanks for being my rubber duck
i was writing a question
then i noticed something and fixed the problem
 
@labela--gotoa I'll just assume it's vaguely related to one of the two options and wish you luck. And add that the less frameworks and languages you have in a project the better, so I'd personally use a python webserver.
 
@Οurous Thanks
 
12:17 PM
Chat doesn't seem to be very active at the moment
 
night time in america
 
0
Q: Convert a number to Korean

0xrgbGoal You will be given a positive integer number less than 10^20. You must convert it to Korean. For example, if the input is 12345, the output should be 일만이천삼백사십오. Techinical details (Small) Let's starts with simple numbers. // 1 - 9 1 -> 일 2 -> 이 3 -> 삼 4 -> 사 5 -> 오 6 -> 육 7 -> 칠 8 -> 팔 9 ->

 
Can someone edit the second most recent (how to call that?) NSP?
(initially moved from main)
 
12:46 PM
Could someone who knows stuff about licensing help me with something?
gnupg is under the GPL license. I'd like to be able to use it in a closed source piece of software. Is this even remotely possible? gnupg would be distributed and used from the command line application thing (`os.system` OE)
 
12:59 PM
@Blue that's absolutely fine
 
It is?
 
you just can't link, e.g. GPGME as a static library
 
I was under the impression it's a 'infectious' license?
 
it is, if you integrate with the software deeply enough
if you linked with GPGME statically, that would be a no no
the idea is that you have to make it possible for your users to modify the gpg version used
 
so calling it as gpl-code.exe -my-arguments would be fine?
 
1:01 PM
if you modified the code of gnupg, you'd have to publish your modifications
yes, and so is using GPGME as a dll/so library, which should make your application more robust
out of curiosity, what is the closed source app you are doing?
 
It's a game for Steam
 
and what do you need the gnupg for?
 
For signing user generated content so the game knows someone's checked it's safe
 
soo the game has a key that it uses to sign stuff and other instances check whether it has been signed with that key?
 
yeah
We sign mods with private keys and distribute the public ones with the game
The UGC we're using allows random code execution and we're just adding a precautionary measure to help users not kill themselves
 
1:29 PM
and you will be reviewing mods manually?
wouldn't it be better to just sandbox the mods properly?
 
1:40 PM
we're reviewing manually. I'm not expecting to have to do it often
And they're written in Python, it's not really possible to sandbox it
It's not really possible to write it in another language since our game engine is in Python as well
 
1:57 PM
0
A: Sandbox for Proposed Challenges

milesGenerate a maximal binary Gray code Given an input integer n, find an n-bit gray code where the sum of the absolute difference between each adjacent pair of bits converted to decimal is maximized. For example, if n = 3, there are 144 possible gray codes, and the maximal sum of deltas in decimal...

 
 
1 hour later…
3:08 PM
can inactive rooms that died and got deleted be undeleted?
 
No clue. Got a link?
 

 Neon

Overloading must be the key to golf. github.com/totallyhuman/neon
I made the mistake of not letting anyone know of it, and nobody joined :P
 
in Neon, 6 secs ago, by Feeds
Dennis has undeleted this room.
 
5
Q: How to revive a defunct chat room?

English Studenthttps://chat.stackexchange.com/transcript/64193/2017/8/21 I came across @Tonepoet's this defunct chatroom that has been "automatically deleted for inactivity." Since it is an interesting topic I should like to see it revived. How is that done here on ELU? Note 2: the chat section warns users ...

funny it's on english.se but yeah
@Dennis thanks a lot!
>.> I can't repin a message apparently
 
I knew of it but still not.
Mr.Xcoder and HyperNeutrino too IIRC.
Is there any builtin function in Haskell like \a->b->(a,b)?
(None in Data.Tuple)
 
3:27 PM
(,)
 
(Actually many questions that should be on Meta.SE are scattered on somesite.meta.SE)
 
\a b c->(a, b, c) is (,,)
it goes on for 64 commas or so lol
 
Is OneTuple used for anything? And can the surrounding () be omitted?
... there is even empty tuple ...
 
Empty tuple is used though IO () for example
 
3:49 PM
Our answers are so short that SE thinks that they're low quality...
 
-request: what kinds of loops should neon have?
 
is there any way to golf this monstrosity?
 
implement and test it first :P
 
wut?
 
how can you golf code which does not exist?
 
3:53 PM
(Apart fron define macros, shorter names and remove whitespaces?)
 
i already know infinite loop, and foreach
 
(I guess because the repo name is minestest)
 
@EriktheOutgolfer 165-223 belongs to the //fill numbers
 
@betseg you can link to multiple lines y'know?
 
@user202729 yeh
@totallyhuman just did :P
 
3:54 PM
:P
 
ninja'd
 
@totallyhuman or structure comments better
 
Loop delta i and delta j from -1 to 1 inclusive, add them if one of them are nonzero.
(performance can be worse, but aggressive loop optimization can help)
 
@totallyhuman maybe first n that passes?
 
@user202729 but segfault
 
3:58 PM
How can it segfault? What's your code? Is it equivalent?
 
Is performance that important?
(such that you're manually unroll the loops)
 
i do it because it segfaults if i try to access grid[height+1][width+1]
 
Ofcourse it segfault. What do you expect?
 
how else will i delta i and j from -1 to 1 and access those cells
 
4:00 PM
0
Q: Creating Multiple Multiplication Table in Python

Maazị Chike N I'm new to python and learning the basics. I'm currently learning how to make use of loops. In the video tutorial, the tutor taught how to do it with for loop and also asked as an exercise, to do same with while : either while before for or for loop before while or using just while alone. I t...

 
Maybe the "code-challenge" is what throws people off of our purpose at PPCG?
 
I mean, don't manually unroll the loops and the code will be shorter, of course.
Its their fault to not read the tag info page.
 
Yeah
 
@NewMainPosts (Remark: this is neither C nor Lisp, drop some () please)
(I'm sure that the OP won't read chat and even if they do, it wont help them)
 
4:20 PM
@user202729 i've just gotten what you meant github.com/betseg/minestest/blob/master/mine.c#L169-L223 hows this
 
4:31 PM
you should abstract away the grid to a function that returns a sensible default on out-of-bounds coordinates, IMO
then something along the lines of for x in range(width): for y in range(height): for dx in [-1, 0, 1]: for dy in [-1, 0, 1]: grid(x, y) += grid(x + dx, y + dy) should make it look WAY nicer
 
0
Q: Tetris strategy

ngnYour task is to implement a Tetris strategy balanced in terms of score vs code size. In this version of the game tetrominoes are rotated and dropped from above into a grid of 20 rows and 10 columns. While falling, they cannot be rotated or moved horizontally. As usual, a dropped piece stops when...

 
@NieDzejkob ooh
grid[height+2][width+2] and all of the outside cells are 0
 
5:22 PM
i went outside so i could do ^ but i did it now
 
 How about
        for(int y = 1; y < height; y++){
            for(int x = 1; x < width; x++){
                grid[y][x] = 0;
                for(int dy = -1; dy <= 1; dy++){
                    for(int dx = -1; dx <= 1; dy++){
                        if(dx == 0 && dy == 0) continue;
                        grid[y][x] += IS_MINE(grid[y + dy][x + dx]);
                    }
                }
            }
        }
 
yup. nice.
 
I think it's clearer
 
5:43 PM
0
Q: A contest on multiple platforms with monetary reward

PPC(this question relates to that "real TV" attempt at KOTH challenge) I'd like to submit a game with the following characteristics, and I'd like to discuss whether or not it is acceptable here, and to what conditions: game will be self-contained, but simultaneously posted on at least another pla...

 
-1
Q: How many different result would function return?

xakepp35Given externally-defined function f(x), and its known that x is 16 bit variable and f(x) has no internal state. Task is to calculate how many possible different results could function return? Some trivial examples: f(x)=x+1 => 65536 possible different outcomes f(x)=1 => 1 possible result f(x)=...

 
@NieDzejkob tfw 6 levels of indentation is clear
 
5:59 PM
@NieDzejkob It does more than just time out. :P
 
@Dennis namely?
 
Print 201 integers after a special surprise?
 
6:27 PM
@ConorO'Brien has anyone made a shorter JS fibonacci besides the basic recursive one?
 
Is there any way to make JSFiddle ignore the "expected a 'break' statement before 'case'"? I omitted it on purpose and I get the warning...
Would actually continue do the job?
ok, nvm
 
6:42 PM
@Dennis On TIO, it only times out
 
Fair enough. :)
 
7:35 PM
@quartata nope not braingolf
 
8:12 PM
I'm suprised no-one figured out iovoid's answer, when the language he used is so common now.
https://codegolf.stackexchange.com/a/155316/77964
 
Anonymous
@moonheart08 Relatively few people are familiar enough with blockchain technology to recognize code written for it
 
true
plus, he DID override the header.
 
8:28 PM
and no one sane is programming in the bytecode directly
 
Anonymous
@NieDzejkob "no one sane" describes a startingly-high proportion of our userbase
 
technically Husk, a relatively common golfing language, is described in bytes too, can that be considered bytecode? ;~)
 
I was refering to the bytecode of the ethereum vm
 
9:20 PM
@Simon-Nail-It This was a good lesson why it is necessary to wash you hands after work in a lab and before you eat. — permeakra Nov 17 '14 at 15:38
 
1
Q: Stop gninnipS My sdroW!

AmorrisGuidelines Task Write a function that takes in a string of one or more words, and returns the same string, but with all words with five or more letters reversed (Just like the name of this Kata). Strings passed in will consist of only letters and spaces. Spaces will be included only when more t...

 
10:00 PM
0
A: Sandbox for Proposed Challenges

Esolanging Fruit Sandbox: Is any part of the spec confusing? I probably want a snippet for this. What should it show? Should it just find the winning answer, cop, and robber? Should it display the status of answers? If so, I'd probably have to set a formatting standard. Should I split this into two...

 
the fact that "stop spinning my words" refers to "the title of this kata" leads me to believe it might be stolen off codewars
but i don't know
 
Anonymous
10:28 PM
@undergroundmonorail Good catch
 
Anonymous
From Codewars ToS:
 
Anonymous
> All authored kata remain the IP of authors and contributors, with a license granted to Codewars, to maintain and advance the resource.
 
Anonymous
So it's copyright infringement
 
Anonymous
Kata solutions are licensed under the 2-clause BSD by Codewars, but the kata themselves are the IP of the author(s) and thus subject to the usual copyright law
 
Anonymous
10:43 PM
 
@MDXF What's Cubically's integer type? Signed 32 bits?
 
Anonymous
I'm not convinced that a 20-question test on Pluralsight, that can be retaken once (and the retake has several repeated questions) is a good measure of skill, but I like the big number anyway :)
 
wait, how can a question be copyrighted?
 
Anonymous
@betseg Copyright law protects the expression of ideas. A challenge is an idea, and the way it is written (i.e. the words, test cases, etc.) are the expression. Since the challenge description in question is directly copied from Codewars, it's a copyright violation.
 
ah, so if they change the wording it won't be a problem?
 
Anonymous
10:49 PM
@betseg I believe so, but I'm not 100% sure how much it needs to be changed to be legal. I just know that, in its current form, it's copyright infringement.
 
11:12 PM
hi
 
11:46 PM
0
A: Sandbox for Proposed Challenges

ChristopherText to Brain-Flak Your challenge is to turn text input to brain-flak code that will output the text. Read about brain-flak here Rules You may assume that the Brain-Flak is being run with ascii out. The brain-flak code must NOT require input All standard rules apply The code must run withi...

 
@Mego I want to take this test too. Link?
 
Anonymous
@Pavel Go to your SO developer story
 
@Mego Oh, huh, I've never done anything with SO jobs
 
CMC: multiply a real number by 3: given a real number as a function/program that outputs the integer part when given 0 and outputs the n-th digit when given n, and given n, return the corresponding digit / integral part. eg 23.1212.... is given as a function f where f(0)=23, f(1) = 1, f(2) = 2, f(3) = 1, f(4) = 2, etc. If your program is p, then p(f,0) = 69, p(f,1) = 3, p(f,2) = 6, etc
beware of carrying :p
 

« first day (2576 days earlier)      last day (2258 days later) »