« first day (2061 days earlier)      last day (2773 days later) » 

6:00 PM
more odd worked...
 
CMC: RNG that passes the ENT tests.
Sample size: 128256.
 
Mathematica: CellularAutomata[30]
after some steps it's totally random
 
Good, now put an evolution of Rule Thirty into a file of exactly 128256 bytes.
 
bai
 
6:06 PM
Hahaha, from a site's ToS:
> You agree to click on the Terms of Service link to check for updates and changes at least as often as you use any of our other services.
 
Wow
That's a little obsessive, even for lawyers
 
anyone can explain snippet length 9 of x86 assembly on language showcase ? i don't understand how it outputs all that stuff DX . i understand decrementing & looping & other things but where is the bios interrupt for displaying text ?
if i post it to SO , it will be downvoted ...
 
6:24 PM
> at least
 
Yeah, you should probably check it more often.
 
since checking the ToS requires loading their website, does that not constitute as using their services?
 
@GLASSIC Not sure, but you could comment there for an explanation if you haven't.
@MartinEnder Maybe they have it hosted off-site for just this reason.
 
clever
 
6:27 PM
Big Capital Kludgery?
 
BACK without the vowel
 
Mine works really well for it too, though.
 
@TùxCräftîñg H
 
9
A: StringgnirtSStringgnirtSStringgnirtS

Wheat WizardBrain-Flak, 418 378 228 bytes This is my Brain-Flak masterpiece. It may not be well golfed but the challenge is the most difficult I have ever encountered. Try it online! (([])[()]){({}[()]<(({}(<()>))<{({}[()]<(({}()<(({}<>))>)<({()<({}[()]<({}<({}<>)<>>)>)>}{}<>){({}[()]<({}<>)<>>)}{}>)>)}{}{}

This answer deserves more recognition
 
It's the third highest voted out of 51 answers. Does it?
 
6:35 PM
There is no snowball chance in the hell of building bochs with SDL2 & debugger on OS X. I miss my old Compaq
 
Idk, it blows my mind though
 
Math trick: given n - a digit that is not 0, 37037 × n × 3 = six n.
37037 × 5 × 3 = 555555, etc.
 
3*37037=111111
 
i personally dont miss my old (7-years old) compaq :P
 
i do . i love old computers
you can do many, many things with them
 
6:41 PM
37037 × 6 × 3 = 666666
 
1
Q: Tips for golfing in EXCEL?

tuskiomiIt's strange that I haven't seen this, as EXCEL seems to be a valid language for code golfing (despite its 'compiler' not being free). Excel is somewhat of a wildcard in golfing, being good at golfing challenges of medium complexity, and sometimes simpler challenges as well. More often than not,...

 
apparently cellular-automata isn't something that is related to excel... :( — tuskiomi 36 secs ago
102
Q: Build a working game of Tetris in Conway's Game of Life

Joe Z.Here is a theoretical question - one that doesn't afford an easy answer in any case, not even the trivial one. In Conway's Game of Life, there exist constructs such as the metapixel which allow the Game of Life to simulate any other Game-of-Life rule system as well. In addition, it is known that...

omg 100 upvotes
 
a quick question : what happens when linux runs a program ? does it execute instructions like an interpreter ? how os-specific interrupts are implemented ?(like 80h in unix etc)
 
x86 magic principally
i suggest you reading how OSs works and the x86 spec
 
well ... i'm planning to study xv6 . but self-studying computer science & programming is not a good hobby to do at the middle of highschool ....
 
6:57 PM
code sections can have 4 privilege levels in protected mode, and generally only 2 of them are used: kernel and user mode. the kernel will simply load the program in memory and jump into it (overly simplified). the x86 architecture have a 'interrupt table', so the OS can specify than the interrupt 0x80 jump to a portion of kernel code, and when the cpu will handle a interrupt, it will check in the interrupt table and jump to the specified location
very weird simple explanation
wow
 
i've already found it on wikipedia
 
............. ._. — Maltysen 2 days ago
best comment ever
 
24 hours ago, by zyabin101
@Lynn you got a two-byte builtin answer in Jelly, that was made with your own hands.
._.
 
7:23 PM
@flawr Okay, thanks! :)
 
><silence>
 
@TùxCräftîñg Ten seconds of silence is not noteworthy enough to comment upon. :P
 
ಠ_ಠ y u posted a message
 
Also, silence will fall. :P
 
CMC: Given an integer N, output if N² is prime
 
7:27 PM
@TùxCräftîñg Many languages, 1 byte: 0.
 
@zyabin101 when the question is asked?
 
PowerShell, 1 byte 0
 
easiest CMC ever
 
Unfortunately, it's two bytes in Minkolang: N..
 
7:27 PM
oh wait i am stupid
5
 
Python, 5 bytes: False
 
Jelly, 0 bytes.
 
WeLoveToStar★WeirdMessages
 
Pyke, 0 bytes - no output is Falsy!
 
7:29 PM
CMC: Prove that N² is not prime.
 
becuz N² is always composite
 
@zyabin101 Proof: N is a factor, thus N^2 is composite. The two special cases where N = 0 and N = 1 are not prime either.
 
less easy CMC: given a array, output the next step of the rule 30 cellular automata on an unbounded grid
 
wat
 
test cases: [1] -> [1,1,1],[1,1,1]->[1,1,0,0,1]
 
7:33 PM
@TùxCräftîñg Let me discover a Wolfram|Alpha query for that.
Wolfram|Alpha knows everything.
 
for mathematica it's fairly simple: CellularAutomata[30]
 
Dagnabbit ... Got my Prime Factors Buddies speed down to ~2 seconds for input 117, but it's still over 5 minutes for input 204 ... Le sigh.
 
> Dagnabbit
 
@TùxCräftîñg It's a perfectly cromulent word.
 
@TimmyD TODO: write an article "How to Make Code Fast in PowerShell" (or any other lang, for that matter).
 
7:37 PM
and for my CMC?
 
@TimmyD I've never heard it outside of Springfield though.
 
You should try living in the southern US then ;)
 
@Dennis Yeah, it's definitely a regional thing.
 
what springfield? :P
 
D'oh!
 
7:40 PM
CMC: Given a string and an array of positive integers, output an array with substrings a[0]:a[1], a[1]:a[2], ..., a[n-1]:a[n] of the string.
For example, abcdefgh, [1, 2, 3] becomes ['a', 'bc', 'def']
 
@TùxCräftîñg A McDonald's in every town and a Springfield in every state
 
@TùxCräftîñg The Springfield where a noble spirit embiggens the smallest man.
 
...wat
 
@Dennis - created pull for jelly.py to add consonant and vowel yield - seems these are quite often used in golf.
 
@JonathanAllan Nice! Get an upvote!
 
7:45 PM
 
@DJMcMayhem Where do I input the array? :P
 
Oh, I totally misunderstood it, haha
 
@TùxCräftîñg sud south?
 
sud means south?
 
7:48 PM
ye
 
@Adnan PowerShell v2+, 51 bytes -- param($a,$b)$i=0;$b|%{-join$a[$i..($i+=$_-1)];$i++}
Don't technically need the $i=0, though, so I guess it's 47
 
Nice! :)
 
8:15 PM
> Callbacks and references don't freak out C developers, maybe Haskell does though.
haha
 
From which moment is chat in mobile Chrome having a blue address bar? :/
 
@JonathanAllan I'm not sure if having both uppercase and lowercase variants in the same atom will be beneficial, but I guess time will tell. I personally would have written the vowels as list('AEIOUaeiou') though (similar for the consonants), which is both clearer and faster.
 
@Dennis I shall change it
 
3
Q: Substring Chainification

AdnanIntroduction For this example, let's take the string Hello, World! and the array [3, 2, 3]. To find the substring chain, we go through the following process: The first number of the array is 3, so we get the substring [0 - 3], which is Hel. After that, we remove the first 3 characters from the ...

 
@zyabin101 As soon as someone adds the corresponding meta tag.
 
8:22 PM
Oh wait, it's a contagion from buggy Chrome transferring Reddit's blue bar to chat. Fixed now.
 
@Dennis - done
 
TIL there are exception handling funcs in C99
 
(wiki Atoms page update at the ready too)
 
@JonathanAllan Merged. Thanks!
 
Nice
Updated Atoms page on wiki
 
8:31 PM
'night golfers
 
Anyone GitHubs here? o/
 
Is github a verb now? :P
 
Nope. :P
Do you have a GitHub?
You obviously do, because of V.
Let me count: me, DJMcMayhem, Tux, Jonathan, Dennis (Jelly), Adnan.
And a few others I dismissed.
There's a whole new Octoverse waiting: github.com/blog/…
 
practically everyone
 
@zyabin101 and others
 
8:39 PM
@DJMcMayhem If I did, I wouldn't have posted a comment. :P
 
@zyabin101 ;_; y u dismis gaot
 
@Downgoat ;_; to low to see
Downgoat, you can now enforce code reviews. :3
 
@Dennis Haha, fair enough. Never hurts to ask though
That's one of the things I love about this site. Even though it's fiercely competitive, everybody is really friendly and helps everyone else out. It's awesome! :D
 
@zyabin101 FYI, "dismiss" is somewhat of a synonym for "reject" which is probably not what you want. Just "missed" would've been fine.
 
Okay.
 
8:45 PM
@zyabin101 you have been ninjad by like 3 days :P
 
By defunkt? ;)
 
Gah. Down to ~4.5 minutes for the 204 test case ...
 
@TimmyD Here is a MS TN blog post about speed optimising PowerShell.
You just need to balance size and speed. ;)
 
Yeah. Slowly getting there.
 
Jan 14 at 16:32, by Dennis
@zyabin101 Many of us (myself included) prefer friendly collaboration over fierce competition.
 
8:50 PM
The 117 test case runs in about 2s, so, significant improvement there.
I'm not sure how much faster I can make this particular approach, though. I think it's going to need a rewrite.
 
@Dennis Yeah, I'd agree with that too, but the most fun I've ever had on here is when I get in an intense battle over an challenge
Like with Adnan or Conor
For example this is still by far my favorite answer I've ever posted:
8
A: Draw a ladder and slide

DJMcMayhemV, 38, 37, 36, 34, 33, 32, 31, 30 29 bytes Àé r\2é/4é-òhYpX$2P^ò3GEòjlr\ Try it online! I might catch up with Osabie. One byte shorter than Osabie. \o/ Tied with 2sable! One byte shorter! In other news, this is definitely the longest strikethrough header I've ever made. Explanation: Àé ...

 
@El'endiaStarman now I wonder, what do you need it for?
PS: Do the non-european people here know what chamois are?
 
@DJMcMayhem You asked for it. I'll try to beat 46.
 
@DJMcMayhem One time, I had an intense battle with a Ruby answer
 
From your title, and from your parenthetical explanation of the phrase "toroidal", I am going to guess that what you really want is just a compact, 2-manifold. Is that correct? — Lee Mosher 24 hours ago
 
8:57 PM
@DJMcMayhem yeah, that was fun
 
which was fun, but also shameful at the same moment
 
Friendly competition is great
 
@Dennis uh oh
 
@El'endiaStarman oh=)
 
@Adnan Wait, you mean like 05AB1E vs ruby? How does that happen?
 
8:58 PM
@Dennis (1) I love how most if not all of the commands in Jelly have memorable names, like "Insignificant". (2) Would you mind too much if I forked Jelly and made it into a rather odd esolang?
 
@DJMcMayhem Python takes millions of bytes before you can actually use urlopen
 
@El'endiaStarman i don't know topology but im gonna guess that compact refers to the part where it wraps around and 2-manifold is cuz its 2d surface
 
I'll see if I can find it
 
@flawr Yeah, it's weird how I know more math than like 99% (maybe even 99.9%) of everyone, but stick me on Math.SE and suddenly like half the stuff makes me go "...I have no idea what you're talking about".
 
6
A: Determine If a Challenge is Worth Answering

Adnan05AB1E, 167 160 159 158 156 154 143 bytes Damn, almost as long as a normal language... Crap... longer currently beating the the Ruby answer by 1 byte. Now longer than the Ruby answer, argh!. I probably should go to bed right now. Thanks to @wnnmaw for saving 1 byte and thanks to @R. Kap fo...

 
9:00 PM
@Maltysen That's what I figured too, but mathematicians have a funny way of having really precise definitions that may or may not be related to what the words suggest. :P
 
I like the "more readable" version; those extra line breaks really make a difference! ;) — Wildcard May 4 at 1:16
I honestly throw around the term "more readable" when I really don't mean it
 
@Adnan Bwahaha, I'm dying
That's hilarious
 
@ConorO'Brien widlcard pls
 
@Adnan can the substring thing's output be like new lines for every part?
 
9:07 PM
+1 for the readable version — trichoplax Apr 6 at 21:31
this is the epitome of readability
 
(it's a running joke)
 
0
A: Substring Chainification

DennisPython 3, 45 bytes f=lambda s,a:f(s[a[0]:print(s[:a.pop(0)])],a) This prints one substring per line and terminates with an error. Test it on repl.it.

 
@betseg Yes, you may do that
 
@ConorO'Brien Mnemonics are the main reason I created a code page for Jelly.
Go ahead and fork it, I don't mind.
 
@Dennis I should have kept my mouth shut. Nice job!
 
9:09 PM
cool, thanks!
@Dennis ah, that's interesting
 
That and typeability. At least on Linux and OS X, you should be able to type all characters with the US international layout.
 
wat
ideone doesnt newline with puts()
 
@ConorO'Brien in general, mnemonics and typeability are the only good reasons for creating your own code page. they don't give you any golfing capabilities that wouldn't exit with an extended ASCII code page of your choice, but they make the language much nicer by avoiding having to use unprintables.
 
@MartinEnder well, a lot of extended ASCII code pages have some unprintables.
 
exactly
but there's no reason why you couldn't use those for programming
you've still got 256 different values per byte to work with
they just don't look very nice
 
9:17 PM
And it's a pain to program in
 
@betseg It uses clang 3.7
 
0
A: Substring Chainification

betsegC (gcc), 81 bytes i,j;f(s,l,k)char*s;int*l;{for(i=j=0;i<k;){write(1,s+j,l[i]);puts("");j+=l[i++];}} I'm not putting an Ideone link because Clang doesn't output properly :( test.c: i,j;f(s,l,k)char*s;int*l;{for(i=j=0;i<k;){write(1,s+j,l[i]);puts("");j+=l[i++];}} main(){ int l[]={3,2,3}; ...

it this right
 
@ΛεγίωνΜάμμαλϠΟΗʹ Does that matter? The newline is required by the specification. (source)
 
@Dennis Standard draft link?
 
@ΛεγίωνΜάμμαλϠΟΗʹ port70.net/~nsz/c/c89/c89-draft.html#4.9.7.10
 
9:29 PM
@Dennis Another standard-compliant explanation: It has a write error and doesn't get to the newline.
 
And Ideone has both gcc 5.1 and clang 3.7. Neither of them works.
 
This is incredible. Basically, artificial evolution produced a chip design that was smaller than human-produced solutions (for the given task), and it did so with a few totally disconnected components that were nevertheless essential.
 
@ΛεγίωνΜάμμαλϠΟΗʹ @betseg Eh. ideone.com/J7qLam
 
@Dennis Yup. Ideone is broken.
 
@El'endiaStarman yeah remember seeing that when studying EEng back in the late 90s
 
9:37 PM
good night btw
cya
 
Bye!
 
@betseg Doesn't seem to be Ideone's fault. gcc does the same locally if I pipe the output to cat.
 
@Dennis so, write() is broken?
Probably ideone pipes the output too
 
Maybe it's buffering wrong?
Try flushing after each operation
 
9:45 PM
Yeah, that fixes it. printf and puts appear to be buffered while write is not.
 
1
Q: Are there any languages especially good at ASCII art?

Socratic PhoenixBasically, I was wondering if there are any esoteric or golfing languages which specifically target text output and ASCII art? Like, for example, 05AB1E at least started by targeting base conversions. Are there any golfing languages targeting text output and text output art? If so, do they have t...

 
@NewMainPosts @DJMcMayhem
 
2 pings for 1?
 
sorry :/
 
9:55 PM
:P
 
@ConorO'Brien :O
Cool
 
10:08 PM
I need a name for an (kinda) AI that tries to tell you what things are. Right now I have "Knowledge Engine" but that's kind of boring.
 
As in, similar to a 20-questions bot, or computer vision, or what?
 
It takes a word or a phrase and finds matching/related words or phrases that are often discussed by humans (some meta-analysis of the Internet) and categorizes it with a specific category from a finite set of categories. It also shows in-depth definitions if the confidence level is high enough.
Pretty hard to describe actually, because it's so meta.
 
@mınxomaτ Categorical Engine?
 
That's even more boring.
 
I like it :P
"Thing Finder"
 
10:35 PM
yo
2
A: Showcase your language one vote at a time

Destructible WatermelonTurtlèd Factoid: The name of turtlèd contains an accent thing. This accent thing means you should pronounce the syllable, rather than not. Example: striped -> straipt, stripèd -> straiped. turtlèd is pronounced turtle-ed, which is kind of appropriate because the turtle edits text on a grid. 1 ...

snippets added
 
@DestructibleWatermelon why do you have the length 2 snippet if there's one upvote?
 
did... did someone remove their upvote ._.
WHO DOWNVOTED
;_; why you do dis
 
I upvoted, add the snippet back :P
 
thanks!
done!
 
10:52 PM
@DestructibleWatermelon please don't beg for upvotes
 
I just added them and thought the people who voted might not have seen them yet
 
@DestructibleWatermelon somebody downvoted your post again lol
 
11:27 PM
@El'endiaStarman Feature request for VoL: show what coordinates I'm currently mousing over
 
Hello
 
@DestructibleWatermelon I'm not sure why this got downvotes aside from being posted in chat
Personally I'm OK with this since these showcases aren't really the same as an actual answer, they're supposed to be showed off
within reason obviously
 
@DestructibleWatermelon why'd you delete?
 
@Dennis Push Logicode, please
Music for your ears
 
11:51 PM
@DestructibleWatermelon I feel bad that two people downvoted your post--I assume because they had not the patience to see these types of things in chat. I personally don't like vote begging, with the sole exception of showcases. I would love to see more of what your language can do.
@El'endiaStarman Speaking of showcases, are you going to update Minkolang's any time soon?
 
-1
Q: I need java code for following problems

Nirav PatelPlease write a program to use vector and list to store 10 integers in order (from smallest to largest). You need to find proper location using vector or list functions for each number added. Please do NOT use any sorting function. a. Generate 1 random integer between -100 and 100 and display it ...

 

« first day (2061 days earlier)      last day (2773 days later) »