Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
vilya
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
22 ms
·
181.
▲
by
vilya
15y ago
In python there's no such thing as a char, there's only single-character strings. The above would actually be doing 6 string comparisons. That may still be faster... or may not. Measuring is the only way to be sure.
182.
▲
by
vilya
15y ago
Re:#6, there's ReactOS: http://www.reactos.org/en/index.html but I've not used it so I don't know if it fits the "works" criteria.
183.
▲
by
vilya
15y ago
...leaving a gap in the market which something would surely arise to fill.
184.
▲
by
vilya
15y ago
That's exactly what I was doing. It was supposed to be a tongue-in-cheek response while making the point that one could do exactly what jrockway was using as an extreme example, if one was misguided enough.
185.
▲
by
vilya
15y ago
You mean kprintf? http://leaf.dragonflybsd.org/cgi/web-man?command=kprintf&...
186.
▲
by
vilya
15y ago
There are a couple of languages I'd add to the list: * Mozart/Oz - will (probably) change your thinking about concurrency. * Clay - really pushes the idea of generic programming. * Rust - typestate makes assertions part of the type
187.
▲
by
vilya
15y ago
This reminds me of a really quite wonderful paper: "Scheduling Algorithms for Procrastinators" http://www.cs.sunysb.edu/~bender/newpub/2007-BenderClTs-JoS-... Well worth a read when you've got something else you're putting off.
188.
▲
by
vilya
15y ago
I think you're overlooking the many algorithmic advances in video & audio codecs in that time period too. It certainly has NOT been case of the software guys sitting around since the 70s waiting for the hardware guys to catch up.
189.
▲
by
vilya
15y ago
Why use a car for your 100 mile journey when you can get there by bicycle? :-)
190.
▲
by
vilya
15y ago
I haven't started a videogame company, but I did look into it seriously at one point. What stopped me was the financials: it looked like I would have needed a fairly sizable hit (by the standards of the time: before the iPhone and AppStore)
191.
▲
by
vilya
15y ago
From a read through the description it looks like this library covers the basics well, but has two important limitations which make it less useful for "serious" image processing: - It doesn't support floating point types (half, single or do
192.
▲
by
vilya
15y ago
You might be interested in OpenImageIO then: http://www.openimageio.org/ https://github.com/OpenImageIO/oiio It has a very well thought-out interface.
193.
▲
by
vilya
15y ago
For a list there's not likely to be a difference. For an array you have to shift all the elements after the one you're removing down by one place; if you're removing from the start of the list you have to adjust every item in the list, but
194.
▲
by
vilya
15y ago
> I can't open a file in vim without :q and running it again with a different argument. :e filename
195.
▲
by
vilya
15y ago
Are you compiling with any optimisations on? If so, did you check the asm output for your looping version? It's possible that the compiler detects this pattern and replaces it with a BSR instruction in the binary. Even if it doesn't do that
196.
▲
by
vilya
15y ago
I was thinking the same thing. Their data, according to the article, indicates that over half of all functions used in Explorer are via the right-click menu and yet they conclude that these items aren't discoverable enough? Bizarre. I think
197.
▲
by
vilya
15y ago
Just because you can, doesn't mean you should. :-) Forcing a and b to be different types could cause a different problem - maybe a worse one, depending on how many subtractions your code requires.
198.
▲
by
vilya
15y ago
> This is also an error which cannot, as far as I know, be detected by any coding convention. I'd suggest that if you are trying to prevent such errors with a coding convention rather than tests, that's a process smell. Coding conventio
199.
▲
by
vilya
15y ago
> Do I agree that there will always be semantically wrong bits of code that can't be detected by a compiler (whether as part of a type system or otherwise)? I'm not sure I do. Here's a very simple counterexample that I don't believe it'
200.
▲
The Tomorrow Project: science fiction commissioned by Intel
(newsroom.intel.com)
7 points
by
vilya
15y ago
|
3 comments
201.
▲
by
vilya
15y ago
I agree with you, except for the dates. It seems to me that worrying about programmer productivity over performance is a phase that we're coming out of. Mobile devices, with less memory and slower CPUs & GPUs than the desktop PCs we're
202.
▲
by
vilya
15y ago
I wonder if they're planning to write it in Rust? It would be interesting to see how an OS written in a more modern language than C would turn out - especially since other attempts like Microsoft's Singularity seem to have gone quiet.
203.
▲
by
vilya
15y ago
FWIW, in gcc/g++ there are compiler intrinsics which (should) map to that instruction on CPUs where it's available: __builtin_popcnt, __builtin_popcountl and __builtin_popcountll for unsigned ints, unsigned longs and unsigned long longs res
204.
▲
Mozilla is building an operating system
(wiki.mozilla.org)
140 points
by
vilya
15y ago
|
85 comments
205.
▲
by
vilya
15y ago
If one of these patents is really about using regexes to extract hyperlinkable data from text... maybe it will encourage people to use yacc for their parsing instead?
206.
▲
by
vilya
15y ago
The point of a patent is to ensure that ideas are made public, so that all can benefit from them. In exchange, the inventor gets their time-limited monopoly on the idea. Unfortunately software patents are useless for this purpose: they don
207.
▲
by
vilya
15y ago
I've never tried Second Life, but I'd be very surprised if they're not representing shapes internally as some kind of 3D mesh: it's an important technique for getting decent performance on modern graphics cards. If they are doing that, then
208.
▲
by
vilya
15y ago
It seems that this might maker code easier to write (the first time around) at the expense of making it more difficult to read. That's totally counter to the prevailing wisdom. I'd also be curious to know what metadata the functions could b
209.
▲
by
vilya
15y ago
> Of course Second life cannot do that because people create and break down buildings all the time, so they cannot have artists render the town from far away all the time. Actually they can. It's entirely to generate levels of detail au
210.
▲
by
vilya
15y ago
You can define custom auto-completions for bash as well. If you're running Ubuntu, it ships with a default set of auto-completions that cover git, svn and cvs commands. Try it for yourself: type "git stat<Tab>" and it'll autocomplet
More ›