Better HN
topnewbestaskshowjobs
Log inSign up

onalark

135 karma · joined May 9, 2013 (13y ago) · 55 submissions

http://aron.ahmadia.net
Submissions

comment 12y ago · link · parent

This is a perfect fit for the SciPy conference. There are also several open journals that focus specifically on publishing openly licensed software used in academic work.

Citing software really varies by community. It is very consistently done in some communities, and is gaining broader acceptance in others, some with surprising rapidity (ecology comes to mind).

It's an exciting time to be a scientist!

comment 12y ago · link · parent

And it's a very nice site! I might suggest making it more clear one of your help or about pages what licenses are acceptable for hosting. I am not a UK academic or a sound analysis computational scientist, but it's something that I would be concerned about when choosing a place to store my code.

comment 12y ago · link · parent

This is very good news for digital science, and has been a long time coming. For those wondering why this is new and different from previous efforts, I will try to summarize.

Up until now, there have been many places to permanently store your public scientific research objects, so long as you were willing to use a Creative Commons license. Similarly, there were many places to freely host your software, so long as you didn't need a permanent store for your scientific code.

The GitHub-ZENODO partnership is the first web application to bridge these two needs. An earlier attempt with Figshare almost got it right, but failed to support code licenses (everything at Figshare is CC BY). This isn't the only way to host or cite your code, but it's definitely a good default.

comment 12y ago · link · parent

It used to, but MathJaX does not play well with GitHub's Markdown parser.

comment 12y ago · link · parent

This is one of the misconceptions about Python, that it's "slow". Python has several type annotation systems with JITing capability, and can easily achieve C-speeds (as well as interface easily to C libraries). We've given two tutorials at Supercomputing in the last two years, and the trend for high performance computing in Python is on the rise. Don't count it out!

comment 12y ago · link · parent

GiveWell? Aren't those the guys that astroturfed MetaFilter a few years ago?

comment 12y ago · link · parent

Delhi (Other areas negotiable), India

Systems Developer, CycleTel

Are you passionate about using technology to create social impact? Do you operate well in start-up environments, building new ideas and strategies from scratch? Do you want to be part of a social enterprise that is positioned to change lives in India? This is your chance to join and shape a fast growing, mobile health (mHealth) service at a critical inflection point.

CycleTel is an mHealth innovation, developed and tested in India, that is positioned to be the first ever family planning method offered via SMS. No doctors, no visits to the health clinic—CycleTel puts family planning knowledge and use in the hands of couples, on their mobile devices. Based on the Standard Days Method (SDM) of family planning, the service has the potential to aid millions of women in India who have access to a mobile phone.

CycleTel seeks a passionate and skilled developer to lead development and administration of our SMS-based solution in India. The candidate will have an exceptional track record in software, preferably with experience in building and maintaining mobile systems services in India.

CycleTel is an initiative developed and incubated by Georgetown University’s Institute for Reproductive Health (IRH) in Washington, DC. IRH works to reduce unmet need for family planning by increasing fertility awareness and expanding access to family planning methods.

As a Systems Developer, you will help us improve, deploy and maintain our SMS-based solution. You will help us expand our reach within India and globally by adding multi-language support to our existing English/ Hinglish-based code. You will also help us expand by leading the development and integration of our application with technical partners. The System Developer will be part of the CycleTel team in India, and work in a focused team, reporting to our India CycleTel Manager, based in Delhi.

Please send cover letter and CV to the CycleTel team at charu.chadha.irh@gmail.com,

comment 12y ago · link · parent

Sure! As a disclaimer, I'm one of the developers of HashDist. There's a longer explanation here: http://hashdist.readthedocs.org/en/stable/faq.html but the crux is that Nix enforces purity, whereas HashDist simply defaults to pure.

As an example, if you'd like to build a Nix system, you're going to need to compile or download an independent libc. HashDist is capable of bootstrapping an independent libc as well, but we default to using the system libc.

We choose to seat our "pure" system on top of the system compilers and libc, but by default, install our own Python and other high-level libraries. We also can integrate with other package managers, and there's an example branch in our repository right now showing integration with Homebrew.

comment 12y ago · link · parent

If you've ever needed version X.Y of Package Z on a system, and all of its underlying dependencies, or newer versions than what your operating system supports, you know exactly what Domen is talking about.

It's a good write-up. The idea of a stateless, functional, package management system is really important in places like scientific computing, where we have many pieces of software, relatively little funding to improve the quality of the software, and still need to ensure that all components can be built and easily swapped for each other.

The HashDist developers (still in early beta: https://github.com/hashdist/hashdist ) inherited a few ideas from Nix, including the idea of prefix builds. The thing about HashDist is that you can actually install it in userspace over any UNIXy system (for now, Cygwin, OS X, and Linux), and get the exact software configuration that somebody else was using across a different architecture.

comment 12y ago · link · parent

This is incredible news! Congratulations, and thanks so much for contributing back

comment 13y ago · link · parent

Thanks for the report. Out of curiosity, are you accessing from an iPad or an iPhone, and are you using Safari or Chrome?

comment 13y ago · link · parent

Annotations are in early alpha state: https://github.com/numba/numba/tree/annotations. Feedback/pull requests more than welcome!

comment 13y ago · link · parent

Numba and Cython are faster (for very small kernels) than Python interfacing into a C kernel via ctypes. This is not the same thing as a C kernel as part of a C application. I hope I didn't falsely give that impression! You can see that for medium-size and above kernels, the call overhead makes very little impact on the code execution speed.

The C was compiled with the same flags used to compile Python. In this case: -O2 -g.

I don't have access to a MATLAB license to compare, but I would love to see this comparison done. Let me know if you need any help putting it together.

comment 13y ago · link · parent

Gold star for you :) The NumPy implementation is basically a for loop. The only cost is the very brief inspection of the dtype to dispatch on.

comment 13y ago · link · parent

Hi. I was reluctant to publish any results with PyPy because I am not an expert in working with their code base. If you'd like to look at the GrowCut benchmark being run on my Mac (Intel iCore 7 2.7 GHz) on PyPy vs. Anaconda Python (or even better, download and run it yourself), the gist is [here](https://gist.github.com/ahmadia/5638980).

comment 13y ago · link · parent

Thanks. I'll take a look.

comment 13y ago · link · parent

Hi tlarkworthy, thanks for sharing your code with me!

- It's really hard to make valid comparisons against data I don't have access to. Do you have any open data sets to try this comparison against?

- It looks like the meat of the work is being done here by scikit-learn. As was mentioned earlier, Numba at this stage is mostly useful for improving kernel performance, not large library routines.

I'm planning on taking a deeper look into some of the scikit-learn kernels in the future. Keep an eye open for a blog post from Continuum on this.

comment 13y ago · link · parent

Sorry, I missed this reply earlier, I'll take a look at it today.

comment 13y ago · link · parent

Sent.

comment 13y ago · link · parent

This is a good one :)

The numba code isn't as pretty as it could be because slicing doesn't work for overlapping memory regions or wraparound indexing yet, and we don't have inlining :(

Here's what I get on a 2.6 GhZ Intel Core i7.

I rewrote your code to minimize memory traffic, then jitted it with numba:

  def usr_numba(x, y, S, num_best):
    m, n = x.shape
    best = np.zeros(num_best)
    best_low = 0.0

    for i in xrange(m):
        d = abs(x[i,0]-y[0])
        for j in xrange(1,n):
            d += abs(x[i,j] - y[j])
        d = 1.0 / (1.0 + 1/12.0 *d)
        if d > best_low and d > S:
            k = 0
            for k in xrange(0,num_best):
                if d > best[k]:
                    break
            for l in xrange(num_best-1, k, -1):
                best[l] = best[l-1]
            best[k] = d
            best_low = best[num_best-1]
    return best

  _usr = autojit()(usr_numba)

  In [1]: import numba_usr

  jitted kernel checks out

  N = 1000000
  usr   (s): 0.233645
  numba (s): 0.0115586
  20X speedup

  N = 2000000
  usr   (s): 0.566954
  numba (s): 0.023487
  24X speedup

  N = 4000000
  usr   (s): 1.14992
  numba (s): 0.0472016
  24X speedup

  N = 8000000
  usr   (s): 2.34968
  numba (s): 0.092601
  25X speedup

  N = 10000000
  usr   (s): 2.96395
  numba (s): 0.116032
  26X speedup

  N = 20000000
  usr   (s): 17.4779
  numba (s): 0.236304
  74X speedup
For the case aschreyer is interested in, I see a 24x speedup from half a second to two hundredths of a second. For a really big problem (2 x 10^7), numba is still well under a second and the numpy code is starting to really suffer.

My full code is here: https://gist.github.com/ahmadia/5550933

I'm putting it into a wakari notebook so you can actually check me on this :)

Edit 1 - Made the speedup a little more comprehensible (and fixed gist)

comment 13y ago · link · parent

There are a lot of ambitious projects in this arena such as PyPy. Numba's approach is focused on getting computational codes faster. It's hard to say what "fast" means in many situations, because people don't realize that Python is actually quite fast for most tasks.

comment 13y ago · link · parent

I'm always interested in working with practical examples. Do you have some sample code I could look at?

comment 13y ago · link · parent

yet. :)

comment 13y ago · link · parent

It's not common to see C/Fortran comparisons because they can be a pain to write. I'm implementing a serial C version for next week's blog post, though.

comment 13y ago · link · parent

(I wrote this last blog post)

In general, we're looking for results that will get people excited, and in some communities, we can get fairly silly speedups over native Python, so we are still picking that low-hanging fruit.

However, it's also important to be tied in to real applications. I'd be happy to take a crack at applying numba to your code. Do you have a reasonably small example we could take a look at?

12