Hacker Newsnew | past | comments | ask | show | jobs | submit | akama's commentslogin

This is actually one of the nice features about OCaml that comes in handy when you have a function that takes two arguments of the same type but don't necessarily need to make a whole new type for each of them. They are called Labelled Arguments [0] and when you call the function, the label has to be the same. I've found that using it can clean up code because it ensures that variables share the name across the codebase as well as making sure arguments don't get mixed up.

[0]: https://ocaml.org/docs/labels


ReasonML is also a strong contender. Facebook's Messenger website is written in ReasonML [0] and compiling ReasonML for server work is pretty good. You can share a lot between the two codebases. People even write desktop applications using it, checkout Revery [1]. The applications that it produces are so fast, they are a delight to use. It's also very compatible with OCaml so you can get advantages from that ecosystem as well.

[0] https://twitter.com/jordwalke/status/1177373197517221888?s=2... [1] https://github.com/revery-ui/revery


Hi, I'm actually one of the people who wrote this. That's exactly correct.


I'm one of the people who made this. This was actually a hackathon project so we didn't use the analog input and instead faked the keyboard presses to the emulator.


Figured it was something like that. Sounds like a lot got lost in translation…


This is very similar to something I've been looking to find for a while. I have a large screen in my living room and I would love to stream/view 1080p video from scenic locations (top of a mountain, overlooking plains, a beach). I've read about the concept in several scifi novels but I've never found good footage to use. If anyone has suggestions, I would love to hear them. A good example is the live stream from the ISS [1] which atm is pointed toward the station but has been pointed towards the earth directly in the past.

[1] http://www.ustream.tv/channel/live-iss-stream


Just use any David Attenborough documentary. There are several focused on different things depending on what you want


This is actually my experience as well. I've stayed in Airbnb ~5 times and had 3 of them be awful. 2 of those 3 just didn't have apartments for us when we showed up and the last one had the power/water get cut for not paying bills. Airbnb's customer support is very slow and is radically different based on what agent you are talking to. In addition, Airbnb appears to have a problem keeping customer service records. I've called and had a discussion with customer service and then called back ten days later and they had no record of the first call and refused to believe it happened.

I've been a guest and a host for airbnb but I have been treated awfully by airbnb which is sad because I like the service and the past two years I have spent 80+ nights in hotels/airbnbs.


Hi, I'm one of the people who worked on some of the data visualization for this story. The people behind this worked very hard and did an excellent job. I would also like to point out, this is why police transparency is very important in modern society.


The outside blue field on the pie chart has no title when you hover over it (purchases under $5000).

And having the text be upside down for half of the chart is pretty bad (another way to do it: http://media.treehugger.com/assets/images/2015/07/pie-chart-...)

This comment is meant in good faith, it's an important story and topic and visualizing the impact is very useful. I appreciate the work that went into it.

edit: I just noticed you can click on the fields, very cool!


Thanks for the suggestions, I didn't think about flipping the text for that half of the chart but that's a good idea. I'm not sure about the blank label but I'll look into that.


This is very interesting. This is actually an area that I spent great deal of time doing academic research in and I even looked into building something very similar to this. While it's possible in some sense, I'm not sure the technology is there yet for a full product to be delivered to consumers. I remain skeptical but am excited to follow this. I would like to see more details about a couple different pieces of the hardware & software they are using. I would also be interested in the people behind this, as there are several researchers work in this area that I would be significantly more inclined to have faith in.


The primary example that he might be referring to is this one [1]. It's someone reporting on their experience connecting to an ethernet port in his tesla and getting a call from Tesla to please stop.

http://jalopnik.com/the-tesla-model-s-is-basically-a-good-lo...


More like "getting a call from Tesla to stop and then getting the port disabled".


Fun! At least it sounds like they were nice about it.


Nice about telling you how you could use the car you purchased from them in what universe is this reasonable.


I don't see that they told him anything, they just asked.


They remotely disabled the port, that isn't asking.


They remotely disabled the port? I can't see anything in the article to suggest that…where did you read this?


To clarify, they disabled it for everyone in a software update[1]. Some comments made it appear they just disabled it for this guy due to his hacking, but it was for everyone.

[1] https://teslamotorsclub.com/tmc/posts/691884/


They shouldn't even know that he plugged anything into the ethernet port, let alone have a problem with that and ask him to stop... It's his car!


He could have disconnected the car from the internet before he started fiddling around if he wanted to hide his activities. The car makes no secret of the fact that it's always connected.


He didn't want to hide his activities, and shouldn't have to. They shouldn't be able to watch.


I would guess you are correct about how they make sure your hands are on the wheel. I've done some car hacking and one of the things that surprised me was how sensitive some cars steering wheels are to pressure. It was impossible to keep it in the same position according to the car's internal electronic systems with my hands on it. This is car is 4 years old, so it's probably only gotten more sensitive.


I have a Tesla, that also requires hands on the wheel from time to time. I'd assumed it was capacitive. It hadn't occurred to me that it might be subtle movements, because the wheel is unresponsive until you make a purposeful movement, at which point it starts moving with your hands; and you can just rest your hands against it lightly to let it know they're there. But of course it could be sensing subtle forces, even if it switching modes only on larger forces.

Is there a test for whether it's capacitive? Like, does the fact that it works with gloves on mean it's not capacitive? (That's diagnostic for capacitive touch screens, but they're smaller and trying to detect finer motion and from just the fingers.)


According to this article, Tesla's system is not capacitive : http://www.wired.com/2015/10/tesla-self-driving-over-air-upd...

One interesting thing to try, still, would be to stuff a full water bottle into the gaps in the steering wheel to emulate a hand, like so: https://www.youtube.com/watch?v=qi2oIRMwmZY

This definitely works for many capacitive systems, but I think this might also work for some of the movement-based systems, since it will add extra mass/inertia to the wheel and the water sloshing around could emulate small hand movements.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: