« first day (2096 days earlier)      last day (2764 days later) » 

7:02 PM
hey, API question. A player needs to implement a function that picks an action to perform. However, some actions require no additional input, some actions need a character target, and some actions need a location target.
right now, I've done it by having the player implement 3 functions: pickAction(), pickCharacterFor(action), and pickLocationFor(action)
is there another good way to do it?
 
@NathanMerrill Return a struct, with the unused variables as NULL.
Or, in non-C languages, a simple list or dictionary will do.
Anyone here know how to soft-link to a DLL in Pelles C?
 
@wizzwizz4 if you were implementing the class, would you prefer the struct solution to the 3 functions?
 
@betseg Linus only created the kernel, then distributed it with the already-existing GNU operating system. Don't think that Linus' views are that of the brilliant operating system.
@NathanMerrill Personally I would, but I'm weird.
Although I do think it's elegant; expand the struct to the function params and you've got the way most C functions take input.
 
@PhiNotPi @El'endiaStarman what about you guys?
 
7:09 PM
Has anyone else in here ever played clarinet?
 
@PhiNotPi Yes.
C clarinet, planned to move onto Bb but gave up on the instrument.
 
@PhiNotPi wow, that's a strange question.. I play clarinet too
 
I never really liked reed instruments. Sorry. :-/
 
I was wondering because I'm asking people's opinions on single-lip vs double-lip embouchure.
 
European modern play is single-lip
some americans still play with double-lip embouchure, but they'll be extinct soon I think
 
7:11 PM
@PhiNotPi Single lip. I sometimes did double-lip but it was hard and made it sound rubbish.
 
@Dada RIP me then
 
Although maybe that's because I was used to single-lip.
 
I feel like people playing double-lip are just rejecting the progress and modernity, like the people who didn't want to play boehm system even tens of years after its invention
 
@PhiNotPi Just learn both. Practice single lip, and once you can play both it will be less of a problem if your manager makes you play single lip when there's no benefit and they don't even know about music anyway...
 
@NathanMerrill I can't immediately think of a reason to prefer one or the other. Someone writing a naive random implementation might prefer just one function with sometimes redundant parameters, but for any serious submission adapting to one approach or the other should be an insignificant amount of work compared with the main task
 
7:13 PM
I mean if you have always play double-lip, it's obviously hard to change. But we should teach new people to play single-lip, not double.
 
@trichoplax which one would be easier to understand, then?
 
I suppose separate named functions might be more readable
 
and of course the sound is very different. I prefer (a lot) the sound of a single-lip player, and most european will as well
 
I do care about the time it takes for a reader to understand the class
 
7:14 PM
@ASCII-only school has blocked C9 ;____;
 
@wizzwizz4 No I'm not currently in a position where it even makes a difference... I'm a casual member of my university band, and literally nobody cares (or has noticed).
 
@mbomb007 Work for me
 
bu 50 year ago, the sound of double-lip was prefered by pretty much every one
 
@GaotSchool y u do dis ;_;
 
@PhiNotPi huhu, keep laying low!
 
7:15 PM
@PhiNotPi Sorry, I must have mixed up musical bands and programming teams there! :-S
 
@TuxCopter Well, it's down for a LOT of people if isup.me says it's down.
Now it's up
 
@mbomb007 Have you considered that someone is DDOSing isup.me?
 
@wizzwizz4 I tried accessing codegolf.stackexchange.com first
 
@TuxCopter Yeah, but that's your machine...
 
7:16 PM
StackExchange.com was actually down for me just then.
 
@wizzwizz4 Bet it was just a cached copy.
 
@mbomb007 Perhaps it was down for a few seconds, and isup.me just cached it.
 
but now it's back up
 
@wizzwizz4 Nope. Like I said, I tried the actual site as well.
 
@mbomb007 How much do you bet? :-)
 
7:17 PM
Or it was some problem with DNSs
 
It was down for ~20 seconds
 
@mbomb007 Perhaps you hit the actual site while it was down.
@mbomb007 isup.me said it was down for ~2m, at least from where I was.
And I ctrl+f5'd it.
 
@wizzwizz4 Yep. Like I said. It was down.
@wizzwizz4 Same
 
@NathanMerrill I like the idea of returning a single object to represent the move, which has fields for type, target, etc which can be filled in as needed.
 
12 mins ago, by wizzwizz4
Anyone here know how to soft-link to a DLL in Pelles C?
I really, really need the help! :-S
 
7:18 PM
@wizzwizz4 Very carefully
 
@TuxCopter Some actual advice please? :expectant: :pleading:
 
And why not use GCC?
 
@TuxCopter Two Seventeen words: Support for Microsoft extensions and I need DLLs and GCC is for GNU and other *nix systems.
 
??? MinGW work fine on Window$
@wizzwizz4 Microsoft extensions?
 
@TuxCopter Yes, but that takes ~30 seconds to start compiling, and I need the final code as fast as it can be.
 
7:21 PM
@NathanMerrill I guess that affects how many submissions you get, affecting the amount of competition. I think for me, I'd rather a longer class definition that is easier to understand, so separating into specific functions would be better if I had any doubts as to what was required
 
-O3 and MinGW is fast ಠ_ಠ
 
@TuxCopter #include <windows.h> and badly written code that needs a special flag not to error on.
 
@wizzwizz4 Work on GCC
 
@TuxCopter Look, I'm using Pelles C, and...
@TuxCopter Do DLLs work on GCC?
 
Obviously
MinGW more exactly
 
7:22 PM
Wait, no, I have to use Pelles C because it's my IDE too and it will take too long not to.
 
I think I'm going to require a single object back, an "ActionPlan". If you are passed an action, it'll have functions to create an action plan
and an ActionPlan would basically be the struct with the Action, and optional location/target
 
@NathanMerrill under what conditions will a player have to create an ActionPlan other than just during his turn?
 
the bonus is that I get immediate error checking if they try to create a plan that doesn't make sense
@PhiNotPi never
 
What is an "action" if I am to be passed one?
 
so, basically, the function will be ActionPlan chooseAction(List<ReadonlyAction> options, Character character)
and action is simply a description of the action
it doesn't actually perform it until you call act()
 
7:25 PM
@TuxCopter ... Help -> Contents...
 
What I would do is have a class "ActionPlan" that has the constructor ActionPlan(ActionType type, Character targ, Location dest) where "ActionType" is an enum or something similar, Character is some read-only class, and Location is some way of representing a coordinate.
 
right, that's what I have
I guess I could rename Action to ActionType
but everything is pretty much identical
 
I do want the ActionType class to be in charge of creating the ActionPlan though
because the ActionType knows what it needs to be executed
 
@mınxomaτ So, most GPUs could run 100 instances of GPU-accelerated JS code. That's crazy.
 
7:36 PM
@orlp Yes. So long as you have video footage, yes.
 
@orlp You sneaky.
Oct 21 at 1:51, by mınxomaτ
New homework excuse: http://imgur.com/AMuMVeA
You even replied to this :P
 
actually, this problem is slightly complicated
Actions that require a location can have a range
 
@mınxomaτ It's really sneaky when somebody takes something you posted to be funny and makes it really popular.
 
initially what I did was in my "pickLocation()", I simply passed in all valid locations
and they got to pick one
which seems easier on the player
 
@El'endiaStarman Well, one run is a maximum of 8192^2*4*32 bits (1G). GPU memory is the limit here.
 
7:40 PM
@mınxomaτ take him to court for stolen stars
 
@mınxomaτ Ahhh, huh.
 
Since there is some clever collapsing of pages going on in GPU memory, you could probably pack more in there.
 
Court is now in session. Plaintiff, state your case.
 
...I knew we sometimes liked to discuss law in here, but holding a court is new.
 
The plaintiff is @mınxomaτ, correct?
 
@wizzwizz4 If he wants to press the case he didn't mention, yes :P
 
@El'endiaStarman They are the jury, and we (as site moderators) will act out the sentence.
Unless you want to do that @Geobits.
 
I'm not an aggrieved party. It isn't my stars that were allegedly stolen.
 
@flawr I have something for you (audio is a must): youtube.com/watch?v=YAg-WauGrLU
 
I'm just acting as judge, since I have star experience.
4
 
7:43 PM
@flawr I wonder what kind of reception you would get in Aviation.SE's chat room if you posted plane crash videos in there repeatedly. :P
 
Resident C++ gurus: is there a proper way to access classes and other special C++ junk using dlsym? From what I've seen I have to extern C a factory function of some sort
 
@DmitryKudriavtsev Begging for stars is pretty frowned-upon here.
 
:33126071 Oh come on.
 
@DmitryKudriavtsev Be Nice
 
7:44 PM
That last edit man, not cool.
 
@El'endiaStarman I'll settle for planets.
 
@mınxomaτ Oh là là
 
@flawr oh no o no o no
 
7:46 PM
@Yodle Hmm. They must have removed the "planet this post" button. Can't seem to find it.
5
 
Gets me every time.
 
@El'endiaStarman There is Avaition .se???
 
@flawr So the answer to your question is "no". There is no Avaition.SE. Maybe you were thinking of Aviation.SE? :P ;)
 
No plane crashes though
 
7:50 PM
@mınxomaτ There's a spare pen clearly visible in the video...!
 
Oh, that's somewhat better
Isn't quite crashy enough for flawr's taste I'd imagine
 
"So, flawr, how do you like airplanes?"
"Crashing."
8
 
"Like I like my marshmallows. Charred black on the outside"
3
 
roasted airplanes sound delicious
3
 
The starboard is all out of context, even for the starboard
6
 
7:56 PM
There. Have some context.
 
That certainly clears it all up
 
I just lost my usb stick
 
Was it backed up?
 
no? I found it again though under a mess of wires
 
USB sticks. Wires. Like the good old days
 
7:58 PM
No WIFI stick?
 
@trichoplax you have wireless power cables?
 
You kids and your newfangled WhyFie and your Blue Teeth. I'll never understand it. In my day we had wires and we loved it!
 
@muddyfish Not yet. I have to make do with a laptop battery
 
woops wrong room
 
what about for a moniter?
 
8:00 PM
I worry that my son won't grow up understanding proper cable management :(
 
@muddyfish Not yet. I have to make do with a laptop screen
 
@TuxCopter No it can't. Requiring arbitrary precision changes everything.
 
Parenting ideas: Don't give your child a tablet. Just Linux laptops
 
@trichoplax no dual monitor setup? I thought everyone with a laptop had one of those
 
@Geobits You mean like WireWorld?
 
8:01 PM
@muddyfish Not yet. I have to make do with putting my laptops side by side
 
@mbomb007 I loved wireworld
@trichoplax do you have a mechanical arm-y thing so it types the same thing on both?
 
@muddyfish I loved Minecraft. loved. As in, not anymore.
 
@NathanMerrill Huh, interesting.
 
@muddyfish I'm really trying to stop saying "not yet", but I really want that to be a thing now...
 
I wonder what will change when autonomous cars become commonplace.
 
8:02 PM
@El'endiaStarman Hackers will become more commonplace.
 
@mbomb007 minecraft? wasn't it a GOL thing with configurable rules
 
@muddyfish It was a nonsequitor
 
@mbomb007 Nope, I mean physical wires. I never got on the wireworld train.
 
@Geobits Me neither.
 
8:03 PM
@muddyfish Nah, you're thinking of VarLife.
 
@El'endiaStarman Lots, and I can't wait.
 
@El'endiaStarman I was just thinking today that if they are not dependent on just their on board cameras, but can access static cameras viewing the road ahead, then they wouldn't have to slow down for lack of visibility at corners.
 
@DmitryKudriavtsev The spirit of Minecraft died in Beta.
 
It's still cool
I like the new combat mechanics
 
In all seriousness, Wireworld is a 3-state cellular automaton, which VarLife actually can't simulate directly.
 
8:04 PM
@Geobits I named my home SSID "WyFy"
 
It's only mediocre cool. Minecraft added crap for people who have no imagination. They also added "The End", which was the worst idea they had.
 
@TimmyD I named mine Geobits because I'm creative like that.
 
I once saw a shirt that said "I Love my WiFi"
@mbomb007 The End is pretty cool. Teleportation ftw
 
I played Minecraft in Alpha. Before it was cool.
 
8:05 PM
@mbomb007 I played Terraria instead
 
I played Minecraft on console, where it was never cool.
3
 
playing 1.10.2. It's much, much harder now
they changed hunger so that it actually matters
 
0
A: Sandbox for Proposed Challenges

SkylerKing of the Hill: Moon Rockets This is a challenge where you code bots to compete in an arena. In this case, you code a rocket flying over the Moon. Your goal is to shoot down enemy rockets, while not running out of fuel and crashing into the Moon. Environment Unlike many KOTH challenges the p...

 
@mbomb007 The End = Enderman farm = Ender perls = TELEPORTATION :D
 
@Geobits You should've named it Aerobits because it's in the air.
 
8:08 PM
It's in the ground, too. Just doesn't penetrate it very far.
 
Ætherbits
Then watch devices pitifully try to connect.
TIL, Æ is called ash
 
Modded minecraft is pretty cool at least.
 
8:24 PM
yeah FTB is great
ALthough I also like slightly modded Vanilla
(Inv Tweaks, NEI, Optifine, Journeymap)
 
3
Q: Alphabet Diamond

carusocomputingAlphabet Diamond You've seen the amazing alphabet triangle, the revenge of the alphabet triangle and now it's time for the revenge of the revenge of the alphabet triangle! Introducing... THE ALPHABET DIAMOND! Your task is to output this exact text, lowercase/uppercase does not matter, though...

 
@DmitryKudriavtsev waila
 
yes, that too
 
@Poke Too bad reeds were too laggy.
 
8:42 PM
@TuxCopter Redstone is much cooler.
 
Redstone + Ender perls = AUTOMATED TELEPORTATION :D
 
@DmitryKudriavtsev I'll own up; I, not El'endia, edited that message. So I'm the one you should be cross with.
 
@orlp This was posted a few days ago...
 
@TuxCopter Redstone + Dispenser + TNT = AUTOMATED EXPLOSION :D
 
@TuxCopter There are command blocks for that now.
 
8:43 PM
But command blocks are not obtainable in survival
 
@mbomb007 Command blocks aren't real. /me puts fingers in /my ears.
Except for golfing. /me takes fingers out of ears and washes the ear wax off them to golf in Minecraft Command Blocks.
 
/give wizzwizz4 diamond 64
 
@Yodle /op Yodle
/msg Yodle Thanks for the diamonds!
 
If you have /give, you can tp anyone anywhere
 
/deop @a
 
8:49 PM
/quit in a command block with a timer
 
@TuxCopter <font color=red>You do not have sufficient rights to run this command</font>
 
ಠeಠ
 
@TuxCopter You really want a day's suspension? If not, add some useful information to that post, or remove the "_".
(Btw, that was a joke...)
 
Everything is confusing until you learn it. — Mariano Suárez-Álvarez ♦ 14 hours ago
 
@wizzwizz4 You do not have sufficient rights to use HTML tags
 
8:58 PM
[b]Do we have sufficient rights for BBCode tags?[/b]
 
@Geobits They aren't even very good tags. CSS should be used instead, on pain of making Tim Berners-Lee sad.
 
I for one am glad chat doesn't allow arbitrary CSS ;)
 
@TuxCopter That appears to be full of the kind of innuendo that is being discouraged here
 
@Poke I tried to click that link but it didn't work. What is it?
 
9:04 PM
;););)
 
@trichoplax Then delete it
 
If you delete it yourself it won't involve a temporary suspension
 
:/ I can't delete it
 
Fair enough.
 
@mbomb007 by me
I had forgotten I posted it here though
 
9:09 PM
@TuxCopter Your website is not very webspider-friendly!
 
Ik
 
Or eye-friendly.
 
Ik v2
 
And it is also not a friendly eye.
 
Ik v-1
 
9:10 PM
What does "ik" mean? I assume it's pronounced "ick"...
 
I know
 
@TuxCopter Well, I know that you know, but could you tell me?
6
 
oklol ShwaPL visibly have a pop operation and I have no idea of what it do
 
Oh, it means "I know"...
Now I feel stupid.
 
Because there is no stack
Oh wait nvm, it do have a stack
Halp I am bored rn
 
9:16 PM
@TuxCopter CMC: Find out who PPCG user 1 was.
 
He's named Page Not Found
 
Ping me with the answer, because I've got to go now. Bye! :'-)
@TuxCopter There was a user there. And it's possible to find out the old name...
Bye! :'-)
 
0
A: Sandbox for Proposed Challenges

LaikoniThe Rule of Thumb for Title Capitalization code-golf According to this site a general rule recommended by The U.S. Government Printing Office Style Manual is Capitalize all words in titles of publications and documents, except a, an, the, at, by, for, in, of, on, to, up, and, as, but, or, ...

 
@wizzwizz4 The Wayback machine don't have any entry for http://codegolf.stackexchange.com/users/1/* :/
 
5
Q: Alphabet Pattern Matching

Nathan MerrillWe've had a lot of alphabet challenges. For this challenge, you are passed the output of an alphabet challenge, and you need to output the pattern scaled to size N. For example, if N=5 and you were passed the L-phabet: ABCDEFGHIJKLMNOPQRSTUVWXYZ BBCDEFGHIJKLMNOPQRSTUVWXYZ CCCDEFGHIJKLMNOPQRST...

 
9:21 PM
@daHugLenny Why do you edited the challenge to say bytes instead of characters? It's possible that Nathan explicitely wanted the solutions scored in the number of characters
 
it was appreciated :)
if it was actually characters and not bytes, then I don't think its a
 
> If you want to score by characters instead of bytes, state this explicitly in the challenge.
in the tag wiki
 
fair enough
 
'night
 
9:43 PM
@Dennis Could you pull Charcoal? Thanks!
 
@wizzwizz4 Well, there's this guy:
Geoff Dalgas ♦, Corvallis, OR
101 2
 
@Adnan A small typo in 05AB1E0's info.txt: "flattend" should read "flattened"
 
@LuisMendo Thanks! I have fixed the typo :).
 
10:00 PM
anyone here familiar/good with CSS?
?
 
@Zacharee1 decently
why?
 
I wanted to ask if anyone was interested in helping me develop my dark theme script for SE sites github.com/zacharee/se-dark
 
ah, can't. I don't have that kind of time :P
 
Well you don't have to do it full time :p
I want to spread publicity for it, since I know some people (including me) hate bright white websites
 
ah, cool!
 
10:10 PM
If you want, you can install it and try it out, and just either raise an issue for a problem you find or send a PR with a fix.
 
@MartinEnder I awarded the bounty, clicked on your profile, and saw this:
400
Q: Why is $1 - \frac{1}{1 - \frac{1}{1 - \ldots}}$ not real?

Martin EnderSo we all know that the continued fraction containing all $1$s... $$ x = 1 + \frac{1}{1 + \frac{1}{1 + \ldots}} $$ yields the golden ratio $x = \phi$, which can easily be proven by rewriting it as $x = 1 + 1/x$, solving the resulting quadratic equation and assuming that a continued fraction tha...

 
@Zacharee1 Here's mine; you can look at the CSS for it if you want
 
oh variables...
that's a good idea :p
never thought of those
I see I have some competition...
This is mine. All Ubuntu-ified :p
 
@ConorO'Brien yay, 400 \o/. Thanks :)
 
10:25 PM
@ConorO'Brien the title just parsed when I clicked it o_O
what sorcery is this?
 
@Adnan How do I escape a double quote within a string in 05AB1e? Say I want to define a string containing a double quote mark
 
You mean it parsed in this window? O_o
 
@MartinEnder no, in the question itself, but I'm from AU, not CG
 
Oh right, the parsing is done by MathJax in your browser, which is only included on some sites (in this case, it's included on math.SE but not in chat)
What's AU?
 
@LuisMendo Use the compressed string quotes
 
10:32 PM
@LuisMendo You can use '" to push a double quotation mark on top of the stack
There's nothing like string representation in 05AB1E, so quining might be a bit difficult :p
 
@MartinEnder Ask Ubuntu
 
@Adnan Hehehe. I was working on that, yes
@Emigna Thanks
 
Oh right
 
compressed string quotes is probably not useful for a quine, but in general it's golfier
 
True
 
10:34 PM
^
 
Wait, do you guys not see the LaTeX rendered in that Math.SE question onebox?
 
I see Why is $1 - \frac{1}{1 - \frac{1}{1 - \ldots}}$ not real?
 
@Adnan Feels clumsy, but works: "D34ç.øsJ"D34ç.øsJ
 
@Zacharee1 That's what I guessed. I have a Chrome extension named ChatJax that renders LaTeX in chat.
 
ah
 
10:42 PM
-1
Q: Draw an alphabet party hat

OliverYour task is to print this exact text: z yz xyz wxyz vwxyz uvwxyz tuvwxyz stuvwxyz rstuvwxyz qrstuvwxyz pqrstuvwxyz opqrstuvwxyz nopqrstuvwxyz mnopqrstuvwxyz lmnopqr...

 
Is that how questions are meant to be asked here?
 
@LuisMendo Oh, that is neat! I didn't think of that.
 
sounds more like as assignment
 
@Adnan It's an adaptation of my MATL quine. Hey, my second quine! \o/
 
Nice :)
 
10:46 PM
I was really bad at quines until I realized a "string representation" function makes them a lot easier
 
@NewMainPosts Are people downvoting because there's something wrong with the challenge, or just because people are tired of the alphabet?
 
@LuisMendo Yeah, they seem very useful for quines
 
That and eval probably
 
I neither like it enough to upvote, nor dislike it enough to downvote, but it's at +3/-3 already after only 12 minutes
 
@trichoplax Admittedly, I downvoted for the latter reason. I wasn't sure at first since I saw it as just a really "meh" challenge, then I decided that that is good enough reason for me to downvote. All these alphabet challenges are just variations on a theme; they're hardly new. (I suppose you could say the same about math function and sequence challenges, but at least those have more variety.)
 
10:53 PM
I'm certainly not saying "don't downvote", and I'm strongly in favour of anonymous voting - I just wanted to ask the room out of curiosity...
 
Alphabet challenges are uninteresting to me now, which I think is good enough reason to downvote. Note, uninteresting != not interesting. I'm more apathetic about the latter.
 
So, actively uninteresting?
 
what if it used an interlaced alphabet?
like
 
@El'endiaStarman What's the difference?
 
a
bd
ceg
fhjl
 
10:55 PM
@trichoplax Pretty much.
 
@DJMcMayhem negative interest (disdain?) vs not caring
I think
 
It's nice to see genuinely new variations on the theme rather than just repetition. I like Nathan's challenge today, for example.
 
@Zacharee1 Well, you're pretty new here, but for some background, a few weeks ago, we had a storm of alphabetical challenges. Something like a dozen in a week or something.
 
There are mods everywhere in this room
@El'endiaStarman whoa
sounds like AU recently, with all the questions about running LoL and CoD in WINE :p
 
@Zacharee1 Yeah, pretty much.
 
10:57 PM
Or "Fix mah hoemwurk plz!!! 1!! 11!!" On SO
 
Yeah but that one never ends.
 
@DJMcMayhem we get those too on AU, but they usually try to hide that fact :p
 
@El'endiaStarman Well, we got three in under three hours, so it looks like we might break that record...
 
@Dennis o_O
what if it used a different alphabet? ;)
 
@Dennis I'll whip one up real quick to help with that. :P
 
10:58 PM
o_O indeed.
 
@Zacharee1 Hebrew alphabet was also this week IIRC
 
14
Q: Output the Hebrew alphabet

TùxCräftîñgYour task is to print this exact text: אבגדהוזחטיכךלמםנןסעפףצץקרשת (You are allowed to print a trailing newline) SHA256 hash of the UTF-8 encoding of the text: 0ab6f1e0bf216a0db52a4a5a247f95cba6f51496de7a24dfd01f3985dfcf6085 Base64 encoding: 15DXkdeS15PXlNeV15bXl9eY15nXm9ea15zXnted16DXn9e...

 
wow
 
@Zacharee1 That's actually pretty much the crux of the argument for them. These alphabet challenges would mostly work just the same with digits.
 
And Greek.
 
10:59 PM
Scrolling down the front page I see 8 challenges with "alphabet" in the title. Several use different alphabets and are not just fixed output challenges, but the bombardment with the same word in the titles can make it look worse than it is
 
And two Greek alphabet challenges this week
 

« first day (2096 days earlier)      last day (2764 days later) »