HNHacker News
TopNewBestAskShowJobs

jballanc

9,437 karma · joined November 23, 2008

I'm just a guy with some ideas...programming lets me do something with them.

Get in touch! jballanc@gmail.com https://github.com/jballanc

[ my public key: https://keybase.io/jballanc; my proof: https://keybase.io/jballanc/sigs/pxb6FPsVF9hoQMyb2ap0euWoNG3YxwN2g4VY94RRxX8 ]

submissionscomments
jballanc··on Zenzizenzizenzic
SMILES is usable for any molecule (i.e. any compound with covalent bonds; crystals are generally not considered molecules), though it's most common use is for organic molecules. Parens indicate branching, and cycles are conceptually treated as branches that revisit the same atom twice.
jballanc··on Zenzizenzizenzic
Meh...it's more of a relic of a weird transition point when chemists had the tools to discover complete structures but didn't have the tools to communicate them robustly other than "in words". These days most non-trivial chemicals are described using their "common name" (e.g. Cholesterol), and if you need a robust way of communicating structure there's SMILES (e.g. C[C@H](CCCC(C)C)[C@H]1CC[C@@H]2[C@@]1(CC[C@H]3[C@H]2CC=C4[C@@]3(CC[C@@H](C4)O)C)C for Cholesterol).

Almost no one will attempt to parse SMILES for non-trivial molecules by hand, but almost every computational package can easily parse them.

jballanc··on Zenzizenzizenzic
I see you've never had to deal with IUPAC systemic naming? For example paracetamol's systemic name is N-(4-hydroxyphenyl)-Acetamide. Cholesterol's is 2,15-dimethyl-14-(1,5-dimethylhexyl)tetracyclo[8.7.0.02,7.011,15]heptadec-7-en-5-ol.
jballanc··on Programming Language Rankings: June 2016
The difference between structural typing and behavioral typing is subtle. In Scala, you're essentially asking the type system to check for the presence of a member function on the object with a specific type signature. Since the function is contained within the object, you're still only typing based on the object's structure (hence: structural typing).

In Julia, objects are data-only and methods are defined at a module level. So, whereas Scala's structural typing need only introspect the object being passed as an argument, Julia's behavioral typing requires introspection of the entire dispatch tree. The benefit to behavior typing and Julia's multi-dispatch is that if you are missing one or two methods for some type in order to be able to use it in some function, you can always define the missing methods locally.

jballanc··on Programming Language Rankings: June 2016
Up until now it's been the realm of PL research. The Ptolemy language is one example I know of: http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.86.... [PDF]

If you're familiar with duck typing, behavioral typing is (in essence) the reification of duck typing in a concrete type system. In other words, instead of specifying the type of your argument as "Array", you could specify "some type that is indexable, iterable, and can be appended to".

In Julia (mind you this was just the idea I saw being considered), today you would do:

    function foo(myarray::AbstractArray)
      ...
    end
but in the future you might be able to do something like:

    function foo(myarray::ANY{getindex(), setindex(), iterate(), append()})
      ...
    end
what's really neat, though, is combining this with type aliases, you could have:

    typealias Arraylike ANY{getindex(), setindex(), iterate(), append()}
    function foo(myarray::Arraylike)
      ...
    end
jballanc··on Programming Language Rankings: June 2016
Yes. Module pre-compilation is already possible, and last I heard there is work underway to use the same sort of mechanism to allow for single-executable compilation. The problem, of course, is that Julia and Go are very different beasts, and pre-compilation will almost certainly limit some of the currently available dynamism. (Already there are packages that cannot be pre-compiled due to these limitations.)

Of course, in this regard Julia is not any different than Python, Ruby, JS, PHP, etc. Also, it's worth noting that Julia has cluster-computing as a concept baked into the language. So, whereas you might need to worry about distributing Go executables to multiple machines in a cluster, with Julia you need only have the Julia runtime installed, and from there any Julia program can distribute itself to any available nodes without further action required.

jballanc··on Programming Language Rankings: June 2016
The thing about Julia is that it's playing a whole different ballgame than pretty much every other popular language today...it's just that most people don't realize it yet! The work and design that's gone into Julia's type system and multiple dispatch has the potential to be a real game-changer, but outside of a core community putting it to good use, I don't think it's potential has been fully realized.

This is also why I'm excited by what's coming next in v2.0. Some of the early ideas being explored at JuliaCon with respect to traits and interfaces will begin to really shine a spotlight on its true power.

jballanc··on Programming Language Rankings: June 2016
I think there's a general misconception that Julia is a DS/scientific programming focused language. It just so happens that these are areas where its advantages are most apparent, and give the biggest early wins. Given enough time, though, I think the paradigms that Julia is exploring will make it a killer general-purpose language.

As for Julia 2.0, it was decided to put off implementation of traits and interfaces until then. That said, some of the ideas that were being bounced around during the post-con Hack day in these areas are really exciting. In short: Julia may be the first language to pull off behavioral typing in a practically usable way.

jballanc··on Programming Language Rankings: June 2016
TIOBE is much more about general computing/IT, evidenced by the relatively high ranking of things like COBOL and Transact-SQL. RedMonk, in contrast, seems more focused on pure programing (or, you might even say, the "hacker" community).
jballanc··on Programming Language Rankings: June 2016
Hmm...I wish they had taken a bit more time to dig into the situation with Julia than simply to note it moved from position 51 to 52 on the ranking (is that even a significant shift?). Having just come from giving a presentation at this year's JuliaCon, I am more optimistic about Julia's future than at any point in the past. I think what we're seeing here is that Julia is making a concerted push toward v1.0. It was announced at JuliaCon 2016 that they are targeting JuliaCon 2017 for the v1.0 release. It should be expected, then, that the break-neck pace of innovation has taken a back seat to a focus on stability, but based on what is already on the roadmap for Julia v2.0, I don't see Julia moving anywhere but up.

(Also, I think the comparison to CoffeeScript is rather unfortunate. In my mind, CoffeeScript was primarily addressing shortcomings in JS that JS has, since, done quite a bit to rectify. Julia is not trying to be a better "X", so there's no "X" to steal away its momentum.)

jballanc··on Hammerspoon – Powerful automation of OS X with Lua
Saw "OS X", "Lua", and "automation" and immediately assumed Steven Degutis was behind this...lo-and-behold: https://github.com/Hammerspoon/hammerspoon/blob/master/CREDI...

Awesome work! (And if you haven't already, check out some of Steven's other projects. Very fun/interesting code.)

jballanc··on Tripadvisor now lets users rate flights like hotels
Agree completely, especially since it's not always readily obvious which airports are better than others if you're not already familiar with them. For example, in Chicago O'Hare is much larger and busier than Midway, but O'Hare hasn't seen any updates in almost 30 years. Though smaller, the facilities at Midway are much nicer.
jballanc··on Tripadvisor now lets users rate flights like hotels
Do you fly primarily in the US? Because I have noticed that most US airlines seem to be in a race to the bottom, but this is not the trend worldwide. I fly both Lufthansa and Turkish relatively frequently and everything about the experience with them, from the airports, to the customer service, to the food, is head-and-shoulders above every major US airline.
jballanc··on Hacker News' “Who is Hiring?” thread, part 2, remote and locations
Unfortunately I'm woefully behind on blogging, and there's a number of programming topics that are higher on the list than anything like that. In short, though, Turkey is a great place with friendly people, breathtakingly-amazing food, and lots to see and do. I work remotely, and English is the lingua franca of everyone I work with, though I have managed to learn enough Turkish to get around at home.
jballanc··on Hacker News' “Who is Hiring?” thread, part 2, remote and locations
One additional reason that I've observed to add to the list:

* Declining dominance of the Microsoft/Oracle hegemony in secondary markets

During the '90s Microsoft and Oracle were particularly effective at entering emerging markets and pushing their solutions to such a degree that "computer programmer" became synonymous with "Microsoft/Oracle developer". Thus, if you wanted to become a software developer in one of these markets, it meant learning C#/Java, along with all the ecosystem, tooling, and inevitably...lock-in.

Fast-forward 20 or so years, and the Open Source movement is finally beginning to crack that shell of lock-in. Anecdotally, when I first moved to Turkey 4 years ago, technology job sites almost exclusively listed C#/Java positions. Today, I know many Python, Ruby, Scala, Go, etc. developers living and working in Turkey, and there's been an explosion of related conferences, trainings, events, etc.

The one last hurdle I see that needs to be overcome in these places is the notion that developer education is as much a concern for those that employ developers as for the developers themselves. Pretty much all of the conferences/trainings have to be held over weekends because it is still difficult for developers to get time off during the week to attend. Once that bit of cultural shift happens, I only foresee this trend accelerating.

jballanc··on Happy ManhattanHenge
I always find it funny that the summer ManhattanHenges (there are two, one as the sun's inclination increases and one as it decreases) are so celebrated, yet the winter versions of the phenomena (when the sun lines up with the city grid at sunrise) are ignored. As someone who used to have to drive uphill along one of Manhattan's streets during my winter morning commute, they were far more noticeable/annoying.
jballanc··on Russia Jumps into the Race to Build a Hyperloop
Sure, integration is usually the hard part, but that's engineering for ya'. The point is that there's no new science at play. In other words, this is less like going from horse-and-buggy to the moon, and more like going from the Model T to F1.

Edit: Though it's worth noting that both those transitions were achieved in less time than since the original NYC pneumatic tubes and now.

jballanc··on Russia Jumps into the Race to Build a Hyperloop
How about a demonstration system spanning the island of Manhattan: https://en.wikipedia.org/wiki/Pneumatic_tube_mail_in_New_Yor...

The thing about hyperloop is that none of the technology is new...or even recent! The pneumatic mail system in NYC was in use between 1897 and 1953. What's new is that in the 1950s the energy economics made it cheaper to replace pneumatic tubes with automobiles. Fast forward 60 years and the energy economy has been turned on its head, thus hyperloop.

jballanc··on Why Feynman Diagrams Are So Important
Well for one thing without them we wouldn't have Penguin diagrams! (https://en.wikipedia.org/wiki/Penguin_diagram)
jballanc··on Nuclear Plant Accidents: Sodium Reactor Experiment
I find various accounts of nuclear accidents fascinating because, as the intro of the article alludes to, they often involve complex systems undergoing complex failure scenarios.

Then there's SL-1 (https://en.wikipedia.org/wiki/SL-1). That was a really stupidly simple failure, but of all the accidents I've read about I find it the most poignant reminder of why nuclear reactors are such complex systems in the first place.

jballanc··on I tried to watch Game of Thrones legally in France, Here is what happened
Probably the most popular of the historical-fiction variety are "Muhteşem Yüzyıl" and its spin-off "Muhteşem Yüzyıl: Kösem". "Behzat Ç." is a pretty good police drama. The one that really sort of kicked off the modern renaissance of Turkish dramas, though, is "Aşk-ı Memnu", which is a modernized take on a famous 19th century Turkish novel. Many of the actors from that series went on to star in later Turkish dramas.

(Note: Just so you know what to expect, Turkish dramas are sort of a cross between their US counterparts and Spanish Telenovelas. There is some action, but much more emphasis on interpersonal conflicts...and more than a few very long, overly dramatic shots backed with suspenseful music.)

jballanc··on I tried to watch Game of Thrones legally in France, Here is what happened
Honestly, you know what? This is fine.

The insistence of US media companies to continue geographically restricting content in an effort to make a few extra bucks has done more to kill US cultural imperialism than decades of "home grown" efforts. As a concrete example, in the past few years there has been an explosion of GoT-style dramas in Turkey (which they've even begun exporting to neighbors in the region).

Perhaps not surprisingly, this season GoT was available same-day on Turkish cable, with either dubbed or original voice tracks.

jballanc··on There Is No Distinctly Scientific Method
Right, but this wouldn't be as big of a problem for science if it weren't for the fact that the tradition of scientific journals was already focused on publishing positive results.

There are efforts underway that may eventually change this (Open Data, Open Publishing, pre-print servers, etc.), but it's a big ship to turn.

jballanc··on There Is No Distinctly Scientific Method
I disagree. It is a very easy question to answer so long as you realize that "science" is a subset of "knowledge". It has been accepted for quite some time now that falsifiability is the key factor distinguishing science from everything that's not science. However there are other forms of knowledge (math, for example) that are not science.

Consequently, this is why you'll hear many physicists claim that string theory is not science. It certainly looks like science, and some day it might become science, but currently as the bulk of string theory is not falsifiable, it is not, strictly speaking, science.

jballanc··on There Is No Distinctly Scientific Method
sigh...Do you want the short answer or the long version?

The short answer is: peer pressure.

The longer version requires a look back at the history of scientific publishing and how it's been perverted in more recent times.

Originally, scientists (or natural philosophers as they were known then) would carry out experiments and record their findings in their personal papers. The problem with this is the question of priority: who discovered what first. If you leave this question up to individuals recording their own results, then there's nothing to stop those individuals from backdating their own writings in a false attempt to claim priority.

So a tradition grew of communicating results via letters. When you discover something, don't just write it down, send it in a letter to a fellow natural philosopher. That gives you a (presumably) independent means of verifying priority. Of course, this does nothing to prevent two friends from colluding to falsely claim the mantel of priority.

Eventually the tradition morphed. Instead of just writing a letter to a colleague, you would write the letter and the colleague would read it to a gathering of natural philosophers (or, if you had the means of travel, you could read your findings, or in some cases demonstrate them, to the gathering in person). This gives you a much more robust means of claiming priority. Eventually, these societies organized themselves, one of the earliest being the Royal Society.

It didn't take long before these groups decided that all the letters being read should be recorded in some format. Thus, you have the "Philosophical Transactions of the Royal Society", the first scientific journal...

...in 1665. Since then the enterprise of scientific publishing has changed very little. Why is this bit of history important? Because the point of the original journals was not to be a full record of the experiments being performed, but rather just of discoveries so that their priority could be established. The scientists of the time still communicated their efforts, both successful and not, with each other in myriad ways. Perhaps more importantly, positions at universities were often based on these personal communications (and recommendations from peers).

Fast forward 400 or so years and scientific output (and indeed the number of scientists and universities producing this output) undergoes exponential growth. Suddenly, hiring professors based purely on personal communications becomes impractical. Ah, but what's this? There's also an exponential growth in scientific journals, and some candidates for these positions have their name on more by-lines than other candidates. Surely they must excel at science, no?

In other words, scientific journals, which were originally just one part of a scientists work, were perverted to become a stand-in for all of a scientists work. Yet, owing to their history as a means of establishing priority for discovery, the papers published continued to be propelled by tradition to emphasize positive results.

If a practice that has remained unchanged for 4 and a half centuries isn't ripe for disruption, I don't know what is!

jballanc··on There Is No Distinctly Scientific Method
There's more to it than just testing. If there weren't, then I'd be inclined to agree with the author. What many people fail to realize is that the full form of the scientific method (when applied properly) is:

* make an observation

* form a hypothesis that explains the observation

* design a test to disprove the hypothesis

* carry out the test and collect data

* analyze the results and either reject the hypothesis or formulate a new test

It is the necessity of a hypothesis to be falsifiable, and the intent of the scientist to disprove (not prove) their hypothesis that sets science apart.

jballanc··on fMRI software bugs could upend years of research
Not to mention the researchers' and post-docs' and students' time. By not paying to store it, you're risking the possibility that all of this money is essentially flushed down the toilet by a software bug because it cannot now be reanalyzed.
jballanc··on fMRI software bugs could upend years of research
The real takeaway lesson from this research should be the vital importance of Open Data to the modern scientific enterprise:

> "lamentable archiving and data-sharing practices" that prevent most of the discipline's body of work being re-analysed.

Keeping data private before publication is (at this point in time) understandable. Once results are published, however, there is no excuse for not depositing the raw data in an open repository for later re-evaluation.

jballanc··on Tesla's 'Autopilot' Will Make Mistakes. Humans Will Overreact
FiveThirtyEight did a really great piece (much better written and more reasonable than this article) expanding on what you identify as the problem: http://fivethirtyeight.com/features/no-technology-not-even-t...

In short: as automation is better able to handle easy-to-predict scenarios, that increasingly leaves only rare, complex scenarios for the humans to deal with which, by definition, they are far worse at handling.

jballanc··on Stop Bashing G.M.O. Foods, More Than 100 Nobel Laureates Say
The USDA has a good page on this: https://www.ars.usda.gov/sites/monarch/

The "cautionary tale" is that releasing GMO crops before their full impact has been studied and assessed only adds fuel to the GMO/anti-GMO fire. When it was found that bt-Corn could pose a risk to Monarchs, those in the anti-GMO camp had all the ammunition they needed to start shouting about GMOs being unsafe. When it was later found that the risk was negligible in practice, the GMO camp had all the reason they needed to continue turning a deaf ear to the anti-GMO camp.

← PreviousPage 8 of 34Next →