HNHacker News
TopNewBestAskShowJobs

bthornbury

422 karma · joined October 16, 2013

https://github.com/brthor https://www.youtube.com/channel/UC4mmZUMvTNzzz2sS_tgbKVQ
submissionscomments
bthornbury··on Software Developers Should Have Sysadmin Experience
With the rise of devops (docker, puppet, ansible, etc...) , and cloud VMs, how often are sysadmins different from software devs?
bthornbury··on Operational calculus on programming spaces and generalized tensor networks
Going to check out the opencourseware (https://ocw.mit.edu/courses/mathematics/18-950-differential-...)

Thanks for the pointer

bthornbury··on Operational calculus on programming spaces and generalized tensor networks
This looks extremely interesting, but I find many of the terms difficult to map to a mental concept. Does anyone know good background material (books, other papers, blogs)?
bthornbury··on What is difference between memoization and dynamic programming?
May have just been the text book I had, but I always had an easier time understanding dynamic programming implemented with memoization rather than tabulation.

Given a well-implemented hash-table, the performance differences generally seemed negligible as well. I didn't understand why it wasn't taught this way to begin with.

This stackoverflow answer only gives vague statements about how tabulation may be more performant than memoization, recursion overhead can generally be avoided with an iterative implementation (not always easy). Does anyone have concrete examples of when tabulation would be preferred?

bthornbury··on StackOverflow Importer – Import code from Stack Overflow as Python modules
I was thinking the same thing about the freeze.

Something like the equivalent of `pip freeze`

bthornbury··on StackOverflow Importer – Import code from Stack Overflow as Python modules
This is a pretty cool idea! Concerns for running unknown code aside, it seems like the results of this type of thing would be prone to potentially frequent change.

I wonder if there'd be a way to maintain consistency, something like a requirements.txt file that got spit out to describe what the results of the search terms mapped to when the code was run.

It could just contain the search term and link to the chosen question. Although you'd still run the risk of the answer itself being edited. The code itself would have to be cached in whatever this file was.

bthornbury··on Changing Python lambda syntax at runtime
> Python is designed with the express purpose of making writing horrible code at lest a little bit harder to do.

This will of course depend on your definition of "horrible code" but in general I don't agree with this. From the standpoint of horrible code being non-readable there exists many constructs in python that don't lend themselves to readable code despite being very useful and expressive. Not that an experienced practitioner cannot invent patterns to make these constructs as readable as possible (list comprehensions are top of mind here).

I think the key here is for the practitioner to invent the patterns that make constructs like macros usable. In the right contexts, they're incredibly powerful and can increase the productivity of an individual, and when used right even a whole team.

> The point here is that if a language feature is mostly known for it's negative effects, maybe it's not a good feature?

I would counter that it's likely not a feature for beginners, rather than being a bad feature.

bthornbury··on Changing Python lambda syntax at runtime
I agree in it's current state it's more of a novelty than something intended for serious use. (Imagine debugging someone else's code with source rewriting 0_0) Especially with the discrepancy you pointed out with tuple comparison.

I think that it could get to a state where if the debugging was figured out, and the abstractions/usability became nicer that it could be have some serious use though. Mostly the intention with this was to get something working, that can be iterated on if it makes sense.

bthornbury··on Changing Python lambda syntax at runtime
Wow, that's a pretty neat project, going to take a deeper look
bthornbury··on Changing Python lambda syntax at runtime
Yeah this is awesome. Using an AST is certainly much better than a regex for rewriting the code, and it looks like this has the usability thought out.

Thanks for the link.

bthornbury··on Changing Python lambda syntax at runtime
This is somewhat against the zen of python, but then again "Beautiful is better than ugly." :)
bthornbury··on Changing Python lambda syntax at runtime
I can't say I'm familiar with lisp, but I have had long conversations about it with a few friends who are enthusiastic about it's use.

I thought of lisp after making this and thought it would be nice to build some python abstractions that can make this feel a little more usable. For the moment it does seem challenging, and I agree it will likely never be as simple as lisp.

bthornbury··on Changing Python lambda syntax at runtime
Github seemed like an easy place to put the markdown.

I didn't see a real benefit to sticking it somewhere else, why do you think that is more desirable?

bthornbury··on Paul's Online Math Notes
These are the best online math notes around. I used them as a textbook replacement for many math classes in college (from Diff EQ to Triple Integrals) and never had a time where it didn't cover something I needed.

Really great resource here.

bthornbury··on A native Python IDE built for data science
I am curious about this as well.

Taking a look at the source (https://github.com/yhat/rodeo) it appears to be in all python.

I was under the (perhaps mistaken) impression that native referred to code which compiled to assembly.

bthornbury··on Conceptual Debt Is Worse Than Technical Debt
Throw path in there for good measure. Often times I see path in code and have no idea if it's expected to be a directory, file, relative path, etc...
bthornbury··on Megaprocessor
Fantastic work, this is an amazing project. I think myself and every other Cs / electrical eng student has dreamed of this at one time or another. It's a gigantic undertaking though and it's exciting to see it done.

The implications for teaching are great too. Having this physical reference would really cut the learning curve in computer architecture.

bthornbury··on Hack4Detroit's indemnification clause
Typically a release form is about it. This is someone trying to take advantage of innovators.
bthornbury··on Hack4Detroit's indemnification clause
You had to pay $20 and then you find the tranfer of IP to the city reasonable? I understand these things aren't cheap to run, but there's no shortage of sponsors looking to get involved for various reasons.

Paying to make software for someone else seems entirely unreasonable and in bad taste in the organizers part.

bthornbury··on Snowden Document Search
Security by obscurity is great until it isnt. It's largely impractical for long term data security.

I don't understand why you'd say that is group think.

bthornbury··on The Story of Microsoft's Minecraft Buyout
Yeah 120 ties is probably about right then. I can't imagine learning all of that by trial and error. They probably settled in some terrible places too, which makes everything harder.
bthornbury··on Ask HN: My free app has gone slighty viral – looking for ideas to monetize it
I have very similar install numbers to your app on one of mine and I have had excellent monetization off a single banner ad across the bottom.

It reduces the usable screen area by only a little and is hardly intrusive to the experience.

bthornbury··on The Story of Microsoft's Minecraft Buyout
Sounds like that player had a lot of FUN.

But in all seriousness, getting to a point where the game is playable takes 2 or 3 failed games at worst (assuming you do some reading). The game just continues to offer complexity you can explore.

bthornbury··on How Enums Spread Disease – And How to Cure It (2012)
This is a good look at the dangers of diffusing semantic knowledge in general. His approach is much more true to OOP paradigms.

In Java, you can take this a stop further, and use enums basically as enumerated instances of a class. Example:

public enum Stuff { Stuff1(param1), Stuff2(param2);

    private Object param;
    private Stuff(Object param){
        this.param = param;
    }

    public getParam(){
        return this.param;
    }
}

Now you can call Stuff1.getParam();

bthornbury··on Government planes mimic cellphone towers to collect user data
If government planes are able to mimic industry cell phone towers, I can only assume hackers can do it too.

I'll be paranoid every time my 4G slows down for no reason now.

bthornbury··on 0h h1 – A little logic game
I have to agree with (a) here. Upon reaching the end of a 6x6, as far as I could tell no rules were broken, yet the solution was not valid.

I'm wondering if multiple solutions can exist and the game will only accept one.

bthornbury··on New Uber Funding Round Could Value the Company at $25B
This is difficult to say, and (in my opinion) largely depends on the price of self-driving cars.

If Self-driving cars become available but are unaffordable (due to very expensive equipment onboard), Uber will be in an excellent position to make an investment in these cars where the average taxpayer will not.

Uber will then be rid of it's largest cost, human drivers. They will have the dispatch system in place to organize their self-driving vehicles and will be able to offer their service at an incredibly low price compared to the price of buying a self-driving car. Uber looks at a massive upside.

If self-driving cars are offered affordably, Uber can still offer it's services way cheaper and nothing changes on the consumer side. People still have cars. Theoretically, the demand for their service would still increase.

bthornbury··on Advertisers scramble as ‘non-human traffic’ eats up online budgets
I've wondered about this before if advertising was just designed to be a big negative sum game for advertisers.

Interestingly if these same bots were capable of making real purchases and were run by ad companies this behavior may be sustainable because some people are making money. Almost like wall street.

bthornbury··on Amazon Echo
This is so cool. It feels like the future, especially if it has the capability to control other devices in the home.

I think you could do some really exciting stuff with an SDK or an API. Even just the ability to tie actions to custom grammars would open it up for some cool hacks.

Really disappointed that privacy isn't even touched on. This thing will be listening to everything you say 24/7 and its not like you know who won't have free access to that data. For that reason I don't think I could ever buy it.

bthornbury··on Reflected File Download: A New Web Attack Vector
I think the point of this exploit is that the download does not need to feel random from the user perspective.

A user can be prompted to update flash or chrome itself and then be served a (somewhat) legitimate looking file from the respective website.

← PreviousPage 5 of 7Next →