Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
kayamon
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
41 ms
·
451.
▲
by
kayamon
11y ago
Well not _only_ two things, but the idea is that you need to specify _relationships_ between objects. You can't do that by just considering each object in isolation. - "A goes TO THE LEFT of B" - "The header goes A
452.
▲
by
kayamon
11y ago
Uh, yes, I guess? That by itself is not especially useful. That's not what a layout language is for. A layout language needs to be able to specify "A goes 10 px to the left of B".
453.
▲
by
kayamon
11y ago
This doesn't even address the fundemantal design flaw with CSS: (paraphrased badly from a quote by Casey Muratori) Layout is about the relationship between TWO THINGS. If you have a layout language that deals with only one thing at a t
454.
▲
by
kayamon
11y ago
Presumably you don't have to serve _any_ licenses - the license should be in the Javascript file itself? (disclaimer: I didn't check)
455.
▲
by
kayamon
11y ago
If the intent is simply "emphasis", why are there different ways of expressing it?
456.
▲
by
kayamon
11y ago
I can't help but wonder if it isn't simpler just to use gzipped JSON. I'd be interested to see a size comparison of the two. It seems like they're going to an awful lot of work to hand-roll a suboptimal text compression
457.
▲
by
kayamon
11y ago
I'm sure there are - that's not what I said. Also, Naughty Dog's games do _not_ use Lisp, they use a custom language that looks a little like Lisp, but has no garbage collector.
458.
▲
by
kayamon
11y ago
It's kinda an implicit rule in game development that you don't do at runtime what you can do at compile time.
459.
▲
by
kayamon
11y ago
It's not that you couldn't write a triple A game with a managed language. It's that you can _quite easily_ write a triple A game without using a managed language. For games, managing memory is not a big problem. For other k
460.
▲
by
kayamon
11y ago
Many, if not most desktop applications are written in C++. Just because you don't use it doesn't mean anyone else doesn't.
461.
▲
by
kayamon
11y ago
If you liked that, Terra ( http://terralang.org/ ) is also worth checking out.
462.
▲
by
kayamon
11y ago
This is very, very similar to DXT encoding that all GPUs use (and is also how the ZX Spectrum's hardware worked).
463.
▲
by
kayamon
11y ago
Seems like the 'classic' C way to go about it would be to use scanf/printf-style format strings: int mode = select("<%i | >%i", channel1, 42, channel2, &i); switch(mode) { case 0: foo(); brea
464.
▲
by
kayamon
11y ago
Generally speaking, the biases needed for ray-tracing are much smaller than the biases needed for shadow mapping. Ray-tracing tests directly against the geometry so only needs a bias proportional to the numerical accuracy used, whereas shad
465.
▲
by
kayamon
11y ago
Based on the spec so far, there's a very good chance it'll look _almost exactly like asm.js_
466.
▲
by
kayamon
11y ago
http://www.unlicense.org is the only civilized thing to be using these days.
467.
▲
Leaving the Nest
(codersnotes.com)
1 points
by
kayamon
11y ago
|
0 comments
468.
▲
by
kayamon
11y ago
> That was fixed in the 68010, which came out in 1982. But by then, IBM had picked the Intel 8088 for the IBM PC. Wait, that doesn't make sense - the 8088 didn't have an MMU either. Why would that have affected IBM's decis
469.
▲
by
kayamon
11y ago
Wasn't Heartbleed due to exactly that - using their own local allocator instead of calling malloc/free?
470.
▲
by
kayamon
11y ago
Actually yeah, that's a very good point. Sometimes compilers are just too clever. I think some systems have a "secure memset" function that can be used for things like this - i.e. one that's guaranteed not to be optimize
471.
▲
by
kayamon
11y ago
Well you could read the paper he just linked to.
472.
▲
by
kayamon
11y ago
I tested it on Ubuntu 14.04 x64, and the problem occurs there. And of course, some programs use replacements like dlmalloc and do all their own allocation management anyway.
473.
▲
by
kayamon
11y ago
Yes. You could also memset any memory to zero once you're done with it, which isn't a bad idea for applications with high security requirements.
474.
▲
by
kayamon
11y ago
It's hard to tell if that's the case or not - the documentation seems to contradict itself on that point.
475.
▲
by
kayamon
11y ago
But if the program has no knowledge, visibility or control of the native code, it effectively does not exist.
476.
▲
by
kayamon
11y ago
That's not an especially useful comparsion. If Google didn't let people search for what they wanted, they'd just go use a different search engine. If reddit doesn't do what people want, there are other websites for them.
477.
▲
by
kayamon
11y ago
You're absolutely right that bytecodes in general are just like any other instruction set, so can be modified etc. I guess I'm using the term 'bytecode' to refer to systems such as Java, where they don't let you mes
478.
▲
by
kayamon
11y ago
> That distinction is reserved for computers that separate the 'store' (aka volatile memory) into two disjoint regions On a machine where programs are supplied as bytecode, there are indeed two disjoint regions. The bytecode si
479.
▲
by
kayamon
11y ago
So every program needs to be wrapped in an additional VM?
480.
▲
by
kayamon
11y ago
I think you have very much misread it. I'm not complaining about desire for control at all. I'm complaining about the inability for a program to treat it's code and data as the same medium. That is very much the key tenet of
More ›