Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
irahul
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
112 ms
·
931.
▲
by
irahul
15y ago
Using "regexex" for doing what is terrible? Using regexes for a lexer is quite common, and if you read his code, that's what he is doing, and then feeding the tokens to the parser.
932.
▲
by
irahul
15y ago
> So you don't think a term emulator on MacOS X is useful to you Where did I say that? The discussion was about if iterm2 has needed features which an existing emulator/mux combination doesn't have.
933.
▲
by
irahul
15y ago
> Who are you to decide whether his work is or is not art? > I agree that censorship isn't relevant here in the sense that it's applied to art, And the article and headline about an "artist" makes it look like a "work of art" is be
934.
▲
by
irahul
15y ago
> A terminal multiplexer is a way to create and access multiple ttys from a single terminal (-emulator). Thanks. I know that and use screen, and the post we are discussing mentions tmux, so he knows it as well. > whereas an emulato
935.
▲
by
irahul
15y ago
> There's more to fear from all the security cameras that blanket our cities than from an artist trying to make a point (or non-point). Nitpick: His being an artist isn't relevant here. What he is doing isn't a work of art. It seems lik
936.
▲
by
irahul
15y ago
This should be it: http://www.iterm2.com/#/section/features
937.
▲
by
irahul
15y ago
> (Also, learn the difference between a terminal multiplexer, and a terminal emulator :p) What difference the name makes? If this shiny new terminal emulator is touting something which a terminal multiplexer already does, from a user pe
938.
▲
by
irahul
15y ago
If you are talking about ASCII(7 bit ascii and not extended ascii), then it can't happen - the encoding is same for 0-127.
939.
▲
by
irahul
15y ago
Your app mentioned in the blog post is throwing me an error. Traceback (most recent call last): File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/webapp/__init__.py", line 700, in __call__ handler.get(*groups) Fi
940.
▲
by
irahul
15y ago
Side effects can be checked in `@leave(check_side_effects)`. I plan to add something to check results.
941.
▲
by
irahul
15y ago
The waters are murkier here. Apart from checks, you also have @transform_args(a=lambda x: x*x) def foo(a): pass This isn't validation and can't be turned off. The idea behind the project was the function should concentr
942.
▲
by
irahul
15y ago
Won't that defeat the whole point? Contract based programming means your function assumes certain properties and acts accordingly. If you turn off the contract enforcers, your function will still be acting under the assumptions that the in
943.
▲
by
irahul
15y ago
> The huge number of lambdas had a tendency to muddle the first example; somebody should tell this gentleman about the `operator` module. The lambdas are how you specify the constraints. How does operator module help here? @ensure
944.
▲
by
irahul
15y ago
I liked contracts in Racket, so ported some of it to Python. These checks can very well be done inside the called function but decorators enable a more declarative style.
945.
▲
by
irahul
15y ago
A bit OT and not sure if you will see this. Seeing that you are the guy(or onof the guys) behind redis which is written in C, do you have any recommendations for generic data structures and operations on them? I personally have a trivial ve
946.
▲
by
irahul
15y ago
If you are developing, `gcc -g` while compiling(or CFLAGS += g), and loading the core with gdb does give a very good idea of what went wrong.
947.
▲
Contract based programming (Python)
(github.com)
50 points
by
irahul
15y ago
|
12 comments
948.
▲
by
irahul
15y ago
No, I was thinking binary 19. Does C say the implementation is going to be 1s complements, 2s complements or whatever? Is there anything that says, for example, it can't be BCD?
949.
▲
by
irahul
15y ago
> "v" is now 9, and to really understand it one must grasp how numbers are represented in binary under the hood. Correct me if I am wrong, but I don't think C guarantees anything about the binary representation. Depending on the archite
950.
▲
by
irahul
15y ago
K&R won't work for someone beginning programming. This book is specifically targeted towards teaching programming to programming virgins. The examples and exercises K&R uses will be very hard for beginners. When it builds a recursiv
951.
▲
by
irahul
15y ago
Different people learn differently. Some people don't like to practice the trivial practice stuff, and prefer to breeze through the beginning, read through new material, and then take on some real project. Rich Hickey, recently in an interv
952.
▲
by
irahul
15y ago
May be a good idea to mention some of them. `valgrind` and `lint` comes to mind. On second thoughts, `lint` can be dropped; compiler warnings are good enough for a beginner(in fact, good enough for experienced programmers; subjective).
953.
▲
by
irahul
15y ago
Was it your first book? If not, you weren't in the target audience from what I make out of the contents of the book. For people who already know programming, the official tutorial is the fastest and the best way to start: http://docs.pytho
954.
▲
by
irahul
15y ago
I much prefer using %g for the general scenario.
955.
▲
by
irahul
15y ago
C is difficult, yes. Dangerous - I don't know in what sense. I manage to get more exceptions in my Python, Ruby code, owing to undefined variables or incorrect types, than I get segfaults in C. The main issue with C is it takes some time be
956.
▲
by
irahul
15y ago
Leaving it at "crash and don't do it" is enough for a beginner C book. Mentioning code execution and shell code isn't really in the scope. If he mentions code execution, then it sort of warrants mentioning modern architecture prevent execut
957.
▲
by
irahul
15y ago
Sometimes due to language discrepancies, skills don't transfer and there is no easy "feel free to skip to chapter x". For example, a conversant Python programmer's idea of string, and strings in C are 2 different things. A conversant C prog
958.
▲
JSIL: Compile .NET to Javascript
(stateofcode.com)
2 points
by
irahul
15y ago
|
0 comments
959.
▲
Ask HN: What's the Google+ stack?
54 points
by
irahul
15y ago
|
18 comments
960.
▲
by
irahul
15y ago
I don't think Khan claimed about teaching expert level material. `Superficiality` is a strong word. Zed Shaw's LPTHW is for beginners, but not superficial. Similarly, most of Khan's lectures target a particular audience. Some of his lecture
More ›