« first day (2039 days earlier)      last day (3103 days later) » 

05:01
shrug
@JonathanAllan I posted a link to PAQ9A so people know what it is and how it works.
Greek to me
does not look like that specifies anything :/
See, PAQ is like this special compression program designed for one goal: Pure compression no matter how long it takes.

There's PAQ2, PAQ3, etc, I think, until ZPAQ, which is the latest version being updated.

The one I'm asking for is PAQ9A.
See its source code.
ZPAQ is also a little bit on the crazy side: 10GB compressed to around 2.7GB, although it may be sloooooow.
gl w that :p
:D
Honestly, though, read up on PAQ and its variants some time.
It's cool.
05:18
@DJMcMayhem It would be my honour to
:D
And then hopefully after that I'll return the favor
@DJMcMayhem sure you will
05:39
I'm 3 votes off 1000 rep...
typos
also gotta go already
Anonymous
I'm flying out to California tomorrow for my Google interview on Tuesday! :D
Anonymous
I am super nervous but good wine is helping
Anonymous
05:49
On a related note: I am reading through basically every Q on Travel.SE about flying, given that this is my first flight ever
That sounds like a good way to become terrified of flying.
Anonymous
@feersum I already am :P
flying is fun
Anonymous
I'm a penguin. We can't fly.
I take it you are only going in a large aircraft (which just feels like a noisy coach)
it's the small planes that can be scary
especially propeller planes :p
06:07
^^
I just went on a small plane for the first time ever, and it feels totally different.
06:26
@El'endiaStarman I'm horrible at writing queries so I'm wondering if you could modify this one you posted to show only users with over 1k messages.
Anonymous
06:46
@ASCII-only This will list them in descending order of messages, so you can easily see the > 1k messages people.
All those new avatars, confusing
@El'endiaStarman I thought they would have been feed bot posts, but I couldn't get the numbers to match
07:53
ꄱ␍ꘕכ
^ i will change my username to this
(yi syllabe tux, symbol for cr, hebrew kaf and vai ting)
> Display Name can only contain letters, digits, spaces, apostrophes or hyphens and must start with a letter or digit
ಠ_ಠ
is a letter
08:08
cmc: factorial function in silos using recursion
Link to silos?
@DerpfacePython TIL a python is a type of Minecraft duck
What?
@ASCII-only What does this have to do with me? (Cluck)
Wait... what are you even saying?
I'm confused
08:21
DerpfacePython = Minecraft duck
hello, first time here
I have a question. On questions last active say 6 months ago or more should I add an answer?
I'm a minecraft chicken, but whatevs
@seshoumara You can
Here, it's pretty different to most other SE sites. We want a more complete collection of answers rather than one answer per question
Just don't go spamming new answers, it'll fill up the front page
Thanks for replying. Good to know! I usually submit in bash, sed or dc so slim chances of solving the task multiple times :))
I saw a lack of answers in sed and dc especially.
08:37
Yeah, not many people code in those languages
Which brings me to my next q. When a tag is code golf it may look like bad taste to post some 200 or so bytes solution in sed, if not more, so should I post an answer there as well?
Nah, that doesn't really matter.
There are plenty of solutions out there that require much, much more than 200 bytes.
-1
Q: New Language Ideas

DerpfacePythonMuch like the Sandbox, this is a question where the answers are ideas - but instead of possible questions that go into the main PPCG, the answers here are for ideas (and updates) of programming languages that you want to implement or that you want to see implement. The languages can be anything ...

I'm thinking of a good name for function declarers for my language
And my last question. When I see an answer posted by someone that I can shorten it, should I leave it in a comment or should I make a separate answer? I'm talking about solutions that are similar in the way they came up with the result.
08:47
That is definitely a comment. Don't write the whole code again, just write the bits that can be improved.
@seshoumara Could you suggest a name for function declarers for my language?
So something like def in python, function in JS, etc.
@DerpfacePython =>
method?
@ASCII-only Ah, thanks
@DerpfacePython If it's a C-style golfing lanugage, using lambda syntax is probably best
But currently I have something like this as a function: x(a,b):{insert code here}
And I need a word in front of the x to make it easier for me to code in Python
08:51
@DerpfacePython ?
Easier?
fn if you want it short
I'm making an IDE for it in Python
visual basic had the keyword sub
And I'm just using the replace function to replace the string (which is the code)
08:52
@seshoumara If you came up with it independently you can post it yourself, otherwise past a comment. If you see it before posting just leave a comment
@DerpfacePython 0/10 no parser
@seshoumara leave in comment
Ok. thanks for the help guys.
wait
for different algorithms leave a other answer
for those, yes, my intention was to post separately and mention perhaps the diff
09:04
If I leave such a golfing comment to an answer, would I be notified when that person changes its submission?
not neccesarly
Let me rephrase the question, if someone gives me a hint in the comment and I want to edit my answer with his suggestions, is there sth I can do to make sure that person is notified somehow? This would be like an unwritten "hey, cool, thanks for the ideea"
@seshoumara just answer the comment with @ followed by user name
...you can always delete the comment later if you think it adds clutter
that works
09:26
2 votes to 1k!
quiet...
879
Q: How to exit the VIM editor?

jclancyI'm stuck and cannot escape. It says: "type :quit<Enter> to quit VIM" but when I type that it simply appears in the object body.

ಠ_ಠ
09:42
That integer calculator question says 1/2==0 but -1/2==-1 wtf
0
A: Simple integer operation calculator

Winnie The PoohPHP <?php $i = 0;$a = $_POST['subject'];$array = str_split($a, 1);for($b=0;$i <= count($array);$b){if($a == "+"){echo $i += 1;}if($a == "-") {echo $i - 1}if($a == "*"}{echo $i * 1}if($a == "/"){echo $i / 2 }} ?>

@ReleasingHeliumNuclei yeah because -1 is congruent to 1 mod 2
@ReleasingHeliumNuclei Different languages implement division rounding differently, e.g. round down, round up, round towards zero, round away from zero
@Sp3000 i use the way Java, C and SILOS uses :p seriously tho, i can't make SILOS round downwards without adding a s*load of bytes
Well that's why I have a deleted CJam answer :P (I know I can use m>, but it ruins the answer greatly)
09:54
-1 divided by 2 has a remainder of 1, so the division must be -1//2=x r1, so x must be -1 (-1*2+1=-1, but 0*2+1!=-1)
so I'm afraid C and Java are just not implemented correctly
do they also say -1%2 = -1?
They're flooring towards 0
yeah, they are implementing div by rounding the decimal in some arbitrary way rather than implementing div itself
@JonathanAllan yes
maybe some bizarre language uses banker's rounding just to be more confusing :p
Mathematica and Python 3? Not for division I don't think though, just for round()
09:59
yeah not for div (at least Python)
Mathematica div will more likely be correct than C or Java
round or floor
round ofc
round((-1)/2) gives 0, floor((-1)/2) gives -1
floor is not std - it's in math I think
On wolframalpha
(mathematica basically)
10:01
IDK, the OP said C integer truncation, so round to 0
and -1.5?
@JonathanAllan ...truncates to -1
math.floor in python rounds towards -inf
@ReleasingHeliumNuclei My Mathematica solution just uses BitShiftRight
@JonathanAllan Same in Mathematica
seems reasonable to me
10:06
0
A: Print a 10 by 10 grid of asterisks

Destructible WatermelonDeadfish ~, 24 bytes {{iiii}ii{c}{ddd}ddc{d}} how it works: {foo} does foo exactly ten times. first, it starts a ten loop, in this loop, it sets the counter to 42, prints it ten times (as char (asterisk)), decrements it to 10, prints it (newline), subtracts 10, then loops again, doing this 10...

I really want to break 1000 right now
7
A: Print a 10 by 10 grid of asterisks

Releasing Helium NucleiEmojicode, 54 bytes 🏁🍇🔂i⏩0 10🍇😀🔤**********🔤🍉🍉

Me too
Oh i understand why C floors towards 0
... floors towards 0?
It basically removes everything after .
@EᴀsᴛᴇʀʟʏIʀᴋ -1 == (int)-3/2
Just wish I could shave another byte :p
23
A: Print a 10 by 10 grid of asterisks

Jonathan AllanJelly, 7 bytes ”*x⁵Ṅ9¡ What's going on? ”*x⁵Ṅ9¡ - No arguments ”* - character literal, * x - multiply (dyadic operation) ⁵ - integer literal, 10 (we have now constructed the string '**********') Ṅ - Print & linefeed (monadic operation) 9 - integer literal, 9...

one step closer @DestructibleWatermelon
10:12
Oh wait i think i found how to floor correctly
@ReleasingHeliumNuclei maybe add an explanation and a link to an online interpreter, I don't know emoji
2 rep away from 1000
the anticipation
@JonathanAllan i couldn't find any online compiler
10:13
@ dennus pl0x
CMC: Implement rounding towards positive infinity (ceiling-ing) in your language of choice; however, the only built-in discontinuous function that you can use is rounding towards negative infinity (flooring).
I need to learn jelly so I can earn >200 rep on one answer
5
@ReleasingHeliumNuclei holy shit, about 5 hours ago you were still awake at 5am for you.
o_o do you even sleep
@EᴀsᴛᴇʀʟʏIʀᴋ 8*
its 1 pm
oh, kk
that makes more sense
@ReleasingHeliumNuclei o_o you were also awake from 12 to 8 hours ago
10:16
@DestructibleWatermelon Nah, you just have to make a really stupid answer:
104
A: Paint Starry Night, objectively, in 1kB of code

LegionMammal978Mathematica, score 14125.71 "a.png"~Export~ConstantImage[{75,91,110}/256,{386,320}] Simply saves this image: to a.png.

As you can see, my most-upvoted "serious" answer doesn't come close:
39
A: Fibonacci reversed!

LegionMammal978Mathematica, 25 bytes InverseFunction@Fibonacci Function. Pretty self-explanatory if you ask me.

Also I had an idea for a programming language
it's based on rivers, but not those rivers
typological rivers
which I will show
in this post here
in that text, there is a river, I will highlight with the hash character
typological#rivers
which I will#show
in this post#here
also another smaller one
@TùxCräftîñg hey, if you have time: undelete your sandboxed post, edit it to something like "abandoned for <reason>", and delete again. The big deleted posts are annoying, especially wondering why there are deleted.
@DestructibleWatermelon It's "typographical"
10:21
I believe we already have a challenge based on rivers
stoop
@ΛεγίωνΜάμμαλϠΨΠʹ yeah, you're probably right
I'm calling the language typological to spite you though
what
what was that
@ΛεγίωνΜάμμαλϠΨΠʹ isn't ceil in terms of floor just if floor(n)==n: return n else return floor(n)+1? Or is if, else considered use of a discontinuous function?
@JonathanAllan gratz you win the challenge
10:23
@JonathanAllan That would be a valid solution (in pseudocode)
fair enough
@ΛεγίωνΜάμμαλϠΨΠʹ that was a very random message.
goddamnit, I wish that person hadn't downvoted me just so I could be on 1000 rep
7
A: Print a 10 by 10 grid of asterisks

Releasing Helium NucleiEmojicode, 54 bytes 🏁🍇🔂i⏩0 10🍇😀🔤**********🔤🍉🍉 Explanation: 🏁🍇 👴 The beginning of program. 🔂 i ⏩ 0 10 🍇 👵 This is called a "range". It basically starts with 1=0 and increments until i=10, then exits. 👵 😀 🔤*...

added explanation
@ReleasingHeliumNuclei I was going to updoot it, but I already did...
10:25
> updoot
hahaha
updoot and downgoat
everyone knows these things, it's like kindergarten stuff
except you don't learn until you join the chat or site in general and see downgoat
16 hours ago, by ΛεγίωνΜάμμαλϠΨΠʹ
CMC: Given a Chat.SE message ID, output the markdown of the first revision of that message
Shame my Firefox does not display all the characters
10:28
@DestructibleWatermelon - Dennis noticed I hit 1K before I did (see starboard)
9
A: Golf an InterpretMe interpreter

Destructible WatermelonPython 3, 35 bytes i=1 while i:i+=input().count('*')-1 sets i to one, adds the amount of '*' -1 to i I think I can reduce this with ~ trickery I couldn't

I honestly have no idea why this is my highest rated
I reckon one of the cool things about typological, is while when golfing in it, you still reduce things to the shortest, but you can still write things in the necessary nop characters
6
A: Simple integer operation calculator

xnorPython 2, 48 bytes i=0 for c in input():exec"i=i%s2&-2"%c print i/2 Does +2, -2, *2, or /2. By doing +2 and -2 rather than +1 and -1, we're working in doubled units, so the final output needs to be halved. Except, the floor-division / now needs to round down to a multiple of 2, which is done w...

xnor is god °ワ°
@Lynn well obviously
@ReleasingHeliumNuclei this rounds towards zero...
10:34
@DestructibleWatermelon if the first and last results arent equal, subtract 1
@Lynn OMG soooo good.
@ReleasingHeliumNuclei that makes 7/2 5
@DestructibleWatermelon if negative
Ahhh crap
ok then
@DerpfacePython what did you do
10:36
Hang on
Don't worry
why can I not get that final upvote?
@Lynn xnor is love, xnor is life
idea for how typological works: there are two pointers. they both start at the first character
the second one moves along until it finds a space
it then goes down until it finds the end of the river, executing commands and some such based on the path
when the river ends, it goes back to the first pointer, and does this again
it is possible to move the first pointer
a single space, that does not have a river, halts the program
I should make this
@EᴀsᴛᴇʀʟʏIʀᴋ k
anyway, as I can see, this should probs be a stack based language, because that's cool, and tapes are a bit ehhh, you kinda get too close to a BF derivative, which are hellspawn
time to write the spec!!!!11!!!
10:51
-7/2=-4 is this true for the question?
yes
assuming you mean the "Simple integer operation calculator" question
yup
yay i did it
225 bytes
\o/
regarding that question, just finished my sed+dc solution :)
0
A: Simple integer operation calculator

seshoumaraGNU sed + dc, 65 bytes s/^/echo "0 /;s/[+-]/1&/g;s/*/2&/g;s:/:[1-]S@d0>@2&:g;s/$/p"|dc/e Run: sed -f simple_calculator.sed <<< "*///*-*+-+" Output: -1 The sed script prepares the input for the dc call at the end, the latter accepting the input in Reverse Polish notation. Example: +-*/ is con...

yay my game is now playable
Hey, @LeakyNun I don't understand how your logic gate challenge works?
What inputs do we need to take in? Just two bits? Or the four bit thing you have before each logic gate name?
10:57
example of a typological program
this program
nops forever!
so clear!
also still on 998 rep ಠ_ಠ
@DestructibleWatermelon Accept an answer on one of your 3 challenges
oh, right
I forgot
@Adnan thanks
np
hooray 1000 rep!!! woot!
@DestructibleWatermelon Congrats on 1k! :)
11:00
@DestructibleWatermelon congrats on 1K
cngrts on 1K
I'm actually starting to regret that now, it feels wrong
How so?
because I made my own 1k, doesn't feel right
congrats
11:01
explanation of earlier typological program
i am at 200 rep on SO \o/
any 2 length river is a nop
what if is really near to beta
Idea for a website: wikipedia, but without search; you have to use the links to navigate, plus a random page button in case you get stuck
6
A: Simple integer operation calculator

Releasing Helium NucleiS.I.L.O.S, 133 213 bytes :s def : lbl G GOTO readIO i-46 if i a i+2 if i b i+2 if i c i+1 if i d G e :a G v :p a-1 a/2 G o :v a+1 if a p a-1 j=a j/2 k=j k*2 k-a a/2 if k t G o lblt a-1 :o G s :b a-1 G s :c a+1 G s :d a*2 G s :e printInt a Takes the ASCII codes of operarors. Try it online with...

fixed
11:13
Hello
Argh I don't know how to do functions for my language
So for a one arg function its like func a
And for a two arg function its like a func b
I don't know what to do for a three arg
a func b : c
or any other separator
@DerpfacePython your language?
or implement destructuring and do a func [b c]
11:18
Yeah
I thought of those
But they seem kinda uneven
@DestructibleWatermelon Yeah
I'm making a language called Logicode
It simulates logic gates and stuff
Like Logisim but in code
it's a cool proposal
duplicateception
@TùxCräftîñg Already committed :D
Deep Dream's NN loves that dog :p
kinda creepy
11:25
there are dog faces everywhere in this image ._.
almost always it seems
2
Q: Highlight the Bounding Box, Part II: Hexagonal Grid

Martin EnderYou're given a hexagonal grid of the characters . and #, like this: . . . . . . . . . . . . # . . . . # . . . # . . . . . # . . . . . . . . . # . . . . . . . . . . Your task is to fill the entire axis-aligned bounding box of the # with further #: . . . . . . . . . . # # # # . . . # # # #...

@muddyfish the best so far
@TùxCräftîñg
11:27
@muddyfish complete d
@muddyfish what time zone are you in?
@EᴀsᴛᴇʀʟʏIʀᴋ UTC daylight saving (+1:00)
(its 12:28)
Would a func b func c be good?
so you need to curry
0
Q: Don't anderstand how to loggin user with Flask-login

Narnik GamarnikI read documentation, but no understand, how to create login function. Flask study only 3 days, not at all on this experience. This is my models.py : from app import db, UserMixin ROLE_USER = 0 ROLE_ADMIN = 1 class User(UserMixin, db.Model): id = db.Column(db.Integer, primary_key = True) ...

the last phrase ._.
bai
11:38
Curry?
@βετѧΛєҫαγ You are to create 16 independents programs, each of which takes two values as input and one value as output
@mod, could you reload my profile image for chat?
@LeakyNun After reading some of the answers, I understand now:
0
A: Golf all the 16 logic gates with 2 inputs and 1 output!

βετѧ ΛєҫαγFourier, 104 bytes Fourier uses 0 for falsey and 1 truthy. False, 3 bytes oII Outputs the value of the accumulator (0), then takes input. Try it online! AND, 6 bytes I+I>1o Sums the two numbers, checks if they are greater than 1 and outputs the result. Try it online! a AND NOT b, 8 by...

@βετѧΛєҫαγ :o is your language prefix or postfix or infix
@LeakyNun Haha I'm not sure
It's a mixture of infix and postfix
11:48
I basically see both infix and postfix
How is this possible
1
A: Golf all the 16 logic gates with 2 inputs and 1 output!

NonlinearFruitDominoes, 120 tiles Domino computing was the inspiration. I have tested all of these up to symmetry. Also note that when testing these, spacing is crucial. Details I/O Start - This is included for clarity (not counted towards total) and is what 'calles' or 'executes' the function. Should be...

8
wat haha
@βετѧΛєҫαγ did u see my cmts?
Now I dont even know if ^^ is caret or smiley.
caret
only heathens use it for a smiley
11:58
@LeakyNun Yep, just edited now, thanks
Having so many TIO links is difficult...
i open TNB and i see a domino solution... wtf
@βετѧΛєҫαγ I believe you can golf them further
how does dominoes only have 6 upvotes?
12:14
@LeakyNun Probably. I'll do it later though
@DestructibleWatermelon it was only added 7 hours ago
it's in starboard so it should hopefully get more
is adding a restart if the last character is 1 operation to StackyLogic make it TC?
12:40
^ That was an awesome show
@TùxCräftîñg Try to write a BF interpreter in it and see
seriously
that's the only way to prove TCness
You could convert it to/from BF
Or the other way of proving it which I don't understand at all
21
Q: How to Prove a Programming Language is Turing Complete?

Max RiedI had some thoughts about how to prove the turing completeness of a programming language. I came to the conclusion, that if you could write a program that is able to parse a turing machine program, both should be equivalent as you could execute every turing machine program with that parser writte...

@TùxCräftîñg TL;DR: Write an interpreter for another TC language in stackylogic.
12:49
3
A: How to Prove a Programming Language is Turing Complete?

sxdParsing is not really correct. I think you wanted to say that if you can simulate a Turing machine in your programming language. For another method: you could write a program that evaluates all computable lambda calculus expressions. (Or any formal system which is equivalent to Turing machines, ...

lambda calculus? \o/ i am saved
Hell, you don't need to write the interpreter in stackylogic
For example
you can write a Python program which translates BF into stacky
stackylogic is not TC
@βετѧΛєҫαγ I used to watch that when I was id. Have they stopped making it?
12:55
it cant loop
Wow that Domino answer
@TùxCräftîñg I mean, if you want to prove TCness
The XOR is crazy
you don't need to write an interpreter in that language
12:56
xnor is very small compared to xor ಠ_ಠ
We need a prime tester in dominoes now
Can you prove Turing completeness by implementing Game of Life?
@muddyfish Yeah, they stopped in 2010 :P
@BusinessCat domino is like stackylogic: no (automatic) looping is possible
so unless we have a prime-testing domino prime testing is not possible
0
A: Sandbox for Proposed Challenges

βετѧ ΛєҫαγDNA Encode a String code-challenge string kolmogorov-complexity Challenge You must write an encoder (and a separate decoder) which takes a string as input and outputs the string encoded in the style of a strand of DNA. DNA DNA is made up of four types of nucleotide: Adenine (A) Thymine (T)...

^

« first day (2039 days earlier)      last day (3103 days later) »