Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
lbolla
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
18 ms
·
31.
▲
by
lbolla
14y ago
If you intend "matrix multiplication", there is no "right order": "matrix multiplication" is associative ( http://en.wikipedia.org/wiki/Matrix_multiplication ). Numpy has a "matrix" type, so you can write: In [7]: A = numpy.matrix
32.
▲
by
lbolla
15y ago
What surprises me is that no-one mentioned inheritance when speaking about classes. I am not a fan of classes and I prefer the functional approach, whenever possible. In my experience, I found that classes make sense as part of a hierarchy,
33.
▲
by
lbolla
15y ago
Remember that "if you're not paying for it, you're the product". http://lifehacker.com/5697167/if-youre-not-paying-for-it-you...
34.
▲
by
lbolla
15y ago
Gravity depends on m/r^2 where m is the mass of the planet and r its radius. Compared to Earth's, m = 7 m_earth and r = 2.7 r_earth, which gives you a gravity 0.96 times the gravity on Earth. Remarkably similar... But I wonder, if the tempe
35.
▲
by
lbolla
15y ago
Consider n = 1729. Pick a = 1722. a^[(n-1)÷2] mod n = 742 Therefore 1729 is composite. The test seems to hold, here.
36.
▲
500 on Youtube
(youtube.com)
1 points
by
lbolla
15y ago
|
0 comments
37.
▲
by
lbolla
15y ago
Same here. The only drawback is that you have to remember your Dropbox password by heart!
38.
▲
by
lbolla
15y ago
Haskell is fast ;-) (and beautiful) main = putStrLn . show . sum . take 3000000 $ repeat 1 (Ignoring the random generation, that does not play a role here, does it?)
39.
▲
by
lbolla
15y ago
Here is mine: https://github.com/lbolla/dotfiles/blob/master/githooks/pre-... It PEP8-fies and pyflakes .py files and gjslint-ifies .js files. Other actions can be easily added!
40.
▲
by
lbolla
15y ago
Google cached version: http://webcache.googleusercontent.com/search?q=cache:KJXbNFy...
41.
▲
by
lbolla
15y ago
Is it just me or delicious.com is now terribly slow? Overall, I'm not impressed. * the "Hi, <my-name>" dropdown menu must be the most horrible I've ever seen; * why do I need to have a picture?! I just want to save/share bookmarks!
42.
▲
Make yourself a favor: go see this.
(wim-wenders.com)
1 points
by
lbolla
15y ago
|
0 comments
43.
▲
by
lbolla
15y ago
The implementation of the binary_search algorithm ( https://github.com/nzakas/computer-science-in-javascript/blo... ) is bugged by the infamous ( http://googleresearch.blogspot.com/2006/06/extra-extra-read-... ) "integer overflow" bug:
44.
▲
by
lbolla
15y ago
This is the result using cloc: Bench files blank comment code cpp 4 145 236 501 go 5 153 239 546 go_pro
45.
▲
by
lbolla
15y ago
Templates are not used in the C++ benchmark.
46.
▲
by
lbolla
16y ago
I tried to install the iTerm2 colorscheme and also the vim colorscheme, but they look nowhere near the screenshots. Anyone having issues like this?
47.
▲
by
lbolla
16y ago
Just picked one from the red list (pytz) and it looks like Py3.1 is supported...
48.
▲
by
lbolla
16y ago
After reading all these interesting and enlightening comments (no pun intended here, there are all really useful), the blog post should really be titled: "A particular SBCL-compiled LISP-implementation of a specific algorithm gives comparab
49.
▲
SBCL quicker than C?
(lbolla.wordpress.com)
69 points
by
lbolla
16y ago
|
49 comments