HNHacker News
TopNewBestAskShowJobs

kunstmord

133 karma · joined April 27, 2014

submissionscomments
kunstmord··on Introducing Swift
Oh God, they just compared the speed of Objective C, Swift and... Python! It's nice to see Swift being faster than Objective C, etc., but what has Python got to do with coding native iOS/OS X apps? Of course it's going to fail at speed when compared to a static compiled language.

What a weird and pointless comparison, imo (I mean the inclusion of Python, seems so random to me).

kunstmord··on Apple WWDC 2014 Live Streaming
Except that DropBox is still cheaper, has a good app, stores file revision history, syncs across various operating systems. Dropbox always seemed to me to be a bit more sophisticated product than just "I want a backup in the Cloud" type thing, and I doubt anyone who's using it more than just a simple one-computer/one-OS backup system will leave. And I guess it gets most of its revenue from business accounts anyway?
kunstmord··on Python 3 can revive Python
> Newer programmers are not that impressed with either version of Python.

Any evidence? If it's personal experience, then mine is exactly the opposite.

I don't know if such a thing exists, but maybe a big list of the main changes would help convince people more (type annotations, yield from, the forthcoming @ operator). From what I've seen and read, of course all this is somewhere in the docs and release notes, but I've never seen a clean concise list of the main new features, fixes and reasons why these features are cool.

kunstmord··on Meet the algorithm that can learn “everything about anything”
Most of the Kaggle competitions (if not all) do not allow any use of external data, as far as I know.
kunstmord··on Kill The Hamburger Button
From my experience, scrollable tab bars can be nice – but that is if the user actually knows that the bar can be scrolled. For example, in VSCOcam (image editing app) I discovered that the tab bar can be swiped/scrolled after two months of using the app, by accident. After showing this to a few other people, I can say that most of them didn't know that either. The fact that the part of the tab that was displayed by default already seemed to have enough options/tools also played a role, I guess.

And in the Twitter, they have this thing that from the timeline you can swipe to "Discover", and it's only shown by a small set of "pagination" circles on top – there's no explicit mention of this, and the circles are kind of easy to miss.

kunstmord··on From Gmail to Fastmail
Never heard of FastMail before this post, and I'm considering switching now. I have a personal mail server, but it was a PITA to set up, and it probably needs AWS SES (since everything I send mostly ends up in people's spam folders), and there's always the possibility of the VPS going offline for some time.
kunstmord··on Poll: Where do you host your production environments?
He probably means this – http://arstechnica.com/security/2013/04/coldfusion-hack-used...
kunstmord··on Poll: Where do you host your production environments?
I guess every provider has its "horror story". Rackspace suffering outages, DigitalOcean closing a personal site (if I recall correctly) for some dubious reasons, AWS having problems with EBS-EC2 interaction (again, not entirely sure of the details).

I'm still considering Rackspace as an alternative.

kunstmord··on Poll: Where do you host your production environments?
Yeah, I know, I did everything as needed. The console showed that it was online, but I couldn't SSH into it or use the LISH web console to access it. I wrote to their support team, but at that point, I had already redone everything from scratch.
kunstmord··on Poll: Where do you host your production environments?
No, as far as I know, AWS is the only service that has GPU instances. Probably current demand is not yet high enough to justify the purchase and maintenance of such instances for other cloud providers. Even PiCloud (which runs on the AWS infrastructure) has no GPU instances.
kunstmord··on Poll: Where do you host your production environments?
Not exactly deployed yet, but it's going to be Linode for sure, perhaps with PiCloud for computation-intensive parts. I looked at AWS for a while, but seems overkill at the moment, besides, the AWS management panel and the pricing pages/simple calculator are not exactly user-friendly – and that might've influenced my decision a tad, having a simpler UI.

For personal and test projects, I use DigitalOcean – the lower price being the main reason.

Linode resizing seems a bit better, too – so for a big project which (hopefully) will need scaling, that's a plus. But I ran a Linode for two months before switching to DO, and tried to resize the disk image, and the whole thing went unresponsive, had to start from scratch (thankfully, no data was lost, I was just playing at that moment).

kunstmord··on 4 Things I Learned the Hard Way While Freelancing
I worked as a free-lance programmer 'on retainer' for a big project (I'd do work for them once a month or so). It's never too early to discuss what will happen when you want to quit. I didn't do that, and after being more and more bored with the work, less and less excited about the pay and the whole project, I still spent more time working for them than would have been deemed reasonable, because there was no way to cleanly break off this work relationship according to a predefined set of rules. It worked out OK in the end, but knowing that you can stop your free-lance work anytime you want (assuming you don't owe anything and the client doesn't owe you anything) and pursue other projects makes it a lot less stressful in some cases.
kunstmord··on Unicode in Python 3
Most libraries support Python 3 (http://py3readiness.org/). 3.4 added asyncio, 3.3 added the 'yield from'. Python 3 has a saner print statement, type annotations. I guess that it isn't that much, but I moved mostly due to the fact that a) the libraries I need support python3 anyway b) the stuff I write might need 'yield from' c) what if Python 3.x adds some awesome feature that you'll need, and by that time, you're stuck with a ton of code you need to convert?
kunstmord··on Why bad scientific code beats code following "best practices"
I've waded through a lot of legacy and current scientific code (and still do that sometimes).

The worst part (not taking into account the coding style per se) for me was the (sometimes) inability to reuse the code I've encountered or adapt it to other cases.

I think scientific advisors should make a point which goes something like "If you're serious about your work, you might find one day that someone else wants to use parts of your code, so take that into account when planning your program". In my experience, a lot of programs are written as quick-hack solutions, and then there is no time to rewrite them, they grow bigger and it just snowballs from there.

The way CS was taught to us (and we're a big university) was pretty bad. No coding style, no experience with CVS, nothing concerning planning before writing new code. In the end, a lot of people got the bare minimum amount of knowledge needed to code, and started doing research using that knowledge.

kunstmord··on PEP 3107 – Function Annotations in Python 3
As mentioned, PyCharm supports this – I found it very useful when writing large amounts of code, saves time when trying to remember what type which variable should be (sometimes it's not evident from the input variable names).

And this looks a tad easier to find and understand than the standard docstring variable types description.

kunstmord··on Scientific computing’s future: Can Haskell, Clojure, or Julia top Fortran?
I've dealt with a lot of legacy Fortran (and Pascal) code, and while the I agree with the article in that Fortran has to go, Haskell and Clojure seem VERY weird and pointless choices in the area of computing (see the comments on the ars website, a lot of valid points there). But the biggest problems that I've encountered in the Fortran code I dealt with were not exactly Fortran-related: 1) Terrible variable naming (aaa = eee / ccc + 1. and so on) 2) goto's, huge chunks of code with no structure (or, even worse, structured with goto's) 3) disregard for numeric accuracy and overflow/underflow

And this, imo, has more to do with the way CS is taught to scientists - I had a two-year course in C/C++, and we spent those two years writing all kinds of trees, lists and stuff like that. Needless to say, that is good and all, but that didn't exactly help us with writing scientific code later on - a lot of people wrote terrible code to get their AVL trees working, for example, just to get a passing grade. No one taught coding style, working with CVS, computer arithmetics and such. The same goes for the MATLAB course I took.

In my opinion, it would've been a lot wiser to teach people scientific computing using Python. It has tons of scientific libraries (a lot of people that I know who are involved in scientific computations often neglect to re-use code, use publicly available libraries; teaching people how to use third-party packages/libraries is important), forces programmers to indent (the amount of unindented C code I've dealth with makes me shudder), and makes them realize what makes a program fast or slow. Besides, using Numba/Cython/Theano/multiprocessing), it is possible to give a more or less painless introduction to the world of parallel/optimized computing. And only then start teaching C/C++/OpenMP/MPI/Fortran.

Now, I'm judging from my personal experience and from what I've seen at my university (which is the second-biggest research university in the country), there's a huge difference between how CS is taught to CS students and science students (physics, mechanics). The knowledge that science students receive is subpar, and, unfortunately, enough to start writing computational code.

kunstmord··on Swarm: Foursquare's ambitious plan to split its app in two
By no means am I going to say that what I write is true for the majority of 4sq users, but I and most of my friends use it to mostly keep track of visits abroad and occasionally search for a restaurant/bar/new place to check out. So splitting these features into two apps is not something I'd enjoy too much.
← PreviousPage 2 of 2