Better HN
topnewbestaskshowjobs
Log inSign up

rtpg

21,281 karma · joined Nov 23, 2012 (14y ago) · 6,748 submissions

real name: Raphael

blog: https://rtpg.co

email: raphael at above domain

Submissions

comment 10y ago · link · parent

Seconded. A lot of "Remote jobs" are basically inaccessible for people in Asia because their office hours are basically set to New York/SF time. I mean you could work nights but it kinda defeats the purpose of remote working IMO.

comment 10y ago · link · parent

I would add Purescript to that list. Most people see it as a Haskell-like for the JS VM, but it also includes row types. Meaning that your types can keep track of granular effects ("oh, this uses IO, but just the random number generator", "Oh this just looks at the foo property"), which is super useful for reasoning with larger codebases.

comment 10y ago · link · parent

The multiprocessing slide mentions the RAM usage issue with things like Celery (because you start many instances of Python and load in dependencies). Does this solve them?

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

Paris sucks though. I half kid but it's kinda true. Polluted and crowded, super expensive, and a lot of people are pretty disagreeable in my experience. A lot of nicer cities exists.

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

Oh, yeah, forgot about Wednesdays. Like you said, it's a good opportunity for sports and whatnot. I also had the half days on Wednesdays but basically my classes always ended between 5 and 6PM (This was High School).

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

When growing up I ended up going through both systems (living in Texas and France), so I feel qualified to talk about this:

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

generally speaking, countries don't want you to be in them and be paid by a foreign company.

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

Maybe 5 years of Java without using inheritance?

It's possible but feels like you haven't gone the distance.

comment 10y ago · link · parent

This is only true in a very technical sense.

    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

Are the semantics to this comparable to Haskell's pattern matching on function arguments?

comment 10y ago · link · parent

I think if your boolean is coming from user input then refactoring your method to accept user input, and then wrapping your method with a helper function that does the user input call would still be good advice.

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

What problems do flying cars solve? I know it looks cool but is there some huge thing that would get solved with this?

comment 10y ago · link · parent

There's probably a major morale hit if you get thrown into training ("Oh actually you're not useful to us right now, go back to square 1"). Also now you're running a retraining program, which can be hard.

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

And when you hit peak users (say, 100% of the market) you now have no money to support more upgrades.

So despite the fact that pretty much everyone will want continued improvements, nobody will get anything.

comment 10y ago · link · parent

This is solved in the Android app store with "user was using older version"

Exactly this situation happens and it's fine because people mention it. "In the latest update, X happens"

Plus developers can respond to reviews and mention that the issue was fixed

comment 10y ago · link · parent

I think the primary issue is that when you start redlining, everyone has their workflow and the side that's in the "position of power" will use what they feel like using.

"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 feel like if you break down what's being said here, that it's just a consequence of having to communicate ideas to people.

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

I had the same feeling, then decided that DF should be packaged with one of the online wikis about the game.

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

When talking about performance, C actually can have overhead though.

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

A similar paper on Haskell's stream fusion has a pretty similar PDF filename (http://research.microsoft.com/en-us/um/people/simonpj/papers...). With benchmarks showing the "naive" implementation in Haskell of a simple stream problem beating hand-tuned C.

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

I agree with the sentiment, but still it is a bit worrying when we see so many hyped startups where a lot of scientists are like "yeah this won't work at all."

I mean I know that there are doubters for good ideas too but what's the line to draw in terms of skepticism?

comment 10y ago · link · parent

The counterpoint is that I know heavy FB users (myself included) who have opted to just install Messenger on their phones, essentially being able to get rid of FB on the phone, to limit distractions but keep the nice communication

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

I don't use the apps of some things because the web versions ended up being faster (plus less space on the phone). In my case Messenger ended up being one of the few apps that I opted for ( chat bebles on Android are amazing UI) but...

comment 10y ago · link · parent

The Pebble Core takes a SIM card

comment 10y ago · link · parent

Dynamic linking also lets you update libraries due to things like security issues, it's not just a memory thing. Kinda agree on the space thing too (plus much less chance for things like buffer overflows..)

comment 10y ago · link · parent

This is such a harmful comment, and perpetuates lies about the state of understanding of ADHD.

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

I don't think this works as well for adults. People with ADHD tend to calm down as they become adults (because of the whole "becoming an adult" thing), so the environment changes.

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.

comment 10y ago · link · parent

Right, and the companies can sue if they believe that the gag is no longer necessary. It provides a real legal argument for legal action, instead of nebulous moral arguments.

Rule of law can help as well as hinder.

comment 10y ago · link · parent

Yeah game boy might be a bad example. MSX? Or custom Commodore 64 cases (though that could be trickier because of the size)

comment 10y ago · link · parent

I think the interesting thing is that for small communities (Game Boy revitalisations?), there is a semi-cheap way to build certain plastic replacement parts/mod parts. Sure, the person who made the piece needs to be good, but everyone can profit.
1
154155156
225