21,281 karma · joined Nov 23, 2012 (14y ago) · 6,748 submissions
blog: https://rtpg.co
email: raphael at above domain
comment 10y ago · link · parent
comment 10y ago · link · parent
If so, how does it get around the whole GIL thing and whatnot? Or maybe I'm misunderstanding at what level things are happening?
Is it that you still have one python process but the bottleneck/URL fetching is happening inside your elixir stuff?
Super interested in this, we have this problem with Celery workers and would love to not be bound by RAM for worker count
comment 10y ago · link · parent
I don't get your point about food either. Unless you are rich enough to shop exclusively Whole Foods or something, the average French food experience is a lot better than an American one. Plus basically all products are higher quality. Compare what you find in an American Walgreens to something like a Monoprix in France. It's pretty embarrassing how much cheap shit has filled American stores.
I was having chicken nuggets or pizza everyday for lunch in my US middle school FFS! How do we let kids live like that? French public school was giving me way better food (though it was like $4 instead of $2). Actual "3 course meal", you could avoid vegetables some days if you wanted to but for the most part super balanced. Agree about Fast Food really making inroads though.
And of course inequality exists, but it's not the US. I have never heard somebody say that someone should "just work two jobs" to make ends meet in France. That's more indicative of US craziness but still. Not from Paris though, maybe Paris has those kinds of people.
France has its problems but for the most part people aren't starving on the street and kids have access to veggies.
comment 10y ago · link · parent
There are the recesses in between, but it was like 20 minute breaks. I could sit and read, but usually ended up just chatting with friends. A nice break but kinda felt forced for me. I would have much rather taken most of that time and gotten out of school earlier and go to a friend's house or something...
The schoolwork thing is a good point, I don't remember having much schoolwork for home in France compared to the US. There were books to read or things to study but I had math homework every day in the US.
I think the big thing I dislike about the French system is the lack of many elective courses (apart from art, latin, or something like an extra foreign language). Felt like I had a lot more choice in the US (at least in my well-funded school). On the other hand, the French system isn't just multiple choice questions...
comment 10y ago · link · parent
I would finish school at 3 in the US, at 5/6 in France. There's 3 hours of the day that French kids can't spend in structured things. That alone completely changes dynamics. Basically you get to have one structured activity (like learning an instrument) and that's about it.
The French education system also doesn't promote much in terms of extracurricular activities. There's gym but you don't have sports in school or whatnot. Most depressing thing for me going from TX to France was losing Orchestra as a school class. Tried signing up to a conservatory but it would have ended up being my "1 thing" that I could do.
Honestly I preferred the American system much better. It gives you more flexibility for things like Boy Scouts, sports, or learning to program. And I still had loads of time to go to my friends house to do whatever.
So in the end the US system gives you more structured activities AND more unstructured time. School as an educational system is overrated. School as a socialised event organiser (like for Orchestra, Arts, and the like) is way underrated, and totally not a part of the French system.
The counterpoint is that I've heard recently that US schools have started giving waaaay too much homework, eating up at the unstructured time. I'm a fan of letting kids investigate what they want to do. Homework's important but so is giving people the opportunity to discover things.
Side note about the article: who brings their kids to Yoga class? Is that a thing?
comment 10y ago · link · parent
Think about it, if you're in the UK but being "paid" by a German company, are you really paying the right kind of taxes? What's to stop every major corp from having the Cayman Islands branch hire you.
Usually people working for foreign corps end up actually being contractors (and paying self-employment taxes or whatnot).
comment 10y ago · link · parent
function getColor(str){
if(str=='blue'){ return '#0000ff'; }
if(str=='red') { return '#ff0000'; }
}
getColor = {
blue: '#0000ff',
red: '#ffoooo'
}
The second one also has if statements inside the implementation of the hash map, but it isn't actually polluting your business logic. The question is no longer "what do you do when the input is like this or like that", but "lookup the corresponding output".The distinction is nice because I know that getColor[thing] will likely have no side effects. I can treat it, on a theoretical level, strictly as a map.
Of course if the problem is "implement this on a machine without branching" this isn't super useful but most problems are not that.
comment 10y ago · link · parent
At some point applying "anti-if" does involve major refactoring, so the outer style of your code might need to change a bit.
Of course like all design patterns it's more of a thought experiment than a total prescription IMO. But taking the thought experiment to its logical conclusion can also yield interesting results.
Some people might throw out strawman arguments about design patterns, but I'll end up reading the strawman and be like " yeah that does sound like a good idea". It's pretty hard to overestimate the value of regularity in code.
comment 10y ago · link · parent
Now I think that if you're a large company, having this venue open, and letting basically anyone apply for retraining to another skill set is a good idea. But I think it's not obvious to execute, and involves a lot of risk.
comment 10y ago · link · parent
"Oh check out this contract at FooBarContracts"
(counterparty opens link, copies text into word doc, edits)
"Here's the latest DOCX with my revisions."
comment 10y ago · link · parent
I publish "Gravitational constant is actually (some slightly more specific thing)", with extension of existing methods. Someone sees that and already will be convinced just by the title!
I publish "Gravity is actually caused by micro-gnomes pushing things around with walkie-talkes", and it's pretty novel. I don't really have existing work to base it on.
Why should anyone believe my work has any basis in reality then? The burden of proof is on me to convince people. Fool-proof methodology, simple explanations. Bringing it back to current understanding helps. But I'm the person saying everything is different, the world owes nothing to me just yet.
Not to mention that the header graph is totally confirmation bias. Yes, you're going to cite the original paper citing the effect you're studying. You probably won't cite most incremental research. Definitionally novel papers that get any traction will collect references.
---
I actually have an example of my own novel research! I'm the first person to post about a bug with Ubuntu's (at the time) new IME manager[0] on Ask Ubuntu. Turns out there was a real thing (and it wasn't me being silly). So now I have 550 points on Ask Ubuntu because of this question, and get notifications about it all the time.
I have cornered the "Ubuntu 13.10 keyboard bug" citation space. Mainly for being first. And I have gotten extra rewarded for it. Novel papers enjoy the same perks when they get any traction.
[0]: http://askubuntu.com/questions/356357/how-to-use-altshift-to...
comment 10y ago · link · parent
Don't feel ashamed to look up how to do the game. There is a regularity, but the learning curve is very high. I think it's easier to think of DF like Blender more than like Sim City. You're using a "professional-quality" dwarf simulation tool, some manual reading is required.
I think DF is like Magic The Gathering in a way: Half of the fun is absorbing the mechanics and idiosynradicies of the game. It's fine not to like it, too.
comment 10y ago · link · parent
For example, people rely on how C lays things out in memory, so C compilers have to lay things out in memory in specific ways. Haskell doesn't have this constraint and so can do a bunch of tricks.
And then there are things where C cannot move a variable/optimise out a variable because it's unknown whether some unrelated bit of code my go poke at its memory.
Now one might say "well if you know what you're doing then you can get the compiler to do what you want." Everything's possible, since everything's turing complete. But I would consider "variables need to be somewhere in memory" to be mandatory overhead.
comment 10y ago · link · parent
Haskell is still pretty well-defined in terms of execution, but freedom from how to manage memory is in itself a major liberator for the optimisers.
comment 10y ago · link · parent
While I kinda get removing it from the mobile app, I don't really know what the rationale is for getting rid of mobile web chat though. It's not like it's disappearing from the desktop web app anytime soon, right?
right?
comment 10y ago · link · parent
ADHD is basically the most studied and best understood psychological condition out there. People who get treatment (medical treatment! Treatment without medication is a major uphill battle) have a 60+% response rate, with something like 30% of people having almost total recovery of symptoms.
This is much better than "real" conditions like bipolar disorders and "well most people think it's real" things like depression. If you think we can diagnose and treat bipolar, then acknowledging ADHD as a real thing that does affect a lot of people is the next logical step.
A bit of a rant but I think a lot society is still in denial about ADHD mainly because the symptoms look a lot like behaviour we expect from children.
And of course that denial makes ADHD sufferers feel like shit and shuts down most paths for recourse...
comment 10y ago · link · parent
EDIT: calm down wrt physical movement, symptoms on the cognitive side are still very present of course. It's just that adults tend to be better equipped to cope with some of them.