« first day (1090 days earlier)      last day (3872 days later) » 

9:01 AM
@sbi yikes, sorry to hear that. Glad she's doing better
 
@sehe ¬_¬ is that so... "fiding things' huh?
 
> *** Exception: Text.ParserCombinators.Parsec.Prim.many: combinator 'many' is applied to a parser that accepts an empty string
hmmm
 
@thecoshman jerk! okay, it doesn't actually work that way. I have to care first :/
 
@thecoshman lol
 
@sehe your bluff, I "called' it :P
 
Xeo
9:02 AM
@BartekBanachewicz Err
 
oh, "fiding' was a typo, I did mean to write "finding'
 
Xeo
@BartekBanachewicz many is 0-or-more (many1 is 1-or-more) and if it matches the empty string, it will match forever :P
 
@thecoshman haha. that was precisely the part that irked me :/ You mutilated the word so it became hard to find out it's meaning. The interpunction is really... not so important
 
@sehe ____ __ _ _____ ____ ____? (I'd to play a little game; hangman)
 
9:05 AM
@thecoshman Morse Code! :D
 
> Forensic examination showed that the evidence on which the conviction rested was forged: The documents involved were on a CD-ROM date-stamped 2003, yet were written using a 2007 Microsoft program
^ Think the NSA is bad?! Try Turkey on for size
 
    fmap = fmap * fmap * fmap * (fmap * (fmap * 6 - 15) + 10);
 
Xeo
wtf, next proposal deadline is already tomorrow
@R.MartinhoFernandes wtf
 
@Xeo Only one wtf ?
 
@Xeo yeah, that was obvious
 
9:12 AM
@Xeo Found it in the code I'm refactoring.
 
Xeo
The variable was not really called fmap, right?
 
Xeo
Ugh, the bikeshedding in the count_while/count_until thread...
 
@Xeo Yes, it is.
 
@R.MartinhoFernandes that's a polynomial calculated rather efficiently
with Horner's scheme, IIRC
In mathematics, Horner's method (also known as Horner scheme in the UK or Horner's rule in the U.S.) is either of two things: (i) an algorithm for calculating polynomials, which consists in transforming the monomial form into a computationally efficient form; The latter is also known as Ruffini–Horner's method. These methods are named after the British mathematician William George Horner, although they were known before him by Paolo Ruffini and, six hundred years earlier, by the Chinese mathematician Qin Jiushao. Description of the algorithm Given the polynomial :p(x) = \sum_{i=0}^n a_i ...
lol wat gif
 
user1804599
9:16 AM
@Xeo All monads support applicative.
 
Xeo
Not if I'm lazy and don't make an Applicative instance!
 
ugh I dunno what's triggering that exception
it's kind unhelpful, because the exception has no line number
 
@Xeo That's going to be fixed in the next version of the language.
 
Xeo
I know
Btw, you can easily derive an Applicative instance from a Monad one (with return and ap) - would it be possible to automatically provide an instance for the former if the type is an instance of the latter?
instance (Monad m) => Applicative m where; would be ambiguous, if possible at all (and also cyclic with the next revision)
 
speed dating sucks. it takes way more than 7 minutes just to explain what an arduino is
 
9:23 AM
@Xeo You need a wrapper.
 
Xeo
There's something similar for the relation between Monad and Arrow with ArrowMonad, but that's only kinda automatic (and not quite the same - Monads give rise to Arrows through their Kleisli functions, and Arrows are not themselves Monads)
 
@sehe what is an arduino?
 
instance Monad m => Applicative (WrappedMonad m)
 
Xeo
Yeah, I guess.
 
@GamesBrainiac "hobby' micro-controller
 
9:24 AM
@GamesBrainiac A water dinosaur.
 
@thecoshman Like rasberry pi?
 
@GamesBrainiac Something that takes approximately 13 minutes to explain (depending on natural language and prior knowledge of the subject).
@GamesBrainiac But without the "general purpose computer" aspirations, I think
 
@GamesBrainiac sort of, but '"lower level'
 
I see, that explains it.
 
@sehe Arduino is general purpose, it's just low power
 
9:25 AM
Deliciously ambguous. "Low power".
 
Rpi is a low power computer, with a proper OS. Arduino is just a basic (not BASIC though... I think) microController
 
@sehe Was the "i" delicious too? :P
 
@R.MartinhoFernandes lol. That's a nice double meaning you have there.
 
@R.MartinhoFernandes lol, I got it eventually :D
 
@R.MartinhoFernandes sehe's really getting played today :P
 
9:28 AM
 
TELL ME WHICH LINE IS WRONG DAMMIT
haskell why you no fix my code for me and make me a coffee
 
Xeo
Code + error?
 
nvm <facepalm>
Instruction is many1 symbol, not many symbol :/
 
Xeo
9:32 AM
lol
heh
 
*Main Control.Applicative> parseASM "jz ax"
Right [UnaryInst "jz" "ax"]
 
Xeo
symbol = letter?
 
symbol = noneOf ", \n\r" right now, I was experimenting
 
Xeo
mh
 
ergh... who makes Java applet based websites these days?
 
9:36 AM
I'm sleepy.
 
@thecoshman no one?
 
@BartekBanachewicz wishful thinking :'(
 
@R.MartinhoFernandes I ran frash out of 'i's
Hmm ... Perfecting forwarded doesn't work inside a generic lambda :(
^ mmm. I should read up on poly lambdas
 
No idea what he means.
It works. It's just awkward as fuck.
 
Xeo
std::forward<decltype(arg)>(arg) :/
 
9:40 AM
That's... awkward. Nothing that a custom forward function template wouldn't solve, right?
 
No, that won't work.
 
perfecting forwarded?
 
Xeo
Can't be done less awkward.
 
Best you can do is a macro.
 
@Xeo How is that going to work? decltype(name) is always going to be an lvalue.
 
9:41 AM
@sehe oho
 
@DeadMG No, because decltype rules are weird
 
Xeo
@DeadMG Nope, if T&& arg deduces as U&& arg (an rvalue), decltype(arg) is U&&
 
alright.
I wish I didn't know that.
 
Xeo
Since the "declared type" of arg is U&&, an rvalue ref.
@R.MartinhoFernandes Eh, they're not weird here.
 
line = binaryLine <|> unaryLine doesn't work :/
 
Xeo
9:42 AM
Parsec is greedy
 
greedy bastard
 
Xeo
line = try binaryLine <|> unaryLine
 
You have to mark backtracking explicitly.
 
Xeo
a try parser doesn't consume input if it fails
 
@Xeo aaah
*Main Control.Applicative> parseASM "jz ax,bx"
Right [BinaryInst "jz" "ax" "bx"]
*Main Control.Applicative> parseASM "jz ax"
Right [UnaryInst "jz" "ax"]
I CAN HAS PARSER
 
9:43 AM
Meh, no lambda prompts.
 
Xeo
heh
 
now only to define which commands are unary and which binary
 
IMPAHTANT
 
but that won't be on parsing level, I guess
 
Xeo
:set prompt "%s\n> " for me
 
9:44 AM
Ask Fred about the link to the .haskellrc (or something) for that on Robot's gist
 
lol .haskelrc ?
 
> (or something)
 
I vaginely recall somebody mentioning something like that
 
It's ~/.ghci
 
Xeo
9:46 AM
@BartekBanachewicz "vaginely"?
 
@LightnessRacesinOrbit thanks for your contribution
 
@Xeo that was on purpose. vOv
I was giving you a chance to make a joke back, but you blew it
 
Sep 12 at 8:52, by R. Martinho Fernandes
@FredOverflow https://github.com/rmartinho/dotfiles/blob/master/ghci
@BartekBanachewicz blowing it is not recommended. It's been known to cause infections
 
@sehe ¬_¬
 
9:48 AM
> The device is currently grounded in a storage facility and its future use is up in the air, Gadsden police officials told auditors. Money Wated On Drones
^ dat pun
 
spaces = many (char ' ')
 
spaces = Maybe euclidian
 
and word = many1 symbol I guess
 
Xeo
Only actual space character is allowed?
 
9:51 AM
lol comma = char ',' :D
 
@Xeo if we go @rightfold way, using tabs is a syntax error :)
 
Holy fucking cow that's a huge changelog.
 
Xeo
@DeadMG Seriously, you need to learn to commit way more fucking often
 
I do when I'm not sick.
 
9:53 AM
@R.MartinhoFernandes lol I thought I have to define that myself :)
 
Xeo
@BartekBanachewicz That's what he's telling you to do
 
@BartekBanachewicz Parsec's spaces also ignores tabs and new lines.
 
@Xeo Text.ParserCombinators.Parsec.spaces
@R.MartinhoFernandes oh
 
" \t\n\r\f\v"
 
but it's now "Ambiguous occurence"
what do I do?
 
Xeo
9:55 AM
3 mins ago, by Xeo
Only actual space character is allowed?
 
Bad answers to a duplicate question remedied by my close vote and correct answer:
0
A: How to determine the minimal noticable change of a double

rubenvbThe C99 function nextafter is what you need. This is implementation defined by definition (it relies on the internal representation of double in memory). For a comparison of all methods presented in the answers here at the time of writing, see a live demo to see how the other solutions fail.

Just sayin'
 
@Xeo I thought parsec's spaces is exactly that, my bad
import Parsec hiding spaces?
 
Xeo
There was a reason I prefixed all my parsers with p_ :)
 
Nah, don't name something the same as in a module you are using. Too confusing.
import qualified Parsec as P, maybe.
 
spaces' it is
 
Xeo
9:58 AM
@R.MartinhoFernandes Maybe I should've done that too. I didn't, at first, because of <|>, I think.
 
I need to fix qualified name lookup.
 
P.(<|>) ? :P
anyway, time for me to go
 
I even added Boost to my solution.
 
@BartekBanachewicz You can import the operators unqualified separately.
 
right now, I got a billion different shitty implementations of name lookup in different places
and qualified lookup looks up unqualified names.
 
10:00 AM
@R.MartinhoFernandes interesting
 
import qualified Parsec as P
import Parsec((<|>))
 
Xeo
@BartekBanachewicz import Control.Applicative, actually. :)
 
Gives P.spaces, P.<|>, and <|>, but not spaces.
 
Xeo
Remember, I had import Text.Parsec hiding ((<|>), many, optional)
 
10:01 AM
why would you hide many?
 
Xeo
and some = many1
 
@DeadMG not aggerated by much, although chrome had no issue whatsoever: it took <11s, firefox ~7s
 
Xeo
There's a slight difference between the two, btw.
Control.Applicative.(<|>): infixl 3
Text.Parsec.(<|>): infixr 1
 
10:09 AM
0
Q: Is it possible to clone a single tone class's object?

user2865715Is it possible to clone a single tone class's object? please see the below example public class Car implements Cloneable{ private static Car car=null; private void car() {} public static Car GetInstance() { if(car==null) { car=new Car();} return car;} public static void main(String arg[]) t...

 
Xeo
Are you following the tag now or what?
 
Found it on the front page.
 
it is single ton :p
 
hmm
 
1 ton that is ...
 
Xeo
10:10 AM
Btw, any comment on the <|> difference between Applicative and Parsec?
 
looks like if I want sexy interactive error tooltips, I will have to re-implement tooltips.
 
@Xeo I don't think it really matters since Parsec doesn't have other operators with precedence >= 1.
 
Xeo
mh
 
this guy LOVES editing ... 1405 pages of it ...
wtf
slow way of rep whoring, just damn take some risks and start answering questions already ...
 
agreed. wtf. Actually 1318 pages (+ 29 pages of suggestions, mostly tag-wiki)
 
10:14 AM
really pettey changes to by the looks of it
 
bio: "Experienced application developer. Software Engineer. M.Sc.E.E. C++ (10 years), software engineering, .NET/C#/VB.NET (7 years), usability testing, Perl, scientific computing, Python, Windows/Macintosh/Linux, Z80 assembly."
yet ... with all those experiences, does 100x more editing
 
@thecoshman must be. I'm a 'heavy editor' (in the sense that I liberally edit any post I read) and have only 171 pages of edits (s/pettey/petty/ btw)
@Telkitty猫咪咪 he has experience editing posts in all those tags!
 
good point
 
@PeterMorensen dude... you are obsessed with making really petty changes. Do you mind focusing your effort on something, you know, actually beneficial? — thecoshman 9 secs ago
 
@thecoshman oh god. why
 
10:17 AM
@sehe :D
will you start the fans please!
 
That edit actually adds value. Leave him be. Editors are welcome too
 
¬_¬ stupid no markdown support
@sehe does it? he changed bugger all
 
He fixed spelling and grammar.
 
@Telkitty猫咪咪 From some random edits I have opened, he looks like a grammar Nazi. :)
 
I know I'm talking to @thecosh, but that is not "bugger all".
 
10:19 AM
@thecoshman and added hyperlinks
 
@Telkitty猫咪咪 You can't repwhore edits past 2k rep.
 
@wilx He's probably the type of person that will refactor any code he reads (I know what that feels like, but I usually revert the changes unless it was a big improvement and I tested it)
@R.MartinhoFernandes Maybe Peter doesn't know
 
lol
I do that a lot or want to.
 
@wilx my thoughts too
 
Yeah, I think his edits have merit.
 
10:22 AM
such a tiny slither of merit though, the effort this guy puts into it though is just mind boggling, he could sort out cold fusion or something with that drive!
 
I started noticing him when he edited one of my questions and then appeared in most of the questions I have gone through in regards to ios7 today ... I was like "you again!"
 
@thecoshman are you jealous? I mean, he can afford the time, more power to him.
 
@sehe more... perplexed
 
You expend a lot of energy acting perplexed :/ You could maybe try ... cold fusion with that energy (ba-dum-tsshh)
 
nearly gave a real world groan at that ¬_¬
 
10:41 AM
Mo mo morning
 
 
Oh I love tequila. :)
 
me too. It baffles me why people muck it up with salt and lime though.
just drink the damn drink! it's in a glass, what more do you need?
 
Guilty. (only lemon though).
 
I only know one other person who actually likes the taste of tequila as it is
 
10:44 AM
The taste of tequila is nothing special IMHO.
 
tequila. I think that's a beverage
 
Or my taste buds are gone.
 
@sehe really?
 
No. The give-away is that, obviously, I don't really think.
 
(╯°□°)╯︵ ┻━┻ fuck trying to work what the hell you are on about
 
10:46 AM
@sehe If you're not really thinking, you have probably drunk tequila.
 
Undoubtedly
 
11:00 AM
Well, I heard that what passes in the Czech Republic for Tequila is not close to what actual Mexicans drink as Tequila, hence the need to obscure the taste with salt and oranges or lemons.
 
Well, Mexicans use salt and lemons too, so...
(sometimes)
Wikipedia suggests that Mexicans rarely do so, but my actual Mexican friends plus real time spent in Mexico both suggest otherwise.
 
11:21 AM
@thecoshman You muck up tea with milk. I rest my case.
 
only four more days till doctor's appointment (in which he will probably say and do nothing of any assistance like usual)
then only another month until hospital consultation
 
Hmm, I should probably switch songs.
I've been saying that for a week now.
I think it's a new personal record.
This question stackoverflow.com/q/19293382/46642 made me think of another rule of thumb: If you find std::get<i>(tuple) annoying, it's probably time you write a struct with actual names.
 
your thumb is one whiny bitch
:P
 
Why do you think they're opposable?
 
so they can bitch at each other?
 
Xeo
11:34 AM
 
haha, fail
Should be decltype(auto) though.
 
Xeo
Why?
 
Well, because it should be overloaded for & and &&.
Otherwise it doesn't replicate the semantics of get.
 
Xeo
Doesn't require decltype(auto), though.
Would only make it marginally cleaner
 
Only because you can't perfect forward on *this :/
So broken.
 
Xeo
11:39 AM
And operator[] and operator() need to be members
 
@R.MartinhoFernandes You can in Wide.
at least, you can after I implement perfect forwarding at all.
 
lol
 
@Xeo that's clever
 
I'll probably get around to it after I'm not sick anymore.
 
11:43 AM
and it works with g++
 
Xeo
@DeadMG i.e. never
 
@Xeo could get<1>(tuple) be implemented as get(1, tuple) using constexpr?
 
Xeo
no
 
11:45 AM
Ah, because tuple isn't constexpr.
 
Xeo
no
 
Dammit.
 
You cannot change signatures depending on function arguments.
 
Nice symmetry in casing though.
 
Xeo
11:45 AM
A function's parameter can not be marked constexpr
 
20k
 
Xeo
Hm, I can't reproduce the auto fail in a minimal test-case.
 
> Fixed a bug where the Lexer would return the Return token type for any keyword.
hmm
this sounds like a smidge of a crippling problem.
 
@Xeo Wouldn't help still, would it? Doing so would not work unless the parameter is actually a constant expression, making it effectively just a separate syntax for template arguments.
 
Xeo
ye
 
11:48 AM
@DeadMG lol
 
@StackedCrooked Consider get(1)(tuple)?
 
Everytime I have to write new in C#, I get shivers up my spine. Been doing C++ too long. :/
 
Learn to stop worrying and love the new.
 
@TonyTheLion I get shivers up my spine whenever I try to do something that involves "IEverythingMustBeAFuckingRuntimeInterface", personally.
 
ahahah
@DeadMG yea, too much Java memories
@R.MartinhoFernandes I can never love new
its evil
 
11:54 AM
I ate a sandiwch
who wants to bet on my chances of not regretting that
 
Xeo
Now I can throw that at clang-bot
 
@DeadMG I'm hoping you'll be fine. :)
 
Xeo
Only fails for operators
 
Would template <typename... T, typename U> void f(U u); "work"? I mean, f<a, b, c>(d) would deduce U as Decay<decltype(d)>, or as c?
 
Xeo
12:05 PM
@R.MartinhoFernandes Former
T swallows all explicit arguments
 
Xeo
@KhurshidNormuradov As others already said, std::get<i>(tuple) is not too annoying to justify the effort for the above. Also, simply consider using a small struct instead: struct person { std::string name; int old; double number; char symbol; };. — Daniel Frey 5 mins ago
hah
 
I wish I could have arbitrary qualifiers.
@Xeo Called it.
 
Xeo
What are you tinkering with now?
 
hmm
how fucking awesome would it be, if I could do shit like import your C++ header search paths from a VC++ project you're using
 
12:08 PM
@Xeo Trying to generalize the static invariants mechanism I have in ogonek.
 
Xeo
mh
 
@R.MartinhoFernandes I don't drink 'english tea' with or without milk. Green tea or Early Grey sorts of tea perhaps, but not with milk.
 
@thecoshman Earl Grey is English tea.
 
@LightnessRacesinOrbit But Early Grey isn't!
 
@R.MartinhoFernandes Indeed!
tea must be drunk with milk, or you die
 
Xeo
12:12 PM
I'm still alive.
 
Xeo
I was so gonna do that.
 
@R.MartinhoFernandes The fire looks pokemonish
 
@LightnessRacesinOrbit Earl grey is a tea from England, but it is not 'English tea' or perhaps 'Breakfast tea' is a better name. By that I mean the sort of traditional blends that people will drink in Uk and Ireland, the sort of blend that people of UK and Ireland when they say 'tea', the sort of blend that people of UK and Ireland will expect to come with a wee jug of milk for. cc @R.MartinhoFernandes
 
Xeo
12:15 PM
s/Early/Earl/
 
@thecoshman Such as Earl Grey.
 
@LightnessRacesinOrbit you put milk in Earl Grey o_0
 
@thecoshman I have no idea - don't drink it :)
 
> Portal is like Half-Life + Minecraft - in other words, it's absolute all-encompassing fucking autism, a CANCER among games. Fuck Portal, and fuck everyone who likes Portal.
@thecoshman You did it again.
 
@R.MartinhoFernandes - a local internet idiot
 
12:16 PM
hmm
I need some new games.
 
@R.MartinhoFernandes lol, wtf is wrong with me
 
I might re-download Battlefield 3 and play some more of that.
 
"I need some new games." => downloads old games.
 
eh I'm not playing it right now so potato potahto
 
o_0 bergamot oranges are not orange
 
12:19 PM
@DeadMG /pəˈteɪtəʊ/, /pəˈtatəʊ/
 
maybe I'll play DX:HR again
 
English breakfast tea is a traditional blend of teas originating from Assam, Ceylon and Kenya. It is one of the most popular blended teas and the most common form of British tea culture. English breakfast tea is a black tea blend usually described as full-bodied, robust, and/or rich, and blended to go well with milk and sugar, in a style traditionally associated with a hearty English breakfast. The black teas included in the blend vary, with Assam, Ceylon and Kenyan teas predominating, and Keemun sometimes included in more expensive blends. Common brands of English breakfast tea in...
@R.MartinhoFernandes ^
 
I need to teach my team to make more use of algorithms.
 
> blended to go well with milk and sugar
> In Ireland, where milk and dairy products are traditionally a major part of the diet
 
BLAAAAAAAAARGH.
 
12:22 PM
lol, so true. No milk in the fridge is cause for serious panic in Ireland :P
 
@Xeo Argh, I think what I actually want is linear types.
 
Xeo
?
 
> Linear type systems allow references but not aliases. To enforce this, a reference goes out of scope after appearing on the right-hand side of an assignment, thus ensuring that only one reference to any object exists at once.
 
Xeo
Ah, unique_ptr?
 
Except emptied unique_ptrs do not go out of scope.
 
Xeo
12:29 PM
Does the "linear" mean that you can follow a single value's "path" linearly through a program?
 
Dunno. Maybe.
I should try me some Rust or some F*.
@Xeo And unique_ptr doesn't prevent you from saving the result of *ptr elsewhere.
(In this case unique_ptr is what the quote above calls "references" and C++ references are "aliases")
 
that would be terrifically impractical
 
12:44 PM
If you take "practical" to mean "doesn't require me to think differently".
2
 
12:57 PM
@thecoshman uh oh, not the milk and sugar thing again!
 

« first day (1090 days earlier)      last day (3872 days later) »