Better HN
topnewbestaskshowjobs
Log inSign up

Agingcoder

1,724 karma · joined Dec 19, 2017 (8y ago) · 732 submissions

Submissions

comment 5y ago · link · parent

Thanks. LTO definitely looks like the more natural option.

comment 5y ago · link · parent

Very interesting. I especially like the second item.

What happens if the function you want to differentiate calls multiple other functions, in multiple other compilation units?

(I haven't read the paper yet but definitely will)

comment 5y ago · link · parent

You're not alone, unfortunately. 17 years ago, I went to the office, and by 10am, my right hand wouldn't move much . This wasn't exceedingly pleasant, and was a fairly common case of cts/rsi/etc. I had had rsi issues previously which had been very painful, but never something which to me looked like some kind of partial paralysis.

So I started looking into it, and realized that I could greatly improve my situation by paying attention to ergonomics, starting with my mouse. First problem : convincing tech support to replace my old ball mouse with a led one. They didn't want to give me a new one since 'it was obviously a joke'...

The good news is that things are a lot better now than they used to be, from decent mice and keyboards (ergo mechanical keyboards are a godsend) to all kinds of accessibility options in OSes, and rsi issues being broadly known. Rather surprisingly I'm in less pain now than I used to be (some things will most likely remain off-limits forever, such as using a laptop ), after having adjusted mouse, keyboard, chair, screens, font sizes, and general software environment to avoid doing 'bad' movements.

In any case, if you want to go down this road, please do! You'll improve everyone's life.

comment 5y ago · link · parent

Fifteen years ago I spent three weeks in Pakistan (as part of a significantly longer trip) - entered from the Indian side not far from Amritsar, went to Lahore, spent some time in rawalpindi then off to the Hunza. I also got the nastiest bout of diarrhea I had ever had in my life, most likely caused my bad meat (I still remember the faulty kebab...).

The locals where very friendly. When I was in the bus on the karakoram highway, we had a brief stop (bathroom break, food, etc). I was chatting with someone who was asking where I came from, when suddenly he snapped his fingers. A can of coke appeared on his hand, and he handed it to me, saying 'welcome to Pakistan!'.

As to the landscape, I still remember it many years later.

A truly extraordinary place.

comment 5y ago · link · parent

It's more reliable than sms - I used not to receive some of the texts people would send me, which caused all kinds of misunderstandings. I ended up doing experiments with friends sitting beside me just to prove my point. The same thing happened to family members.

I'm not sure what the problem was, but WhatsApp solved it.

comment 5y ago · link · parent

This happened to me (math background, now write software), so I decided to fix it : I read most of the classic textbooks over the course of a few years, and tried to apply what I learned in them at my day job (provided that it was useful to my company obviously). Three things happened :

- I got a lot better at my job because my toolbox was a lot bigger

- I developed a much 'broader' view of the field, which became unified instead of a collection of subfields

- I realized that there was even more that I didn't know about, and that I should keep reading !

comment 5y ago · link · parent

Indeed! I very much agree with the model vs sequence opposition.

Another useful side of the model / math approach is that it allows you to formalize your problem and derive hard bounds, ie know in advance what's achievable and what's not (the 'let' s derive a bound' approach being another standard method in maths).

comment 5y ago · link · parent

There are two different problems actually : what you write, and the quantitative aspects of your code.

What you write may or may not have a strong maths component ( game engine vs crud app say, or PDE solver vs typical 'plumbing' app).

However, the moment you start having performance issues (and this is everywhere), maths comes in very handy : big o, back of the envelope calculations, orders of magnitude, etc. You may call it engineering (and to a large extent it is), but I tend to lump quantitative reasoning on the math side and not on the compsci/engineering side. It's not necessarily extremely sophisticated, but having a 'quantitative view' of your code can help a lot.

I remember many many years ago developing a sudden interest in algorithmic complexity (and what quadratic meant..) after having used a bubble sort to sort polygons in my 3d engine. Needless to say, log became a fairly interesting function after reading a bit more on sorting!

comment 5y ago · link · parent

Heating houses : https://qarnot.com/en/home/

Basically they install 'heaters' in your house which are actually servers in disguise. I think they also have a boiler now.

They're not the only ones though - I believe that in a number of places in Northern Europe, if you want to setup a datacenter in town, it has to be plugged to a (public?) water heating system.

comment 5y ago · link · parent

Indeed! This reminds of a fun issue I ran into years ago with simd code(gcc, linux) . I was experimenting with various vector sizes, and found significant slowdowns for some vector sizes. I was about to call it quits, as in 'well, I'll have to do things differently', when I realized it didn't make any sense. I double checked the actual values computed by the benchmark, which happened to be completely wrong. What I had actually found was a compiler bug !

comment 7y ago · link · parent

Not really - this is a different issue : generic problems vs out of the box behaviour.

I expect Bluetooth to work out of the box on a Lenovo laptop in 2018, while I don't expect Linux to work well at all. I've been using linux since 1996, and things haven't changed : unless hardware makers start supporting it natively, we'll always have problems.

Now, I may be very wrong on the windows side of things : I expect it to work, but maybe it doesn't!

comment 8y ago · link · parent

I'm not sure I understand. - both uberx and uber pool are legal in France - uber black elsewhere is a luxury service, which French uberx is not - maybe we don't have the same definition of professional driver, but you need them to be professionals for insurance and tax reasons. - there has been a direct rail link from CDG to central Paris since 1981. It's called RER B.
1
2122232425