« first day (1314 days earlier)      last day (3628 days later) » 

8:00 PM
@Lightness what's wrong with 40km?
 
> Heap of Runes $19.99
goooosh
I broke cabal
 
Dunno. Wots right with it?
 
user1804599
@BartekBanachewicz You cannot break Cabal.
 
user1804599
Cabal is already broken.
 
user1804599
It is broken by design.
 
8:02 PM

Bartek and Jefff talk about Monad Transformers

1 hour ago, 29 minutes total – 84 messages, 2 users, 0 stars

Bookmarked 14 secs ago by Bartek Banachewicz

BTW
we should podcast it :D
 
@BartekBanachewicz If that troubles you, you're not part of the target audience.
 
@EtiennedeMartel I know.
 
LRiO survival is a closed issue.
 
I play mostly FTL and Hearthstone on my iPad
 
@R.MartinhoFernandes IT'S A LOT
 
8:05 PM
@LightnessRacesinOrbit 40 km on a bike? not really
 
@BartekBanachewicz Yarly
1km is a lot
 
Hello, all
 
when did you last do 40km, Barty?
 
On normal days I do 10km.
Next week I want to do at least 60km per day for seven days.
 
@LightnessRacesinOrbit a week ago or something
 
8:08 PM
48 mins ago, by Lightness Races in Orbit
weirdo
 
there, actually ^ (it's Harrachov, Czech Republic)
 
@BartekBanachewicz that's not 40km
 
@LightnessRacesinOrbit I mean it was in that type of terrain
 
it's like 20m or something
@BartekBanachewicz then you should say what you mean
 
Why is it so hard to find a Limousine Rental Company in my city?
 
8:11 PM
If I can do 100km I can make it to Copenhagen. But I'll consider it a success if at least I make it to Denmark.
 
right.
up to 80 tests passed, 48 failed.
that's a bit better.
 
ugh
else has to be indented to then, not to if
kinda makes sense I guess
 
user1804599
Of course.
 
8:16 PM
how did you end up with 48 failing tests? changed a core feature?
 
user1804599
Otherwise it would be horribly fucking fug fugfucking fugfugly.
 
@StackedCrooked I started with 126 out of 128 failures.
I didn't change a core feature, I totally rebuilt the core.
 
40km was two hours, in the city. I honestly don't think it's that much. I'm not at all an athletic person.
 
11 mins ago, by Lightness Races in Orbit
1km is a lot
try to keep up
 
Are you joking?
 
Are you sure you know how much 1km is?
It's less than a mile.
 
@R.MartinhoFernandes yes, I know how far it is
walking up my stairs is a lot
 
stairs from the basement, that is
 
Lazy bastard
 
8:21 PM
if you really want to talk about it seriously, I could probably manage a couple of k on a bike
I walk a lot but I'm too old for "extreme sports" such as jogging
 
@R.MartinhoFernandes did you run 40?
 
@R.MartinhoFernandes It's about 25 seconds on Glyn's bike. Mind you, it does stretch my arms somewhat painfully.
 
user3010322
I'm pretty great at walking.
 
LET ME TAKE A SELFIE
 
8:22 PM
in case you haven't noticed
 
@R.MartinhoFernandes ok, then it is not much. Also not very high speed #nice trip
 
Can't go much faster in the city.
I mean, you can in some stretches but it evens out when you stop at red lights and so on.
 
0
A: arduino - parsing string containing delimiters

ptsIf you don't care too much about corner cases, this would work in C++: #include <stdio.h> #include <string> bool parse(const std::string &str, std::string *out1, int *out2, int *out3) { char *word = new char[str.size()]; int len; if (sscanf(str.c_str(), "%[^/]/%d/%d%n", &word, out2, out3, &...

 
@DeadMG the two passing tests where a getter and a setter? :)
 
8:24 PM
@StackedCrooked Yeah - that just set/get a public int:)
 
nah, they were built to ensure that a certain program was rejected.
since it rejected basically every program at that point then it didn't really say much about the compiler that it rejected those two samples :P
 
@ThePhD I'm gonna walk 2km tonite. Anne will give me a lift back home.
 
Lots of people go to prom in Limos, I'm considering a helicopter, shit man
 
user3010322
Wimp, walk back!
 
That will end bad because he'll be wasted.
 
user3010322
8:26 PM
I think the farthest I walked on a regular was ~30ish miles?
 
user3010322
Or like, 28
 
user3010322
I beleive it was 14 miles to high school. Trivial for a car or a bus, murder on my legs.
 
my code compiled
 
user3010322
@BartekBanachewicz SHIP IT.
 
@ThePhD I've tried that too often. I keep falling over and so paying medical and dental bills. Not worth it.
 
8:27 PM
@ThePhD since it's Haskell, I well could
I want to work on Glisha a bit more
@R.MartinhoFernandes we never got around to that GLSLDSL
 
user3010322
Glisha?
 
I got to shop around for an Arduino.
 
@ThePhD my Haskell framework for OGL
 
user3010322
Oh, right. Your Haskell GL Binding Framework.
 
Anyone here have one?
 
8:28 PM
it's not really a binding
it's more high-level
 
user3010322
@R.MartinhoFernandes I have both an Arduino Mega and an Arduino Uno.
 
user3010322
The mega is more powerfula nd has more peripherals than the Uno, and you can put a number of different shields on it.
 
Do they have Bluetooth?
 
user3010322
... You know, I enver tried using Bluetooth.
 
@ThePhD You regularly walked ~30 miles? You lived before motorised transport? Are you immortal, some sort of vampire?
 
8:29 PM
Powerful as in processing power?
 
user3010322
But I remember seeing soem SHields for both teh Uno and the Mega
 
user3010322
Powerful as in processing power, yes.
 
user3010322
But I'm not sure you'll need all tha tprocessing power.
 
BTW, Elm got WebGL support
 
user3010322
If you need a lot, look into the Beagle Board
 
8:29 PM
I don't need much of that.
 
user3010322
Then an Arduino Uno should be for you. There's a Bluetooth Shield for the Uno made in all kinds of flavors.
 
I only need to implement ASCOM communication through BT.
And sending signals to a stepper motor or something.
I'm concerned about power though, as in, electrical power for the motor.
 
@ThePhD I would never buy anything with electrical components that is called an 'Uno'.
 
hmm
I am unsure how code generating such a simple function has led to such a mess of temporaries.
 
If I have some spare processing power I can also do some extra processing in it but it can all be done externally with the results passed via BT.
 
8:33 PM
Anne's Fiat Croma is, by far, the worst car I have ever been associated with, and that includes the knackered Morris Marina I had as a student. The windscreen wipers stopped working and it cost over €1000.
 
It'd be cooler to do it in the Arduino, but probably easier to just do it in Java on the Android.
@ThePhD what do you do with yours?
 
back
 
I should install haddock
 
@R.MartinhoFernandes The motor and driver, (the hardware), should give power consumption curves?
 
1. Copy some xml or json into clipboard
2. Create a new class in VS (C#), delete everything in it
3. edit > paste special > paste xml as classes
4. Profit
 
user1804599
8:37 PM
lol
 
1. Have a XML or JSON schema for your XML or JSON
2. Have things generate automatically
 
@JohanLarsson Nice shortcut:)
 
@MartinJames yeah, that's why I blogged it :)
 
Aaaanyway, I gotta start walking now, else I'll just sorta take root and become KB-bound.
 
you know
actually having modules simplifies handling multiple files of code
 
8:40 PM
@BartekBanachewicz Really? I would never have guessed...
 
It worked pretty much effortlessly
to the point where I didn't believe it did
you know, "this was too easy"
 
@BartekBanachewicz haven't had ANY linker errors in my Delphi stuff since, well, forever.
 
@MartinJames I liked Pascal too.
was my first first first language
but I had old Pascal, and at the time there was that hype on C++
and I desperately wanted to be a game programmer
 
@R.MartinhoFernandes you should meet up with the dutchies :)
 
@BartekBanachewicz I find nested procedures very useful, eg. for handling messages. Nice, clean case switch at bottom that calls nested procs. All encapsulated.
 
8:45 PM
f x
  | cond1 x   = a
  | cond2 x   = g a
  | otherwise = f (h x a)
  where
    a = w x
 
@sehe Dutchies?
 
@MartinJames like that ^?
 
@BartekBanachewicz Yes, but readable:)
 
@MartinJames what's not readable in my example? (except "foobar" identifiers?)
 
@StackedCrooked yeah, that should teach you not to install OSX!
(also: reset<CR> done
 
8:47 PM
@BartekBanachewicz Just the Haskell bits.
 
@MartinJames I dunno, people write stuff like "it's not readable", but I think it's pretty clear that depending on the x, the value of f might be one of the 3.
 
@BartekBanachewicz Well, maybe if I actually knew any Haskell, it might be different.
 
the fact that it doesn't use exactly the same words as your programming language of choice isn't that relevant I think
@MartinJames you might be confused by the spaces; f x in Haskell means f(x). And so f (h x a) means f(h(x,a))
 
@BartekBanachewicz Fun as this is I MUST GO, else Imma gonna spend all night in the Lounge, again.
 
8:50 PM
@MartinJames oh no :P
 
It's the call of the Doombar... bye:)
 
Ok. I've been trying to figure out why this was posted very hard now for some minutes.
It's okay to give it away now
 
Mal-Wart.
 
@Griwes oh lol only now I got it
 
user3010322
@R.MartinhoFernandes Not much, I've taken it apart. It was originally going to help me prototype my door unlocker, but every project I had has been on hold since I started Uni.
 
8:59 PM
@Griwes great
@MartinJames :(
 
Letters are hard
 
I'm bored. Entertain me.
 
Butts
 
buttcoins
 
9:07 PM
You're doing it wrong.
 
Does anyone have any clue about how this question got down to -43 before getting nuked?
 
Closed 2 days ago, deleted 1 day ago
 
maybe because of that ^ @Mysticial
 
@Mysticial probably a combination of and badness...
> Holy excessive effort, batman.
the answerer is not even good with PHP
 
user3010322
I'm not even all the way through the bacon and I'm full. u.u
 
user3010322
9:15 PM
I think making 12 boiled eggs will be easier to eayt.
 
user3010322
I've never made boiled eggs, though.
 
user3010322
Always scrambled.
 
fuck
VS why won't you show me the derived type?
 
user3010322
I though it does?
 
user3010322
Unless you're slicing.
 
9:17 PM
it often randomly doesn't.
I'm in a base member function and it won't show the derived type.
 
user3010322
Can't go through the natural this pointer?
 
Haddock coverage:
   0% (  0 /  4) in 'Util'
   0% (  0 / 15) in 'GlishaCommon'
  19% (  3 / 16) in 'Glisha2D'
Warning: glisha-0.0.0.1:Glisha: Could not find documentation for exported module: All
   0% (  0 /  1) in 'Glisha'
Warning: GlishaCommon: could not find link destinations for:
woah
this is impressive
 
@ThePhD Nope. It just flags it as the base type (which is particularly ridiculous since it has pure virtual functions).
 
@MartinJames I have not chosen a motor yet, and I don't know if the Arduino will provide enough power or if I'll need to provide it externally.
@sehe That's a bit far.
 
the base is written as NVI, and the base has a defensive assertion on the derived's implementation, which triggers.
but I can't see which fucking derived has the problem.
 
9:21 PM
@DeadMG Does it ever?
 
@R.MartinhoFernandes Yes.
sometimes.
 
:lol:
@BartekBanachewicz What, your doc coverage? :v
 
but I really need to see the derived type so that I can figure out where the problem is.
 
@CatPlusPlus no, the fact that it tells it
 
Decent documenting tools do that
 
9:23 PM
I've just enabled it for the first time, so obviously it's not very comprehensive
 
@R.MartinhoFernandes hehe
Do I gather you have the week off?
 
This one?
No.
 
user1804599
Speaking of having a week off.
 
user1804599
I should take a day off Friday next week.
 
I have from 29th May to 9th June off, covering my trip to Denmark + unconference.
 
9:29 PM
@R.MartinhoFernandes next one, of course (or are you planning on cycling in the evenings only?)
 
user1804599
@gclaramunt Spring is a framework for turning XML documents into ClassCastExceptions.
 
@R.MartinhoFernandes nice - what are you going to do in DK? (or don't answer, I don't know why I need to know :))
 
@sehe Nothing.
I'll just cycle there and then take the train back.
 
fuck MSVC, let's take drugs instead.
5
 
@R.MartinhoFernandes wow. Sounds like a great plan. I really hope you'll get the wheather you like.
 
9:34 PM
hm you can't document instances
which kinda makes sense, I guess?
 
user1804599
No.
 
user1804599
You should be able to do it.
 
ah right
I misread
okey
 
user1804599
I mean, indeed you cannot.
 
user1804599
But you should can.
 
9:37 PM
time to install Stylish
The declaration following a documentation annotation should be one of the following:

A type signature for a top-level function,
A data declaration,
A newtype declaration,
A type declaration
A class declaration,
A data family or type family declaration, or
A data instance or type instance declaration.
@rightfold no? ^
 
user1804599
wut
 
Firefox UI dieeed agaaaaain
 
why doesn't stylish work
 
user1804599
Because you don’t suck enough cock.
4
 
oh it does
oh look the bottom bar uses table layout
also
 
9:45 PM
-1
Q: Merge of stackoverflow and programmers

tatigoI think that the original purpose of Programmers (originally called not-programming-related) hasn't fulfilled its purpose, and right now it functions as a duplicate of Stack Overflow. The question What's the difference between Programmers and Stack Overflow? has 4k views and is on top of the met...

^^ uh oh
 
woah
restyling the whole chat will take a while I guess
 
0
Q: How can I get VS debugger to cough up the derived class goods?

DeadMGI'm using Visual Studio to compile some code. It uses NVI to defensively assert- something like this: class Base { virtual T DoSomething() = 0; public: T DoStuff() { auto result = DoSomething(); assert(check(result)); return result; } }; The problem is th...

fuck it, whoever can solve that deserves some rep.
 
uh, I have to reload stylish after I reload lounge
 
@DeadMG Posted a hack.
 
looks pretty terrible
 
9:52 PM
much suckage
 
but at least keeps mosquitos from sticking to my screens
:P
 
user3010322
Or they just camo.
 
either way, it's less annoying
 
If the historical debugger worked for native code, it'd be easy.
 
I'll change the accent colors to solarized
 
9:54 PM
GDB has reverse execution which is a life-saver in these cases.
 
@R.MartinhoFernandes Solved the problem.
 
What did you do?
 
I happened to find a case where the bug occurs very close to the AST, so I stuck a conditional breakpoint on code-generating the code corresponding to that AST location.
then just stepped through.
as soon as I saw the derived class, I instantly realized the bug.
 
user1804599
 
@rightfold that's bright IIRC
 
user1804599
9:56 PM
Less bright than default.
 
turns out
I went through the change list in this commit, and commented out all the additions, and didn't find the source
but I didn't notice that I'd removed a couple lines (which were added for the explicit intention of preventing this problem long ago) by accident.
 
No shit, the default is milk white :P
 
BTW
JSdoc has that thing called "tutorials"
 
user1804599
IK WIL MINDER BTW.
 
I wonder if Haddock has them too
 
9:58 PM
Also #eee is not that far from #fff...
 
hi
 
user1804599
@Jefffrey Noise makes it darker.
 
f  :: Int      -- ^ The 'Int' argument
   -> Float    -- ^ The 'Float' argument
   -> IO ()    -- ^ The return value
hmm
 

« first day (1314 days earlier)      last day (3628 days later) »