360 karma · joined Nov 25, 2015 (11y ago) · 213 submissions
comment 9y ago · link · parent
...but if you are anyway experimenting with your code in a Jupyter notebook, then you could just use %timeit [1] or %time [2] magics to measure execution times and benchmarks without writing any additional code.
[1] https://ipython.org/ipython-doc/3/interactive/magics.html#ma...
[2] https://ipython.org/ipython-doc/3/interactive/magics.html#ma...
62.
anaconda-project: NPM-like dependencies management for Python(github.com ↗)
1 points · by inlineint · 9y ago · discuss
comment 9y ago · link · parent
The first neural networks that ran on GPU was written using low-level GPU primitives [1]. This was a non-trivial process that required to do a lot of low-level stuff. It required system programming skills and time to implement new architectures. But a group of researchers at the University of Montreal developed Theano [2], a framework that allows you to define computational graphs in Python programming language and then compile them to CUDA code that could be then executed on GPU. Instead of spending resources on development of a new language they put their efforts on actual thinking out useful abstractions and implementing compiler that works efficiently. It is also notable that they didn't include very high level abstraction in Theano too, but there are libraries like Lasagne [3] and Keras [4] that introduced higher level abstractions (neural network layers and pluggable pre-implemented models) on top of Theano. It is safe to say that Theano boosted Deep Learning research, making programming of new neural networks architectures quicker and accessible.
What if actually we need just the same thing for FPGA? Just a Python library that defines useful abstractions for logic circuits building, allows to construct arbitrary graphs using them, and then compile these graphs to VHDL. Assuming that the basic building blocks defined in Python are well defined and tested, it would be easy to implement verification and some testing in pure Python, the tooling like visualising logic diagrams can be implemented in pure Python too.
In addition to reduced efforts for development (because you don't need to design and implement a new language), it would be easier to pick up by software programmers: they would not need to learn new syntax, but concentrate on core conceptions like gates/summators/other stuff and graphs involiving them. It wouldn't be necessary to develop special-purpose editors, because it just Python, and again, because the tests for the resulting schemas could be written and ran in pure Python, it would be possible to use standard CI tools like Travis for open source development.
Edit: It seems like there is already a project MyHDL [5] that does something very close to what I described above.
[1] https://hal.inria.fr/inria-00112631/en/
[2] https://github.com/Theano/Theano
[3] https://github.com/Lasagne/Lasagne
comment 9y ago · link · parent
So I put to the repository only .vimrc and an short shell script install.sh that installs Vundle, .vimrc, and then installs all the plugins by running "PluginInstall" command in vim. Installation becomes just cloning the repo and running install.sh from it.
The additional benefit in comparison to say putting plugins to git submodules is that I don't have to keep my vim repository at GitHub up-to-date with latest plugins versions because Vundle anyway installs the freshest versions.
comment 9y ago · link · parent
[1] http://scikit-learn.org/stable/modules/svm.html#complexity
comment 9y ago · link · parent
It is hard to correctly identify what exactly particles from those possible thousands are observed in given data. The are two main problems: the properties of those not yet observed particles are not well known (because it is computationally hard to predict them from the standard model) and because the number of useful events is much much smaller than the number of events that correspond to already known events.
> So do elementary particles decay or not?
I don't see a contradiction here: the first generation of elementary particles does not decay (or has not been observed to decay yet), Higgs boson is not from then because the author of the answer are talking about the first generation of fermions and Higgs boson is not one of them.
comment 9y ago · link · parent
However it is computationally infeasible to calculate them directly, without using various approximations. Physicists try to solve these problems numerically (see for example about the field called lattice QCD), but it is not always possible and leads to introducing various approximations that produce errors and other artifacts in the numerical predictions.
So the particles were allowed by the standard model, but we didn't know for sure their properties. So this provides way to verify already done numerical predictions (I don't really know were they be done for this exact particles or not) and give us data about exact properties of these particles.
One could possibly draw an analogy with (quantum) chemistry here.
comment 9y ago · link · parent
The problem is that it is hard for us to predict masses/energies of new composite particles because although Standard Model provides hypothetical way to do it, it is infeasible computationally.
[1] http://physics.stackexchange.com/questions/64862/resonances-...
72.
The physics of information processing superobjects: Jupiter brains (1999) [pdf](jetpress.org ↗)
78 points · by inlineint · 9y ago · 13 comments
comment 9y ago · link · parent
[1] https://phys.org/news/2013-07-physicists-publish-solution-qu...
74.
Understanding quantum measurement from the solution of dynamical models (2011)(arxiv.org ↗)
1 points · by inlineint · 9y ago · 1 comment
comment 9y ago · link · parent
It might turn out that Pi is not normal say in base 2, but all possible finite sequences of 0s and 1s occur in it, just with some of them being slightly more frequent than others of the same length.
comment 9y ago · link · parent
However to store 1 bit of information at given temperature the energy difference between state corresponding to 0 and state corresponding to 1 has to be not less than something of order kT ≈ 0.02, otherwise the information would be quickly erased by thermal motion. But if we take maximum energy gap at atom that might be used for storing information to be upper bounded by atom's ionization energy [1], it turns out that it can't be larger than something of order 10 eV. So it doesn't seem to be possible to store more than hundreds or thousands of bits per atom at room temperature.
[1] https://en.wikipedia.org/wiki/Ionization_energies_of_the_ele...
comment 9y ago · link · parent
It's a bit unrelated, but I think that maybe instead of just introducing basic income to suppress social tensions caused by bots taking jobs it would be better to spend the money to create new research jobs at large scale. There are plenty underexplored directions in science and research in lots of them can't be automated anytime soon.
If there were much more PhD positions that paid solid stipend (and colleges were accessible to everyone and paid solid stipends too) and there were a lot of open research positions, people losing their jobs because of automation would go to these programs and then do research which eventually might make the world a better place to live.
Just replying to someone who is going to say that not everyone is able to meaningfully participate in research, I think it is not true. Yes, different people might have different productivity and abilities, but science needs not only researchers generating new ideas, but also laboratory assistants and experimental scientists mostly just doing meticulous measurements.
However it's simpler to just throw money at people and tell them that they don't need to work rather than scale the educational and research systems to the extent that would allow them to engage a large part of the population into them.
comment 9y ago · link · parent
Wish someone more knowledgable about this kind of tech comment on this.