« first day (1123 days earlier)      last day (3834 days later) » 

11:00 PM
I am going to assume there is no size issue here.
 
@Pawnguy7 That's also ok. In that case, just make it a single deque of all the 'cells' that make up the snake from start to end?
 
What's an efficient algorithm to find k-sized (i.e. constant known size) patterns in a string that repeat at least n times?
 
user1804599
How about an priority queue?
 
@sehe I think I did it kind of strangely actually.
I did store every piece, but as a vector.
Each piece has... an int representing how long it stays there.
I cannot remember why though.
 
Mar 10 at 22:34, by sehe
@BartekBanachewicz "1 foot 30 inch", well, as you might have guessed, that's a little bit exaggerated, but not by too much :_)
There is no size issue
 
11:03 PM
When it comes to snakes there is always a size issue!
 
I should probably change it to a deque.
 
@Pawnguy7 That's... silly. Individual pieces cannot have independent lifetimes. Unless you have a snake that randomly dissolves midway
 
Yes, quite right.
I think I was instinctively using what I did before.
 
@sehe if you introduce lazers that can cut the snake in half that might be useful
 
11:03 PM
Before I knew what things like vectors and queues were.
 
@R.MartinhoFernandes isn't a simple linear search enough here?
 
@R.MartinhoFernandes Not off hand. There's bound to be some kind of specialized strings search thing. I'd look around histogram algos first
 
I think it was a 2D array of (the equivalent of) std::pair<sf::Color, int>
 
@Jefffrey Yeah. And very playable. Since it will be obvious what part of the snake you'll be controlling with the cursors
 
@BartoszKP I don't know the patterns. I want, say, given 3 and "asdfooasdsasdfoofjkdhsfjshdffoofjafhkjdsfhjskdfhkjsdfooadjfkhskjfh", to find ("foo", 4) (and maybe other accidental stuff I typed in)
 
user1804599
11:05 PM
Snake is a solved problem.
Cure cancer instead.
 
@sehe you always control its head
 
One question.
 
@Pawnguy7 You have amazing techni-coloured snakes?
@Jefffrey So... splitting the snake isn't really helpful then
 
Xeo
ahahahahaha
 
@R.MartinhoFernandes too tired today, but it smells like suffix trie
 
11:05 PM
@Pawnguy7 Thank you. I just used it ^^
 
Wait, nevermind, growing would be the same as I have it.
 
Xeo
going through the blue door - ahahaha
this game is so awesome
 
I will fix that next time I touch it.
 
Don't tell us when you touch your snake.
Especially don't mention how it grows.
 
The jokes never end :(
 
11:06 PM
:DD
 
Speaking of colors.
Should the snake have a different head color?
 
@sehe well yeah
 
In practice, I can keep track of it, but it might help.
 
user1804599
-3
Q: How can suggestions to the C++ standardization committee be made?

baruchIf I have an idea for an addition to the C++ language, where would be the right forum to raise it and hear if it is a good idea, or if it was already thought of and rejected? And if deemed a good idea, how would it get officially proposed? P.S. My actual idea is this: To have a function, call ...

 
user1804599
lol
 
11:07 PM
So, make it a level 0-9 only feature
 
Snake has levels?
 
aaaaand I'm 19 years old
 
@BartoszKP Hmm, that does seem like it might help. But if so, it's way out of my brother's league for now.
Thanks anyway.
 
I like it. In fact, I'll write a proposal and be sure to include pre_pre_main and pre_pre_pre_main out of abundance of foresight — sehe 9 secs ago
 
Xeo
I applaud this game
seriously, amazing
 
11:09 PM
@R.MartinhoFernandes all right, good luck anyway, perhaps something pops in my mind tomorrow : )
 
Xeo
@rightfold I thought for a second that was Luchian
 
Obviously. It ([tag:wait-for-it]) should get _harder_, right?
Otherwise it won't keep giving pleasure
 
user1804599
@Xeo Me too. :) (PUNctuation intended (pun intended).)
 
Punctendo 3DS
 
user1804599
@sehe That’s what his little sister asked.
 
11:12 PM
@rightfold lolwut
@sehe I smell MAX_PRE_MAIN_LEVELS and MAX_POST_MAIN_LEVELS coming up.
 
user1804599
How about multiple pre_mains? inb4 pre_main call order fiasco.
 
Xeo
Suddenly, Minecraft.
 
@KerrekSB I'm open for alternative syntaces. The important thing is that we make this functionality robust. I'd prefer if it could be a joint proposal with the C1x working groupm which is why I opted for an approach not using templates. However, your approach makes it possible to leverage a primary template and optional specializations. We should make sure that specializations from different TU's get handled correctly (ODR and all). It's not overly clear to me where the POI is... — sehe 2 mins ago
@rightfold ^^
See, we don't even need an asylum to get silly.
 
user1804599
Stack Overflow is an asylum.
 
Oh damn. Another dream punctured
 
user1804599
11:15 PM
And is the centre for the psychologically impaired.
 
@rightfold According to Wonko the sane, you're thinking a little small.
 
user1804599
On a more serious note, on Windows you can simply tell the linker your EntryPoint, set up your SEH handler there, and call the crt0.c implementation that performs the global initialization. Problem solved. — IInspectable 29 secs ago
 
user1804599
I should tell my grandmother about this.
 
@sehe bigger snake, faster. Harder. Ta-da.
 
@rightfold what's a SEHE handler?
 
11:19 PM
@JerryCoffin Ha, someone that recognises what my location on Twitter refers to!
@martinfernandes, Inside the Asylum
Remember when you couldn't wait for your life to begin... and then, one day, it did?
1.7k tweets, 121 followers, following 151 users
 
user1804599
s/that/who/
 
Xeo
This game is just getting better
 
@Pawnguy7 You got it! Have a cookie
 
user1804599
@Xeo Which one?
 
11:21 PM
@BartoszKP You can't handle the SEHE!
 
Xeo
The Stanley Parable
 
user1804599
Hmm, sounds fun.
 
@R.MartinhoFernandes Umm...yes?
 
user1804599
Stanley knife.
 
@sehe that's why I'm asking! perhaps you can handle a snake instead ;0
 
Xeo
11:22 PM
there's one problem with this game, though
TOO MANY CHOICES
 
@sehe what kind of cookie?
 
@BartoszKP I keep my snake handling habits to myself
 
@sehe I'm not the one talking here about snakes and handling them either :\
 
@Pawnguy7 a fish cookie
 
user1804599
@Pawnguy7 One with a lot of fungi.
 
user1804599
11:24 PM
@sehe Sounds fishy.
 
auto result = Just(12) >> f >> f;
 
@rightfold Sounds like a PUNga fish
 
`f > f > s`
// FTFY
 
@BartekBanachewicz Et tu, Brute?
 
@R.MartinhoFernandes I was teaching a friend monads.
@sehe w/e
 
11:26 PM
@BartekBanachewicz Et tu, Brute?
 
@R.MartinhoFernandes aye.
 
@BartekBanachewicz Just() >> do >> it
 
"Destruction of an iterator may invalidate pointers and references previously obtained from that iterator." Whoa!?
 
They might be internal references?
 
@BenVoigt Proxies?
 
user1804599
11:30 PM
Sleeptime.
 
user1804599
Goodbye.
 
Hmm, no, they should not.
That sounds wrong.
Very wrong.
@BenVoigt Not quoting the standard, are you?
I should get my slides ready for next week.
 
24.2.1p9 in both n3485 and n3797
 
@BartekBanachewicz I don't think explaining monads in C++ (or Ruby or whatever) helps much because it's totally artificial and there is about zero motivation to do it.
 
@R.MartinhoFernandes meh, that was just for fun
 
11:33 PM
I was going to implement bind et al on the maybe<T> I have but decided against it
ya know, no point
 
Of course it helps.
Bluffing off juniors and stroking egos!
 
So, first impressions with R# for C++: it's kinda slow. But most of the features behave as they would in C#.
 
@EtiennedeMartel IME their prerelease builds are always slow and memory hungry.
 
That would explain it.
 
Probably enabled debug/logging?
 
11:35 PM
@BenVoigt In the introduction to this section it is said that iterators are a generalization of pointers. In this context "pointers and references" may mean just i for the iterator i, meaning that after the iterator have been destructed you can't dereference it. If that makes any sense.
 
@EtiennedeMartel Neat. Any chance I can lay my hands on it?
 
@BartoszKP No.
That would be the same as not having anything there.
Too stupid. Occam's razor.
 
@sehe They tell you in the email nicely not to share it.
 
@BartoszKP Nope. It's not the destructor of T* that runs.
@Rapptz "They"? Tell "you"? Duh. I have no clue. I just asked what I asked. Not what you make it look like I'm asking.
 
@sehe I'm not allowed to send the build to others. So looks like you'll have to register like everyone else by filling in this form.
 
11:37 PM
@EtiennedeMartel Oh, I probably have, long ago. You lucky b*****d :)
 
@sehe ... What?
 
Hey, it's about time I get into a private beta for something. Blizzard still ignores me even though I'm probably their number 1 fan.
 
I'm also noticing that *it for iterators has to be a reference not a value? You'd think that could be related to the references and pointers going away if the iterator does... but a generator returning a reference to an internal state variable would be problems if the iterator is advanced again, not only if it is destroyed.
 
Here are the "blanks" I suppose. The "email" => the email you receive from "them" about the product, "they" => "JetBrains",
 
What percent of people read legal licenses, you think?
 
11:39 PM
0.2%
 
@Pawnguy7 Less than the percent of people that understand them.
 
I am not certain what you mean by that.
 
@Pawnguy7 the implication is simple - some people that understand licenses still don't read them
 
Ell
I read privacy statements
although it doesn't mean anything I guess
 
@BenVoigt Yeah, that's a rule that most people choose to disregard.
 
11:45 PM
@R.MartinhoFernandes I think he got it a bit more after we wrote a working implementation from scratch
working with templates was a real PITA though :/
 
I still doubt it, but well.
Talk to me when he understands State.
(State is my secret weapon against bad monad tutorials :P)
 
Dan
which of these is correct?

if ( (!a) || (b) ) { return 0; }

-or-

if ( !(a) || (b) ) { return 0; }
 
How can we know?
Which of these is correct? "cat" or "dog"?
(Hint: I'm trying to spell "elephant")
 
Dan
@R.MartinhoFernandes so it is purely a stylistic choice, or do they behave differently?
 
@R.MartinhoFernandes I've just told him it's a way to circumvent lack of "outer scope variable"
 
11:49 PM
@Dan probably depends what a is.
 
@Dan both. neither.
(a) == a BTW
 
@Pawnguy7 Doesn't. They're the same, assuming no macros.
 
So I fixed the operator overloading thing on my ST2 plugin
 
Dan
Both a and b are actually tests being done on the same data
 
@Dan amazing
 
11:51 PM
@Rapptz I just asked, literally, what I wanted to know: "any chance I could lay my hands on that". Now, you make it sound like I'm asking something impertinent. I'm not asking anyone to share anything. It could just be something available from the JetBrains site, right
 
Okay.
 
how did @Rapptz / @Etienne get it anyway?
 
Dan
Can someone explain why they differ or if it is merely style/convention?
or link me to an explanation?
 
@BartekBanachewicz I don't know.
 
@Dan They're the same, assuming no macros.
 
11:52 PM
I think I did this entry thing.
 
@Dan !a == !(a)
 
Dan
@BartekBanachewicz ?
 
@R.MartinhoFernandes well, if a is in place of some bigger expression, and you mistakenly applied ! to the first part, was what I had in mind.
 
@Dan read what I wrote dammit
 
15 mins ago, by Etienne de Martel
@sehe I'm not allowed to send the build to others. So looks like you'll have to register like everyone else by filling in this form.
 
11:53 PM
@Pawnguy7 Yeah, that's why I kept that reservation about macros.
 
Dan
@BartekBanachewicz ok 10-4
 
@EtiennedeMartel oh
 
I don't think I have ever made a macro myself.
Least after once I knew what a const was.
 
Dan
@BartekBanachewicz for some reason I thought you wrote !a != !(a) until I reread it, my apologies
 
Untainted. I see.
 
11:54 PM
time to go to read FRP, enough C++ monads for today
enough C++ for today actually
gnight
 
cya
 
@Pawnguy7 I'm considering making a string literal for passing to FormatFloat()
right now I have added some functions as members of a class just so they can access it's format_float string for passing to FormatFloat(), but I don't like that
since they're defined in the same document I'm considering a macro.
haha, really awful macro would be to macro FormatFloat() itself with the string literal automatically passed as an argument, haha
 
Apparently I missed this post. I didn't think highly of LinkedIn, but still this is a little shocking..
 

« first day (1123 days earlier)      last day (3834 days later) »