« first day (2113 days earlier)      last day (2730 days later) » 

11:00 AM
but here it is maybe
!-l[*+.r_]' !l[ l]r[ u.(;d' u)(1'0)(0d)(0u)(1[ r].u{ l})' d( r)+]
 
This is a random array generator in APL
randArray←{(?¨(⍺⌿(?⍵)))}
 
halts if inputted CT program halts
 
@MicroTransactionsMatterToo Random array?
 
Array of random numbers
?¨(⍺⌿(?⍵)): Minimised
Within given range, and length
 
@MicroTransactionsMatterToo As input?
 
11:02 AM
Hmm?
 
Range and length are inputs?
 
⍺ and ⍵ are APL argument placeholders
Yes
They're arguments
Or inputs
If wanted
Woops, looks like it's broken
I'll try to fix it
Oh, never mind it works
It uses the range arg as an upper bound
Use is, len randArray range
tryapl.org. Paste this first randArray←{(?¨(⍺⌿(?⍵)))}, then something like 400 randArray 30
 
Charcoal doesn't do too badly, and wasn't even supposed to be golfy for numbers (btw by default numbers are printed as lines since this is ASCII-art-focused, here is a more readable one
First input is range, second is number
 
Cool
HTML Tag remove (Not mine, off wikipedia, but still cool) : ⎕←{⍵/⍨~{⍵∨≠\⍵}⍵∊'<>'}txt
is IO
Sort of
It's also system functions, like ⎕LOAD
 
I was thinking of making a language: Turtlèd but golfy
 
11:11 AM
@DestructibleWatermelon That's what Charcoal is supposed to be
 
not exactly
very different really
 
Luckily with golfing languages, the need for AST's seems considerably lesser than a normal language
 
It's false for languages with exotic parsing rules, like Jelly
 
@MicroTransactionsMatterToo No
For stack-based languages, yes
 
11:12 AM
Adjective: false ‎(comparative falser, superlative falsest)
  1. Untrue, not factual, factually incorrect.
  2. Based on factually incorrect premises.
  3. false legislation‎
  4. Spurious, artificial.
  5. false teeth‎
(16 more not shown…)
Adverb: false ‎(comparative more false, superlative most false)
  1. Not truly; not honestly; falsely.
  2. Shakespeare
  3. You play me false.
Noun: false ‎(plural falses)
  1. One of two options on a true-or-false test.
  2. The student received a failing grade for circling every true and false on her quiz.‎
  3. false
  4. vocative singular of falsus
Verb: false
  1. Formal second-person singular (usted) imperative form of falsar.
  2. First-person singular (yo) present subjunctive form of falsar.
  3. Formal second-person singular (usted) present subjunctive form of falsar.
  4. Third-person singular (él, ella, also used with usted?) present subjunctive form of falsar....
 
@MicroTransactionsMatterToo Charcoal has an AST
 
Yes
I said lesser
Not unneeded
 
Lesser? Not at all
 
gtg bai
 
To an extent, some AST is always needed. Whether it's actually needed in that form is a different matter
Could just be an if, else if in a parser
 
11:15 AM
It only applies to stack-based esolangs, and those are becoming scarcer and scarcer. Of course, for the majority of other languages like Jelly which have very few different types of constructs, an AST does not actually need to be constructed
 
For instance, Brainfuck loops. They loop if the current cell is not zero. You could use an AST model, or just an if clause
Yeah
 
@MicroTransactionsMatterToo ASTs aren't needed, just they make things easier the more complex your language's syntax is
 
I didn't need an AST or something
 
kk
I'm used to writing parsers for larger languages
Would parsing a MIDI data stream be a decent challenge?
 
11:18 AM
Maybe? If it isn't super complex, it should be fine, but be careful and make sure there aren't any other similar (i.e. MIDI-based) challenges before posting
 
There actually aren't any libraries in a majority of languages for parsing MIDI files
There is one for C/C++
And none at all for python, that actually work
 
@MicroTransactionsMatterToo :P
 
It's kinda annoying
I'm writing one in Dart and Python at the mo
 
If you want decent code, maybe make it a and encourage submissions in all languages?
 
Yeah
I would have to limit it to normal Note/Polyphonic events
There are too many in the full spec
Or maybe just a challenge for parsing a MIDI delta time. They're variable length
 
11:21 AM
> <script type="text/javascript" src="http://localhost:48626/takana.js"></script>
+1 for having a localhost url on your website
 
Hmm
Ah
Yeah, I was doing dev
Doesn't matter
It's not actually an open port on the server itself
It's just a live reloader for SCSS
 
:P not a good idea to do dev on the production server
 
I know
I wasn't
It was local, just forgot to remove the link
It's running on an Azure VM
This is what I'm currently working on
It gives me something to do in school
And it's good fun
 
@MicroTransactionsMatterToo Why work on it when there's Google Translate?
 
Google translate is absolutely terrible at Maori
 
11:29 AM
+1 though, I can never get myself to focus on one project
 
It's literally never right
 
@MicroTransactionsMatterToo Yeah, but it's getting better (slowly...)
 
Google Translate is ML based, and as there is bugger all material online in relation to the Maori language, it doesn't do well
And the Maori material on the internet isn't increasing very fast
Anyway, people don't use Google Translate for Maori, cause they know it's wrong
So, Google doesn't get any new data
 
Hmm
 
The nice thing about Maori, is that it follows it's own rules rigidly, meaning we can use a rule based system for translations
 
11:33 AM
Why did Google even add Maori then?
 
Google has added just about every language they know of
But they didn't really commit to any of them
It was an experiment at first i think
It just kinda grew
 
0
A: Sandbox for Proposed Challenges

Martin RosenauHDL quine (is it possible at all?) I have the following idea: Write a program in a hardware description language (e.g. VHDL, Verilog ...) which can be executed on a programmable logic device (CPLD, FPGA ... or only simulated on a PC, of course) and outputs its own source code (e.g. Verilog code...

 
Cool
I wish HDL langauges were easier to work with
 
@MicroTransactionsMatterToo rules = grammar?
@MicroTransactionsMatterToo No, in general they don't add a language until they have a sufficiently large corpus to provide decent translations
@MicroTransactionsMatterToo Maybe, but it doesn't really explain why there are so many other translation services other than Google's
 
Dunno then
Maybe it's because there is enough on the internet to get a general idea, but not enough to be accurate
They translate everything with the same tense,
The words are generally correct, but order and non-direct translations of words (things like and, a and it) are all wrong
 
11:37 AM
How are you going to do the English -> Maori translation?
English is literally the worst language to parse
 
We're using a lib called NLTK to deal with the English side of things. The maori side of things is done by creating rules that either infer meaning/context from words in the sentence, or directly asks the user
NLTK is a beautiful piece of work
If we didn't have it, the project wouldn't be happening
Anyway, the original prototype got to about %98.7 accuracy if the user response was correct
I'm working on making it into an extendable framework, and creating a web interface for it
Pretty good going considering I'm only 14
We got the whole thing verified by the leading Maori linguist. He said he thought it was awesome
Ironically, the rest of the team is French
 
@MicroTransactionsMatterToo In PPCG "pretty good" means something different than outside PPCG :P
 
Oh, what does it mean?
 
Well, we kinda have different standards
 
Oh, what would that mean?
As in, how would these different standards affect that statement
 
11:45 AM
Not too much, I guess?
 
Ok, thanks for the heads up though
Anyway, I meant "Pretty good" in general. There aren't too many 14 yr olds working on a full-scale translation framework (Correct me if I'm wrong)
 
Almost everyone here has made at least one esolang, and we have a significant fraction of <20 year olds - there have been some amazing projects e.g. Downgoat/Conor have been writing a non-esolang (Also El'endia/quartata on another one)
 
Yeah, that's cool
 
Hello!
 
Although, I feel an Esolang, depending on what it is, wouldn't neccesarily be to hard to create
 
11:47 AM
@ASCII-only How to make web server thing?
@MicroTransactionsMatterToo Not true for some esolangs...
 
I know
I said depending on what it is
 
@MicroTransactionsMatterToo They wouldn't be easy either
 
They wouldn't be too hard with a pre-made parser
 
Yeah, I realise that
However, something like Brainfuck isn't hard to implement
Implementing it to be as Turing Complete as possible, is a different problem
Befunge, on the other hand, would be somewhat tricky to parse
 
What do you mean "as Turing Complete as possible"?
It's pretty binary if you ask me
 
11:49 AM
Well, a Turing Complete language is limited only by the thing it runs on
So, it would really just be accounting for that
 
0
Q: Plot a list of numbers

AngsAre you feeling jealousy towards Mathematica, Matlab et al. for their intricate plotting capabilities? If you answered yes, this challenge is for you! Challenge Given, via parameters or standard input, a list of numbers list and a positive integer h for the height of the plot, write a program/f...

 
Not necessarily difficult, but some languages may require a creative approach
 
Yeah, but Brainfuck kinda filled up its niche, not many here bother with brainfuck derivatives
 
Yeah
It was just an example
 
There are just too many BF derivatives out there
 
11:51 AM
@MicroTransactionsMatterToo Brainfuck is as TC as possible
 
Yes
I'm aware of that
 
@MicroTransactionsMatterToo creative?
 
> Implementing it to be as Turing Complete as possible, is a different problem
 
3many5me
 
11:51 AM
@Qwerp-Derp what is this, bison?
 
Wut about Bison
 
what
 
Whoohoo, there it is, my first question!
 
bison is a parser generator (very good for complex languages)
 
What he said
Generally couple with Lex or Flex
Yacc is a similar idea
 
11:53 AM
@ASCII-only A parser... wink wink nudge nudge
 
bison = new yacc, flex = new lex
 
bison = super hard to understand
 
I played with it a bit, but got confused. Was a while ago though
Yeah, it's weird how it represent a literal AST using text only
Seems like it would make more sense to have a more programmatic approach to the representation
As in, I feel like Bison's AST structure wouldn't be easy to parse in and of itself
 
11:54 AM
Cool
Jison is a Javascript implementation of Bison
 
I'm thinking of creating a game website thingo
Where you have to trade stuff between villages
 
Yeah
Ah, ok
Sounds interesting
 
@MicroTransactionsMatterToo ?
 
And you make money
 
@MicroTransactionsMatterToo what do you mean
 
11:56 AM
IDK I'm just throwing ideas out there
 
@ASCII-only You mean Jison
 
What now I'm confused
 
Sorry, two convos at once
 
@Qwerp-Derp what should team names be?\
 
11:57 AM
@MicroTransactionsMatterToo Yeah, I've used that before, just not in this project
 
@ASCII-only Ah, cool. I tried to make a custom markup language during a hackathon for it. We ended up making something that converted Skype MD to Slack MD
@Qwerp-Derp Sounds interesting, although I think it would need something special to make it a bit more interesting
 
@MicroTransactionsMatterToo also pls hover over/click the little button on the left of the reply to see what I'm replying to?
What do you mean by "Yeah, it's weird how it represent a literal AST using text only"
 
@ASCII-only I have
 
@ASCII-only Oh, that's what confused me when I was using it
 
Ooh hang on I've got it
You can conquer other bases, and you can then introduce them to your city
 
11:59 AM
So, kinda like an online Civ
 
You can also create things like lumber mills, stone mills, etc.
True, but trading is the most important thing
I kinda want to focus the game on trade
 
Sounds interesting
 
And idleness
 
Maybe if you implement true multiplayer to it, if you hadn't already intended to
 
0
Q: Code Golf: BlackJack

Jacobus ConradiThe Challenge I was looking into small code examples for a specific language as a small tutorial and came accross a simplified Blackjack that should be implemented. In this Challenge you will have to implement a full Blackjack game, with 5 Decks. The Game You are playing against a Dealer and h...

 
12:01 PM
@Fatalize :( nobody else replied, so I guess it's the submissions from PPCG are just Charcoal and Brachylog?
@MicroTransactionsMatterToo ok I'm really confused rn, what message were you replying to?
 
Possibly
 
Latest reply was to the AST thing
Sorry about the confusion
 
@MicroTransactionsMatterToo Yup, going to implement that when I know how to
Halp how to create web server
 
I could probs help out
 
@Qwerp-Derp What language
 
12:02 PM
What language you planning on doing it in
 
What language do you guys recommend?
 
Damn, beat me to it
 
PHP?
Python?
 
Nah, PHP is a bit old
 
PHP = No
 
12:02 PM
Node.js (JS)?
 
Python/Ruby/JS
 
But I'd reccomend looking into NodeJS, Dart or Python
And ruby
 
If I were you I'd use maybe Python + Jinja + Flask/Django, because IIRC you're most fimilar with Python
 
Mmm, I don't know
Django was designed for a blogging type use originally, and it still shows
 
@MicroTransactionsMatterToo Wait Jison automatically prints AST??
 
12:04 PM
Ruby on Rails is awesome stuff for making web apps.
 
@ASCII-only Huh, not that I know of
I don't know. I never really got into Ruby, but apparently it's great for app stuff
NodeJS is good for web devs
Cause it's just JS
Dart is good for those familiar with C-type languages
Python is python
@ASCII-only The AST thing I was talking about was my earlier comment on Bison
 
... Almost every language is C-derived (including JS, and to a lesser extent Python)
 
Yes
But I mean, those familiar with C more than a dynamically typed language
Dart is not necessarily typed, but benefits from it
 
Sorry, still don't get what you mean by "Yeah, it's weird how it represent a literal AST using text only"
 
Go is also good for fast web servers
 
12:07 PM
What about it
How is it weird
 
The bottom, not the top
Sorry, I'm just making things worse
```
%%

input: /* empty */
| exp { cout << "Result: " << $1 << endl; }
;

exp: INTEGER_LITERAL { $$ = $1; }
| exp PLUS exp { $$ = $1 + $3; }
| exp MULT exp { $$ = $1 * $3; }
;

%%
```
Is what I meant
 
Yeah, what about this
 
It was initially confusing for me
I get it far more now, but back then I knew bugger all C/C++
Sorry guys, gotta go and be productive
 
Not very confusing if you learn about grammars first (which is pretty much what a bison file is - a grammar with inline code)
And the only C++-specific code is the output code
 
12:27 PM
Good morning ;)
 
'd afternoon
 
'd afternoon
 
'd noon
 
12:39 PM
I have remembered RIP Ritchie's death, 31 days after its 5th anniversary.
 
1:13 PM
Oh look it's muddyfish impostor :P
 
'd afternoon
 
@ASCII-only sorry what?
 
@BlueEyedBeast you have a different name now
 
@ASCII-only I was making a joke about the imposter bit. sigh
 
Why is everyone different today
I swear I just saw DownTimmyD for a second there
 
1:18 PM
We never were the same
 
-1
Q: What is the smallest / fastest program in execution time?

Peter HwangSo far, I found Pascal program begin end. When I execute it, It takes 280KB of memory and 0MS execution time. Is there a faster and smaller code than this? For example, C program main(){} takes 936KB of memory and 0MS of execution time.

 
@BlueEyedBeast Yeah I still think you're an impostor because your about still says you're muddy
 
@ASCII-only fixed.
I'm just looking at cute pictures of wolves
 
1:41 PM
@ASCII-only waves hand This is not the TimmyD you're looking for.
 
@NathanMerrill: Is there something analogous to Bernoulli factories for other kinds of source distributions? I.e., using a die instead of a coin.
 
@DestructibleWatermelon Why do you deleted the Turtlèd answer on showcase your language?
 
2:05 PM
@El'endiaStarman err... What's Bernoulli again?
I'm not really that knowledgeable about stats
 
@El'endiaStarman Ah, shoot, I misremembered. Hey @LuisMendo...
 
I probably should've done a chat search on "Bernoulli"...
 
Seriously, of all people to not search the chat...
 
;_; I know I know...
There's a few people in here who regularly talk about math topics, and it can be a bit hard to keep straight who talked about what. Me, you, Luis, flawr, feersum, PhiNotPi, etc...
 
2:08 PM
In other news I'm a couple bugs away from posting my next KotH :)
 
\o/ Is it the Fellowship one?
 
Only a couple bugs? Cool, so that's like three or four more months, right? :P
 
yesterday, by TimmyD
99 little bugs in the code
99 little bugs
Take one down, patch it around
103 little bugs in the code
 
Lol. I think I have 1 more logic bug, and I have to get the UI for a single character working
But unless I uncover more logic bugs, that's it
 
2:22 PM
Have you checked for illogic bugs? :P
 
logic ilbugs
logic pillbugs
 
Hmm. If you could predict how pillbugs react when they meet another pillbug (vs not meeting one), I guess you could use them as logic gates.
 
CMC: Make a pillbug based microprocessor
 
We need a pillbug gun first
Someone call Conway and get him to put up a $50 bounty for it
 
user image
2
 
2:32 PM
 
Just saw this in code:
try{
	...
}catch(e){/*squelch*/}
 
@Geobits Isn't that a pillbug with a gun, not a pillbug gun?
 
The gun is obviously sized and shaped to accommodate pillbugs, though.
 
@El'endiaStarman It's uh, both? An aircraft cannon is one mounted on an aircraft, not just one used to shoot them :P
 
@mbomb007 So, error suppression is on?
 
2:36 PM
Gotta make sure the squelch is turned up or you get all kinds of noise.
 
@Geobits But a potato cannon is one that shoots potatoes (as the ammo), not necessarily what you use to shoot potatoes (as the target).
 
Sure. I'm just saying the phrasing can be used either way.
If I made a harness to attach lasers to sharks, I'd definitely call them shark lasers.
 
...now I'm curious for linguistic reasons.
 
But if I made lasers designed to shoot sharks, I'd call them shark lasers instead.
 
What's the wavelength of a shark?
 
2:41 PM
And if I made a device that shot many sharks in an excited state in a focused beam, well... I'd call that a shark laser.
@feersum Depends on the tide and wind I think.
 
Do sharks make waves? I had thought they were mostly always totally submerged.
 
They do when they're trying to be scary.
 
The "fin-above-water" thing is fairly common, at least near the shores here in Florida. Probably because it's shallower than usual, but it's rare I go to the beach without at least seeing one, even if its a small one.
 
@Geobits Are people who live near the beach usually more aware of the fact that shark attacks are actually really rare?
 
2:45 PM
Yeah. Most people don't bother getting out unless it's a big one.
But the big ones are rare.
 
@Geobits well, the shark, being in an "laser-like" state, I'd call them laser sharks, making the weapon laser shark laser
 
IIRC, nurse sharks are the most common bites around here, but that's mostly because they hang out on the bottom, so people don't know they're there and step on them or kick them.
 
Man, those sharks are bad nurses. </probably-old-overused-joke>
 
@NathanMerrill And if you give one of those to a shark, you'd have a laser shark laser shark.
 
and then we'd actually have to be scared of sharks
 
2:48 PM
It's a pretty odd feeling having a six-foot shark swim by you though. I don't know if scary is the right word, but apprehensive at least.
Usually when they get to be taller than me I'm done swimming for the day lol
 
@Geobits And if someone cheats others with those, you'd have a laser shark laser shark shark.
 
Yeah but then you can just shoot them with a laser shark laser shark shark laser as punishment.
 
@TimmyD And if that someone is a laser, then you'd have a laser laser shark laser shark shark!
 
@El'endiaStarman but if that someone had a dog, then it'd be a dog!
 
@NathanMerrill Haha, gotta appreciate those funny anti-jokes...
 
2:54 PM
Reminds me of buffalo buffalo buffalo.
 
hi guys
 
Hi! Are you here for the free shark lasers?
 
Free?
 
Or was that laser sharks?
 
@TimmyD Yeah, free for the first twelve months.
 
2:56 PM
That's how they get ya
 
im oiler v
 
Laser shark layaway
 
@Oliver You really don't need to say that every time.
 
ok, ok
 
Hello there! I've [improved one of my questions significantly](https://codegolf.stackexchange.com/questions/90887/recam%C3%A1ns-triangular-fibonacci) and I'm looking for feedback on what I can do to make it better.

Thank you.
 
2:56 PM
did you guys notice this
 
@TheBitByte FYI you need http:// or https:// for the linky to work right
 
@TimmyD They also need to make it a single-line message. Markdown breaks in multiline messages.
 
stack exchange and new york stock exchange logos are strikingly similar
 
@Oliver That's a great observation. I'll bet that SE drew a little inspiration from NYSE.
 
2:58 PM
i just found that out
because i was trying to say new york stock exchange
 
@TimmyD I indeed have used it. There seems to be an error in chat markdown.
 
but i said
new york stack exchange by accident
 

« first day (2113 days earlier)      last day (2730 days later) »