« first day (1717 days earlier)      last day (3230 days later) » 

12:00 PM
@BartekBanachewicz that's so yesterday ...
 
Ven
pls
 
holy hell
 
Well. To be honest, I don't I deserve your rant. If you have a capable compiler, just use lambdas. It's not even the Asio stack here (it does have callback concept assertions) it's just the bind barfing. You don't need the bind with a lambda. Help your compiler help yousehe 6 secs ago
 
> The Falcon 9 was carrying more than 4,000 pounds of food and supplies to the space station
 
user1804599
I don't know.
 
user1804599
12:02 PM
Getting the type of a name expression requires lookup in a symbol table.
 
user1804599
To find the declaration of the symbol.
 
user1804599
Then the type can be acquired.
 
@R.MartinhoFernandes Was it expensive? I looked around a little and the ones I found were upwards of 50$ and were really small.
I dont need a big one, but the price seemed overkill
 
user1804599
findDecl :: SymbolTable -> Name -> Decl
declType :: Decl -> Type
 
On my next long trip, I'm going to navigate by dead reckoning.
It was nice meeting you.
 
12:04 PM
Was it?
 
user1804599
aaaaaa yes I know
 
@R.MartinhoFernandes we'll miss you
 
Ven
@rightfold there's module loading involved in the process as well
 
@R.MartinhoFernandes 40 pins
that's a lot
> it's a support 8/16bit data interface, easy to drive by many MCU like STM32, AVR and 8051
 
12:06 PM
@Borgleader Oh, wait.
 
IDGI then. Why does it need 40 pins for "8/16 bit iface"
 
I didn't see the message you replied to.
 
user1804599
@Ven that happens after parsing.
 
Ven
@rightfold but before type checking :)
 
That one is the touch screen I have to play around but haven't yet.
 
user1804599
12:06 PM
@Ven before name lookup, even.
 
I would love to build myself a cruise computer
for a car or motorbike
 
unfortunately I suck at hobby electronics
Perhaps because I can't wire directly into the IC like robot
 
@BartekBanachewicz Start small.
 
A J
small steps
 
12:07 PM
last time I cried over setting up embedded gcc remember
I literally cried
I spent 6 hours to get blinky to build
 
yesterday I failed to make an ethernet cable
 
@BartekBanachewicz The touch IC has 16 more pins.
 
I have to get back to IC work sometime
my STM's been picking up dust lately
but dunno
I guess I would need to clench my teeth and realize I won't do anything useful in the first couple hundred hours\
 
@BartekBanachewicz 16 for the parallel data bus, 5 control pins for the LCD, 6 control pins for the touch panel, 4 for the SPI interface for the SD card (it uses the card to load pictures from), ground, supply, backlight. The rest are dead.
 
user1804599
@Ven if we give every AST node an ID then we can keep a table from name expression IDs to symbols, and a table from expression IDs to types.
 
Ven
12:15 PM
@rightfold like you did in your scala thing? :)
 
user1804599
yes
 
@R.MartinhoFernandes that's still like a half of my STM pins
don't you use Arduino BTW?
 
user1804599
and the symbol table maps strings to special symbols (such as calling conventions or built-in types) or decl IDs
 
they have even less, no?
or is that for the RPi
 
Overriding the <script> tag from within itself feels hacky as 'ell.
 
12:18 PM
I use a Uno.
13 GPIO
@BartekBanachewicz Not a problem. This one amazon.de/HD44780-Module-Display-Anzeigen-Zeichen/dp/B009GEPZRE/… has three pins more than the Arduino, and I still got it work with 10 pins to spare.
You just turn it into a serial interface.
Use a shift register for example.
 
I tried to read data from a serial hardware thing I have
it technically has shift registers inside
I even opened the case to verify
still got only fucking 0s
what I find annoying is that I can't really pinpoint the issue
the whole systems seems fragile as fuck, and it might well be an assembly bug as well as a loose cable :S
 
guys. I am bored to death. help
 
considering dieing of boredom. The feeling will ebb away
 
user1804599
ugh, we also need to know the type of a declaration
 
@sehe The feeling of boredom or the feeling of being dead??
 
12:23 PM
What I want to do in the future is to just set up most peripherals on I2C.
 
I remember I2C as fairly straightforward to use
 
@Mr.kbok both, I guess
 
@Mr.kbok ocean swim or mountain hiking?
 
but I guess to fuel up (pun intended) my automotive dreams I'd need CAN
 
You could be dead before you are bored ever again
 
12:25 PM
meh, sports
 
technically it's all possible with those dev boards. I've seen drivers for ethernet. For USB. For I2C, for CAN
for cameras, displays, sensors, whatever
it's just such a fucking pain to integrate
 
user1804599
@Ven let's first just implement recording into a table for each name expression which declaration it refers to.
 
@BartekBanachewicz For the 40-pin one, I was thinking of a pair of MCP23016.
I think I have some around. Or maybe just the 8-bit versions. It's all packed away, anyway.
 
why don't you buy an stm board and do a working setup for it so I can steal it :S
 
Ven
k
 
12:29 PM
I don't even know what that is.
Also, I think I have way too many already.
 
@R.MartinhoFernandes I have one of these
 
@R.MartinhoFernandes Thanks
 
I've realized this is probably one of the worst boards to start on
too small for linux-ish rpi easiness, to big for easy, total control like on 8-bit chips
 
user1804599
 
@BartekBanachewicz imo one of the better protocols
 
12:36 PM
@BartekBanachewicz Right now I have: two Raspberry Pis, one Arduino Uno, three Uno-replicas I built myself (plus components for seven more) and one Adafruit Trinket. Not sure I want to buy more.
@BartekBanachewicz Why don't you just buy a Uno?
 
@R.MartinhoFernandes you like the arduino platform then :P
 
(Or if you're feeling adventurous, do like I did and buy components for ten for the price an assembled one)
 
Tempted by pic... faster cpu makes me reckon it'll be better for servos
 
Ven
@rightfold not sure the writer is the best thing we can use here
 
@R.MartinhoFernandes Cortex M4 sounds like the closest to industry-ish things at the scale I want to build
 
user1804599
12:37 PM
You can use <> explicitly. :v
 
@thecoshman Is better desirable, though?
29 mins ago, by R. Martinho Fernandes
@BartekBanachewicz Start small.
 
I know I suck :/
not doing anything with a pro ARM board < doing something on Uno
 
@R.MartinhoFernandes o_0 yes better is better... not sure if it's worth the extra effort. I could get an arduino and be up and running very quickley
 
user1804599
resolveNameExprs st callee <> foldl' (<>) Map.empty (map (resolveNameExprs st) args)
 
@BartekBanachewicz That's not why I say to start small. You need practice, and starting small is less frustrating.
 
12:38 PM
I just do know that my vague long term plan will need more than what a single uno can do
 
maybe 'simple' servo driver board will sort that out.
 
@R.MartinhoFernandes I just don't see any way of bypassing hours of studying assembly boot sequences
Using Keil's IDE was pretty OK, but, I uh, stole it to do so.
also their compiler is far from standard support
 
@R.MartinhoFernandes I will be wanting to drive ~20 servos... not sure how well a single uno will handle that. I know it can technically (with some extra hardware) drive it, but how stable the servos will be...
 
@BartekBanachewicz But what does that have to read with reading from the serial hardware thing you have?
 
12:39 PM
but like you said, start small, just get a few under control
 
sbi
'Tach.
 
@R.MartinhoFernandes I wrote the code for that using the Keil's IDE. I've no freaking idea why it didn't work TBH, but OTOH even if I got it to work that's still... "cheating"
I'd need to move the code to my own GCC setup
 
@R.MartinhoFernandes well fancy that.
 
and building drivers then is just a total mess
also even Keil's IDE wasn't able to boot up from RAM
things keep failing for me all the time when I try to build something for it and I lack knowledge to debug properlt
 
sbi
12:42 PM
I have an SFINAE question.
I have a compile-time function that's a predicate:
template<class T> struct some_predicate                   : some_other_predicate<T> {};
template<>        struct some_predicate<some_type>        : bool_<true> {};
template<>        struct some_predicate<another_type>     : bool_<true> {};
 
yeah I know I'm whining
 
sbi
I now want to extend this so that it also evaluates to bool_<true> when T is a container (has a member value_type) and some_predicate<typename T::value_type> is bool_<true>. What's an elegant way to do this?
 
@sbi I think 2nd covers 1st
 
@BartekBanachewicz FWIW, standard Arduino driver libraries tend to be crap. I rewrote every single one I used so far.
 
I would like to rewrite my GPIO libs but I couldn't get C++ to work either
aforementioned boot script hell
 
12:44 PM
@R.MartinhoFernandes lol
 
and C doesn't scale for shit
 
sbi
@BartekBanachewicz Were you talking to me?
 
sbi
@BartekBanachewicz Ok. But what would be the right syntax to do this?
Oh!
template<typename Container>
struct some_predicate<Container> : some_predicate<typename Container::value_type> {};
This?
 
user1804599
@Ven then to find the type of a name expression all you need is type TypeDeclMap = Map DeclID Type
 
Xeo
12:46 PM
@sbi that would suffice, yeah
 
sbi
Ah, thanks!
 
Xeo
well
not quite, I guess.
Since you got an unconstrained template argument there
 
wait are you specializing or not
 
Xeo
You either need to specialise, or make a new trait
 
12:47 PM
This doesn't look like a specialization to me
 
sbi
Ah, right, this doesn't specialize.
 
@thecoshman Mostly because of using physical pin numbers as arguments, instead of having some I/O signal abstraction.
 
oh well another motorcyclist killed by a stupid car driver
 
@sbi Make a predicate that detects if there is a value_type, and then use std::conditional on that to choose between a trait that checks some_predicate<typename T::value_type> and another one that behaves like you currently have.
 
sbi
@Xeo Ah, and then change the general case of this one to or_< some_other_predicate<T>, new_trait<T> >?
 
12:49 PM
this "cars are safer" thing is a double-edged sword. People feel safer and a tad too comfortable
 
@R.MartinhoFernandes I thought it was fairly easy to say if you want to use chip pins or 'board header' pins
 
if everyone drove bikes/scooters at least they'd realize they have to freaking look around because it's dangerous on the road
 
@BartekBanachewicz I can agree with that at least
 
@thecoshman No, the problem is that, say, with the LCD library, you have to pass it 8 ints which are the pin numbers where you plugged the LCD.
Turns out that fuck you I plugged my LCD in three pins with a muxer.
There's no way to use the library functionality then.
@thecoshman It's kinda like having an interface that take takes file descriptors to write to instead of streams, and you want to pass it a stringstream.
 
@R.MartinhoFernandes oh yeah, I remember you mentioning that
 
user1804599
12:53 PM
@Ven mconcat (map (resolveNameExprs st) (callee : args))
 
user1804599
that should work
 
@R.MartinhoFernandes I have F07
but they're all pretty similar
F11 is a tad less powerful. 100Mhz instead of 168 and 128 RAM instead of 192
 
yeah they're not expensive
and actually rather powerful for the price
it has double USB sockets for programming/USB device operation as well
you can debug it via JTAG or the bundled USB iface
also has a headphone socket and DSP instructions for sound processing
too bad I can just blink a led
 
1:00 PM
Might try it out when I get a home.
 
cool
I can share the things I found for it with you
 
1:23 PM
> Etak's engineers decided it would be too dangerous and distracting to operate the display's controls in a moving vehicle. So they disabled destination entry or car repositioning while the car was in motion—decades before the rest of the world began to worry about the dangers of distracted driving.
wooah
@BartekBanachewicz you're right, good read (so far at least)
 
1:38 PM
am I the only one who thinks nvidia's fur tech looks bad? images.akamai.steamusercontent.com/ugc/448454842788758264/…
it looked the same in far cry 4
I just don't think it looks legit
 
user1804599
@AlexM. me.
 
not using it makes for better looking things
 
Ven
Just lost 2 hours to a scala bug. fucking christ.
 
user1804599
@Ven nail Odersky to a cross.
 
@AlexM. holy shit, that looks good
 
1:40 PM
ugh this stupid piece of shit piece of software yells at me for not providing database password... when the database user has no password set
ugh
 
user1804599
 
@Griwes what software?
 
user1804599
This looks good.
 
Is that pork?
 
user1804599
I don't know.
 
1:41 PM
@khajvah poweradmin, a shitty php web gui for powerdns
although the other shitty web gui is written in java, so...
 
@AlexM. IMHO stationary screenshots aren't the way to compare it
 
it looks even worse when moving
 
I am sure they'll optimize it
 
the fur starts "moving" and since the hairs are small it becomes blurry
 
just like real fur, no?
CG is a complex topic
 
1:43 PM
and in far cry 4 I think they exaggerated the fur movement because it moved like crazy which made it even more of a blurry mess
 
tuning parameters for an algorithm can be harder than constructing the algorithm itself
cue shadows
 
I don't know the fur on dogs is not a blurry mess when I look at it IRL :<
but ye the hardware probably can't simulate it properly yet
+ optimization
 
does it make sense if I say that movement made it look jaggy?
 
@AlexM. it's really not about hardware nearly as much as "we don't know how to mathematically describe this"
 
1:44 PM
I dunno how to say it
 
@AlexM. isn't it? ^
 
user1804599
looks terrible
 
user1804599
-1 not photorealistic
 
you can see it best on the head of the brown bear or whatever that is
 
1:45 PM
less fake than just a texture vOv
 
albino bear
at 1:20 or so
 
user1804599
1. Understand physics.
2. Get powerful computer and simulate on the most fundamental level.
3. ???
4. Profit!
 
looks legit :D
 
it really doesn't
you're just more used to it
 
1:47 PM
nope, but it blends with the surroundings too
 
doesn't make it more realistic
 
Fur is hard
 
well, the whole image perhaps is less striking
but we were talking about fur specifically
 
anyway, what conclusion are we trying to get to here?
I asked if I was the only one who thought hairworks looks bad
 
9 mins ago, by Alex M.
am I the only one who thinks nvidia's fur tech looks bad? http://images.akamai.steamusercontent.com/ugc/448454842788758264/31E3F2C6CE653ED‌​CDE83642A89788B8526595462/
 
1:48 PM
I got my answer
so I'll step out
 
reasons for why we perceive things differently are interesting
even more so in context of CG simulation
 
I went through the 2nd interview half an hour ago :<
now I'm curious what happens next
 
Does defining your own types using typedef maintain the intended size of the type you're declaring? For example "int" is larger than or equal to short int and short than or equal to long. So does defining "typedef int int32" maintain the 32-bit status of the integer? See for types: https://msdn.microsoft.com/en-us/library/cc953fe1.aspx

I'm curious because this is done by the Win32 API. However I don't know why typedef does this.
 
typedefs are "weak" in C++
 
Weak?
 
1:51 PM
for all the purposes of usage, it's just a name alias
doesn't change anything about the semantics of the type it's pretending to be.
 
So then why would the Win32 API need to define it's types?
 
@Kayle For consistency between platforms of different bitness
 
Which brings me back to this: If they're there for different platforms and defining using typedef doesn't effect bit-ness, yet the Win32 API says the type--for example--DWORD(typedef unsigned int) is ensured to be 32-bit unsigned int... Then what's the point here? Win32 Types: msdn.microsoft.com/en-us/library/windows/desktop/…
 
@Kayle typedef does nothing.
@Kayle There's a finite set of implementations of the Windows API, and they all happen to have int as the 32-bit type. Just a coincidence, nothing else.
typedef is not magical.
 
Ah, so it's different depending on the Win32 implementation.
 
1:58 PM
If you were in a system where int was not the 32-bit type, the Windows API implementation for that system would not do typedef int int32;
@Kayle Right.
 
oh great I was supposed to say only positive things
 
Gotcha, that makes sense now.
 
but now I see that a subject I passed is listed as failed
 
@BartekBanachewicz College course?
 
1:59 PM
no idea whether I was supposed to go up to the guy and say "hey I passed the exam last year" or what
@Kayle ye
 
HOLY FUCK LOOK AT THIS
badass
 
99% I will get called to the office to talk
 

« first day (1717 days earlier)      last day (3230 days later) »