Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
k4st
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
12 ms
·
61.
▲
by
k4st
15y ago
I HATE when a website tries to prevent me from leaving with the back button.
62.
▲
by
k4st
15y ago
Hrmm.. looks like some free AT&T advertising.
63.
▲
by
k4st
15y ago
Great article, with the exception that code indentation does not appear to have made it through the editing process.
64.
▲
by
k4st
15y ago
I think that it's useful to distinguish between code that one has an intimate knowledge of / intuitive sense of and code where one does not fully understand. For example, I find printf-like debugging and using stack traces from Valgrind to
65.
▲
by
k4st
15y ago
@tjholowaychuk: Check out context threading ( http://www.cs.toronto.edu/syslab/pubs/demkea_context.ps ) by Prof. Angela Demke Brown as an alternative to direct threading.
66.
▲
by
k4st
15y ago
http://earslap.com/projectslab/otomata/?q=06122n3x4j5d6o7t8q... Very fun!
67.
▲
by
k4st
15y ago
For me the link redirects to a NYTimes login page. Maybe you are already logged into NYTimes, and NYTimes claimed their domain through Readability's service?
68.
▲
by
k4st
16y ago
I implemented a rather nice C++ pattern matching facility for productions of context-free grammars in my undergraduate thesis project ( http://www.grailplus.org ). It is able to do some really fancy stuff and I think that is one were using
69.
▲
by
k4st
16y ago
I'm working on an open-source framework, and a series of command line tools built on top of the framework, for symbolically manipulating context-free grammars, non-deterministic pushdown automata, and non-deterministic finite automata. All
70.
▲
by
k4st
16y ago
Parser composability is trivial with Pratt parsers. One need only introduce the idea of denotation groups/categories, and allow one to specify a specific category along with a precedence. Add to this the ability to do ordered choice on deno
71.
▲
by
k4st
16y ago
Thank you, that brightened my morning up :D
72.
▲
by
k4st
16y ago
This is nice for visualizing an NFA and the minimized DFA for asome regular expression (note: regular!!): http://osteele.com/tools/reanimator/ . The aforementioned tool also lets you give input and highlights the current states of each FA.
73.
▲
by
k4st
16y ago
It depends on exactly what you're trying to optimize and what the requirements are. While it's not necessarily the best solution for a Facebook style problem (where you actually want to aggregate the results, where other concerns would be p
74.
▲
by
k4st
16y ago
I can imagine one practical reason is that a lot of stuff (e.g. type information, variable bindings) goes top-down, but bottom-up parsers reduce rules in the opposite direction and so it takes extra effort to make the mental model of progra
75.
▲
by
k4st
16y ago
I haven't finished the paper yet, but this type of technique excites me as well. Recently, I did an assignment on the paper "memoization in top-down parsing" by Mark Johnson. Have you seen this paper, and do you think that there are any sim
76.
▲
by
k4st
16y ago
I wonder if they can get around that by knowing the information, but not explicitly displaying it. For example, if one does a search and Hipmunk knows that Southwest has a plane scheduled at that time then they can provide a link to the Sou
77.
▲
by
k4st
16y ago
Not related to post, but that is a really beautiful web application.
78.
▲
by
k4st
17y ago
A more relevant example, as mentioned in a linked article, is that the binary data of images such as child pornography and state secrets are also numbers and as such may be considered illegal.
79.
▲
by
k4st
17y ago
You can do it in C: #include <stdio.h> int main(void) { int a, b, c; int d = (a = 1, b = 2, c = 3, a + b + c); int e = (({int f = 1; e = f;}), e += 1); printf("d is %d \n", d);
80.
▲
by
k4st
17y ago
My original macbookpro is still alive and well and withstood very heavy use. Granted, I needed to replace the battery a few times, originally because mine was within the serial # range of defective batteries, but each time those changes wer
81.
▲
by
k4st
18y ago
The following is a comment I made on Reddit ( http://www.reddit.com/r/programming/comments/7aiex/php_forke... ) some time ago on the subject of PHP being forked: As I tend to work with php a lot I often think about how to make PHP better an
82.
▲
by
k4st
18y ago
This is interesting to me. I recently wrote an interpreter for a parsing language (similar to the one in the article) in common lisp and also a recursive descent parser generator for an almost identical language (to my previous one). I went
83.
▲
by
k4st
18y ago
Controller route prefixing seems suspicious. Do you include every controller at runtime and use php reflection with some regular expressions to parse all of their prefixes only to figure out what single route to use?
84.
▲
by
k4st
18y ago
Every time I come across a neat paper online, I download a PDF of it and then put it up onto Dropbox so I don't lose it.
85.
▲
by
k4st
18y ago
Yes! I'm copying and pasting some code from various areas. Here is an old and slightly modified mysql result set iterator that fits the purposed of the newer code that makes this example nice: http://codepad.org/nmD4pDES Here is a windowi
86.
▲
by
k4st
18y ago
I should have been specific to Canada's two bills, C-60 and C-61, which both attempted to ratify Canadian IP law to the WIPO treaties. The U.S. already ratified to those treaties, which got them the DMCA. Clearly our cellular plans suck, bu
87.
▲
by
k4st
18y ago
Does that mean that the U.S. is already a digital ghetto?
88.
▲
by
k4st
18y ago
As I commented on the blog, he fell into the trap of needlessly looping over sets of data. 1) Loop over MySQL result set in GetArray 2) Loop over array of results to format them in GetVideos 3) assumed loop over results to eventually displa
89.
▲
by
k4st
18y ago
I remember seeing this on Reddit or Digg some time ago (maybe one or two years ago) and was hoping I would eventually hear something about it again. The one deterrent I can see to adoption is that police might not like it. No longer would t
90.
▲
by
k4st
18y ago
For some reason I thought that the ereg_* functions were deprecated; that's not the case. I was wrong in saying they should never be used; however, it remains the case that preg_* is usually faster.
More ›