Better HN
topnewbestaskshowjobs
Log inSign up

localhost

2,512 karma · joined Apr 30, 2011 (15y ago) · 551 submissions

I work on making Python more awesome across the company, now including Excel!

My alias is jflam (at the company I work for).

Submissions

451.

She Had Stage 4 Lung Cancer, and a Mountain to Climb(nytimes.com ↗)

2 points · by localhost · 7y ago · discuss

comment 7y ago · link · parent

+1. Motivation is perhaps the most important aspect of teaching. I find that lectures are a terrible medium for teaching a concept; I find that I need time for quiet contemplation / practice / experimentation to truly understand something. However, lectures are fantastic for motivation and encouraging me to do the extra work on my own.

I've been reading (along with my kids) Ben Orlin's Math with Bad Drawings book which is great at motivating and presenting math in interesting ways that are all about presenting things as an interesting puzzle to be solved vs. the way much of math is presented in a rote "this is the algorithm / solution" way.

https://books.google.com/books/about/Math_with_Bad_Drawings....

comment 7y ago · link · parent

It seems like this is a case where the autopilot thought that the truck was a stationary object. Based on my reading of the press release, it seemed like the truck was turning across the car's path, which should look like a stationary "bridge" to the model and subsequently ignored.

This seems to be a hard problem where you don't want the model to false positive on a stationary object on the side of the road and slam on the brakes.

comment 7y ago · link · parent

Thanks for the kind words!

I'm currently thinking about a model of notebooks / interactive programming where the default assumption is that you're using it as a scratchpad, i.e., you won't need to explicitly name the file in order to get the benefits of auto-save, but yet the file won't pollute your filesystem / project namespace until you choose to "keep" it. Hopefully this helps reduce the friction in the exploratory programming realm; my goal is to eliminate the "ConsoleApplicationX" directories (I'm a VS guy from way back so ...) and I think it helps with your scenario 1) above.

The Python VS Code extension team is well aware of the gaps that you list as well, and are working hard to narrow them with each release. We are definitely serious about improving the Python experience in VS Code. How times have changed :)

Thanks for the support and encouragement. And as always, if you find issues that aren't already in our github, feel free to add some more and keep the feedback coming!

comment 7y ago · link · parent

Yay for less electrons! We're also using nteract for a future release of Azure Notebooks, and we're already using nteract in the VS Code extension. BTW, by nteract I mean nteract as a suite of components for building Jupyter things vs. nteract the electron app. We recently hired the awesome Safia Abdalla to help us contribute back to the nteract community and things have been going great!

comment 7y ago · link · parent

While I generally agree with everything you say for a particular audience, i.e., someone who is writing something to explain an idea to someone else, I think that at the same time this scoping limits the utility of Jupyter too much.

I believe that there is an audience for Jupyter beyond just "data scientist", or "teacher". I think that what Jupyter encourages is _experimentation_, and there are lots of folks who could benefit by using Jupyter to experiment with ideas. If you consider programmer as another audience, we all at different points in time experiment with things. Think about all of those random console applications that we've all created at one point or another to learn a new API, or to try out an idea. Jupyter can (and does) excel in these scenarios and handles the mundane task of "writing things down". This is why adding a Jupyter experience to a text editor is something that we're experimenting with as well.

comment 7y ago · link · parent

I totally agree with your sentiment. However, I also think that the popularity of Jupyter is largely due to the fact that it does appeal to a certain type of user.

I do believe that we have room for more than one option. The work that we've done in interactive programming in the Python VS Code extension is one possible approach that folks have seemed to like, and that aligns with what you're saying.

We're going to continue to explore that direction in addition to the Jupyter work that we're doing. Stay tuned!

comment 7y ago · link · parent

Something to be aware of (and a general comment about k8s in general) is that k8s is not suitable for use in hostile multi-tenant scenarios like the one that you're describing. Once an attacker escapes from the container (see HN archives for lots of examples of this), they can p0wn the entire cluster. Jessie Frazelle has a great post on this: https://blog.jessfraz.com/post/hard-multi-tenancy-in-kuberne...

There are expensive ways to deal with this today, e.g., running each user isolated in a separate VM. Hopefully we will have better solutions in the near future.

comment 7y ago · link · parent

Thanks for the kind words! If you find things that you would like to see improved, please do open an issue on our Github - https://github.com/Microsoft/vscode-python/issues.

We also need to work in the discoverability of this feature too. Lots of existing users of our extension had no idea it was there ... suggestions welcome!

comment 7y ago · link · parent

What specifically do you hate about Jupyter? Is it out of order execution exacerbating the "hidden state" problem? If so, and if you already use VS Code, I encourage you to try out our Python VS Code extension. We have an "Interactive Python Window" mode https://code.visualstudio.com/docs/python/jupyter-support that we showed a lot of folks at pycon last week and even among the "I don't like Jupyter" crowd, it was quite well received. The key thing about our experience is that it is an editor focused interactive programming experience vs. trying to just replicate Jupyter functionality in an editor (though we are also doing work here because we believe that folks want an experience where they can move seamlessly back and forth between and editor and a notebook experience).

Disclaimer: I designed this experience in VS Code.

comment 7y ago · link · parent

The R community has built an incredible competing tool in RStudio and RMarkdown. You could argue that the progress of Jupyter is being held back by its ties to JSON as the serialization format for notebooks (which enables, among other things, the ability to serialize notebook execution output into the .ipynb vs. RMarkdown which does not).

So the fairer comparison would be to compare .rmd vs. .ipynb instead of looking at the kernelspecs in .ipynbs to see the distribution of R users. In my experience (I own the Azure Notebooks service at Microsoft), I see very little R usage - in the order of 1% of Python, similar to what other commenters on this thread have seen.

comment 7y ago · link · parent

Thanks! I'll definitely chat with the VS Code folks about whether we can have a unified solution to the notification problem.

Would you mind opening a set of Github issues so that we can get your suggestions onto our backlog? https://github.com/Microsoft/vscode-python/issues

Interesting that you would like to have the extension run in more than one language. What other languages do you use regularly where you'd get a benefit from the interactive window?

Thx!

comment 7y ago · link · parent

Thanks for taking the time to write down your thoughts! What are some of the use cases where you find the interactive window superior to Jupyter? Do you use Jupyter as a complement or a replacement to VS Code?

Sorry about the annoying behavior! Some of this is clearly our fault, and I've asked the team to come by and respond to this. I've also added this to the list of things to chat with the VS Code team about as well.

Disclaimer: I originally came up with the idea for the interactive window based on the design constraints of VS Code, but the team that is currently working on this deserves all the credit for building and extending the original idea.

comment 7y ago · link · parent

At the tail end of Karpathy's presentation, he said something that reminded me of why Peter Norvig decided to join Google: because that's where the data is. In Tesla's case, they have a unique and likely accelerating advantage in having the best source of data up on which to train their models. I think this forms the basis of an enduring moat relative to their other competitors, none of which are collecting data at the same scale.

comment 7y ago · link · parent

During school summer holidays back in the day at Richvale Telecommunications, I and a few of my friends there, including a guy named Troy Hacker (not making this up!) spent most of a summer reverse engineering the "OS" for the 4040 and 8050 disk drives.

The 6504/6502 pairing in the drive with the 6504 handling disk controller operations and the 6502 handling IEEE 488 bus communications was ... interesting. Especially later on when Commodore created the 1541, where they emulated the functionality of the original 4040 design by doing everything via software on a single 6502, including the GCR decoding step which was handled by a dedicated ROM in the 4040 - all presumably to drive down the cost of the drive.

Since we didn't have a memory map of the drive (and certainly no easy way to debug code running on it) we had to read the boot code to figure out what it did and construct our own memory map from that. I still remember the moment when my 13 year old self realized that the code I was reading was blinking the drive LED lights as part of the POST test and then figuring out what the different error codes that I had never seen before were. Good times.

comment 7y ago · link · parent

I've been doing this using an Apple Watch, and have been for the past 3 months or so. I documented it in this tweet: https://twitter.com/john_lam/status/1074527089569615872

Note that I'm paying more to have this experience, but it's been totally worth it. So far I've been quite happy with it. It's amazing how, in the odd times where I've needed to carry my phone with me, how I instantly reverted to my former (bad) habits.

It's a form of commitment device and it's been very effective for me.

comment 7y ago · link · parent

Sure, but those pilots knew they were flying that kind of aerodynamically unstable airplane ahead of time. These pilots apparently were thinking "this is just a 737".

comment 7y ago · link · parent

TMUS is $57BB market cap. Say $100BB for the premium. Not sure why there would be antitrust considerations here. AAPL does not have a monopoly on phones, watches or pretty much anything else. That's a key advantage of them being a premium brand with relatively small share.

comment 7y ago · link · parent

Really love this idea. $237BB in their piggy bank according to their most recent 10K. Since the era of carrier subsidies is more or less over in North America, this might accelerate their transition into services company in a major way.

comment 7y ago · link · parent

"Deep Learning to solve Challenging Problems" by Jeff Dean https://www.youtube.com/watch?v=3jzi3cvCde4

I'll watch Jeff Dean talk about pretty much anything, and his keynote "stump speeches" are more or less a greatest hits compilation of recent stuff from Google Brain.

comment 7y ago · link · parent

Good for you! I've recently gone on a journey to eliminate smartphones from my life. I'm now on day 11 and counting and couldn't be happier: https://twitter.com/john_lam/status/1074527089569615872

comment 8y ago · link · parent

Dan, "Fake Steve Jobs" Lyons also worked as a consultant for Silicon Valley.

comment 8y ago · link · parent

I've been on the lookout for a lightweight blog engine for a while. This looks really nice!

Some suggestions for you:

- You might want to include a direct link to your sample editing experience from the page linked to above. I found it on your Github.

- I think it's really important to support "import image from clipboard" - much like what Twitter does, for example. This is huge for usability, especially for folks who don't want to / don't understand how to embed images into blog posts.

474.

Sizing Up the 2018 Blue Wave(nytimes.com ↗)

2 points · by localhost · 8y ago · discuss

comment 8y ago · link · parent

For the folks commenting below that we should bring the manufacturing back to the US, why wouldn't the bad guys just start bribing American workers to insert the attack hardware into devices made here?

It's not like Americans are somehow above being bribed.

comment 8y ago · link · parent

I use this: https://marketplace.visualstudio.com/items?itemName=vscodevi...

You can also have it use neovim as the backend as well: https://marketplace.visualstudio.com/items?itemName=vscodevi...

comment 8y ago · link · parent

We had one of these in Bryan Jones' laboratory in the Chemistry Department at the University of Toronto. We also had the 3D polarized shutter-based glasses as well - it was cool to see small molecules docking into active sites of enzymes right in front of your face. Of course, none of that stuff amounted to anything, and in hindsight it was a gigantic waste of money.

In my lab, we only had one of the SGI Indy machines - it was fun surfing the web on the original NCSA Mosaic browser on that pizza box machine.

comment 8y ago · link · parent

Wow! I had no idea he did this. I did something similar, but unlike Steve's interpreter, I used BRK instructions as prefixes to my pseudo-ops. This let me mix straight 6502 assembly with my pseudo-ops without switching between different modes. I wish I could find the code that I wrote for that ... probably in a printout in a box somewhere.

comment 8y ago · link · parent

I wonder if moving to a different file format for compilation might minimize the impact of this? For example, what if source code were stored as a single SQLite file? What impact would that have?

comment 8y ago · link · parent

There are quite a few parts in the Model S that come from suppliers. The steering wheel, window / mirror controls all appear to come from the same folks that supply Mercedes. I don't know where the parts for the Model 3 come from - the steering wheel and window / mirror controls are definitely different.
1
1516171819