Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
fdej
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
25 ms
·
241.
▲
by
fdej
12y ago
I don't see the distinction you're trying to make here. It's plagiarism to copy someone's code without giving attribution. It's not plagiarism to copy someone's code if you give attribution. It's plagiaris
242.
▲
by
fdej
12y ago
Especially to Bach newcomers, I would recommend the Brandenburg concertos and orchestral suites. I love the performance by Trevor Pinnock / The English Concert: http://www.amazon.com/Bach-Brandenburg-Concertos-Orchestra
243.
▲
by
fdej
12y ago
It's fine for short documents, but not very pleasant for long math papers. PDF.js takes ~1 second to render a single page in my thesis. In Document Viewer (evince), the delay to render a page is barely perceptible (so I would guess <
244.
▲
by
fdej
12y ago
They probably hired the same security consultant as my bank, which requires your online password to be exactly six characters long. My hypothesis is that this is a technical limitation due to the password being stored as a char(6) in their
245.
▲
by
fdej
12y ago
To some extent, there is such a rule. But not all academics are perpetually 2-5 years behind the times by only getting updates from journals. Bleeding-edge researchers go to conferences, which can cut the latency down to as little as 6-12 m
246.
▲
by
fdej
12y ago
With some discipline, it's possible to achieve the same level of security in C as in pretty much any other high-level language. Some useful techniques: always strive for simplicity, use types to encapsulate data dependencies and enforc
247.
▲
by
fdej
12y ago
Elsevier is just a symptom of the disease that is academic publishing. We need to get away entirely from the 17th century approach to disseminating scientific knowledge. But as long as your chance to get a job in academia is proportional to
248.
▲
by
fdej
13y ago
Could someone please make a meta-2048 where each possible tile is one of the different versions of the 2048 game?
249.
▲
by
fdej
13y ago
Yeah, definitely a little glib. There are certainly prominent exceptions. Still, I think it's a valid general principle. At least, it works well enough for me, and I very rarely have to think consciously about memory management in C. B
250.
▲
by
fdej
13y ago
Sure, structs and functions that modify structs are the bare mechanisms provided by C. From the higher-level point of view, structs may represent objects and a constructor is then just a piece of code (possibly implemented a function) that
251.
▲
by
fdej
13y ago
Nearly all the time, memory management in C can be done using the following incredibly sophisticated pattern: create an object at the start of a function, and destroy it at the end of the same function. Use constructor/destructor funct
252.
▲
by
fdej
13y ago
I got a score of 12640, not far off... Very simple strategy: propagate large values upwards (never press down).
253.
▲
by
fdej
13y ago
Obligatory Star Trek reference: http://www.youtube.com/watch?v=ETt8GJRbqLc
254.
▲
by
fdej
13y ago
Sad news. I wouldn't call myself a fan, but Entre Dos Aguas is one of my favorite instrumental guitar albums. If anyone needs cheering up: http://www.youtube.com/watch?v=89zM9pZzt0U
255.
▲
by
fdej
13y ago
Very well done. It actually always baffles me that so much of biology takes place on scales that are very close to human perception. When looking at microscope images, the sizes of things become very abstract. Atoms and cells might as well
256.
▲
by
fdej
13y ago
C stands tall while the lesser languages devour each other.
257.
▲
by
fdej
13y ago
Yes, for example the fmpz type in flint ( http://flintlib.org/ ) implements this optimization, and also caches bignum objects for quick allocation/deallocation. Here is the benchmark with the mpir mpz type vs the flint f
258.
▲
by
fdej
13y ago
A possible explanation is that libtommath has a slow division algorithm. You could check what happens if you disable the final division.
259.
▲
by
fdej
13y ago
I just copied the profile code from bsdnt. I guess the reason it uses it is that it simpler and/or more portable. In this case, it does not matter much. I use the functions from sys/time.h when I do more serious profiling.
260.
▲
by
fdej
13y ago
Just waiting for someone to quote a snapshot out of context.
261.
▲
by
fdej
13y ago
As a benchmark, I tested computing exp(1) using the binary splitting algorithm (gmp/mpir code: https://gist.github.com/fredrik-johansson/8198480 -- bsdnt code: https://gist.github.com/fredrik-johan
262.
▲
by
fdej
13y ago
Same here! So much more convenient in a quick interactive session.
263.
▲
by
fdej
13y ago
> It's like writing C code that has to run on N different, immature, and mostly quirky compilers all with their own different subset of features, where N is completely unknown to you -- in fact N will grow over time after you releas
264.
▲
by
fdej
13y ago
if (Math.random() == 0.1234567890) { for (var i = 0; i < arguments.length; i++) { console.log(arguments[i]); } } Reminds me of the code I have to insert to prevent overzealous compile
265.
▲
by
fdej
13y ago
Ditto! Making Doom mods was the main reason that I taught myself programming. And I probably learned more about development (in a general sense) from making Doom maps, than I ever did in school...
266.
▲
by
fdej
13y ago
> I always found the mathematical definitions of asymptotic notation the most clear Which definition of asymptotic notation is there besides the mathematical definition, which by definition defines it? :)
267.
▲
by
fdej
13y ago
Regardless of the GPL, I think this qualifies as fair use by any reasonable interpretation. By the I'll-take-down-your-youtube-video-because-my-copyrighted-music-is-playing-on-the-radio-in-the-background or every-unauthorized-song-down
268.
▲
by
fdej
13y ago
I don't know, the color palette seems to be from Quake.
269.
▲
by
fdej
13y ago
I don't see any problem with using "list" to refer to any data structure that is functionally equivalent to a list, regardless of implementation. This is hardly unique to Python: Mathematica's List type (despite the Lisp
270.
▲
by
fdej
13y ago
Naive question: is there a reason why we cannot just compile programs to both native/bytecode and javascript and have browsers automatically fetch the version they support? If it turns out that native/bytecode universally runs (sa
More ›