Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
benhoyt
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
46 ms
·
541.
▲
by
benhoyt
8y ago
That's a neat idea! (Though not necessarily in the spirit of AWK as a simple text processing language. :-) I started playing with something like this in a previous language interpreter I made in Go ( https://github.com/
542.
▲
by
benhoyt
8y ago
Interesting point. I've though that AWK should have a mode where it does proper quote parsing of CSV files. Maybe I'll add a -csv option for that (or just have it do it automatically when the FS is ',' -- though that wou
543.
▲
by
benhoyt
8y ago
Huh, interesting. So one thing I haven't focused on much yet is performance. It is slightly faster than "one true awk" on large inputs with very simple programs, so I'm guessing Go's I/O speed is pretty good, b
544.
▲
by
benhoyt
8y ago
That's great! I'm curious how much these optimizations slow down the compiler, if any? I remember something about Go only adding optimizations if the amount they increased the speed of the binary meant that compilation speed was s
545.
▲
Scanning on Demand (Crafting Interpreters Chapter 16)
(craftinginterpreters.com)
12 points
by
benhoyt
8y ago
|
0 comments
546.
▲
Go directory structure and manual dependency wiring
(elliotdwright.com)
1 points
by
benhoyt
8y ago
|
0 comments
547.
▲
by
benhoyt
9y ago
> Today, because programmers are delightfully spoiled by a wealth of nice, expressive type systems, I think they won't settle for simple and sound. To me that basically describes Go's type system. Very simple, allowing my brain
548.
▲
Afternoon diversion: Design your own microprocessor
(edn.com)
3 points
by
benhoyt
9y ago
|
0 comments
549.
▲
by
benhoyt
9y ago
The proposal explicitly allows for a "proxy" so you don't have to pull from GitHub et al: > Define a URL schema for fetching Go modules from proxies, used both for installing modules using custom domain names and also when
550.
▲
by
benhoyt
9y ago
I hereby declare, proclaim, and certify that I consider the Python programming language no less than 100 times as understandable, clear, and readable than English written for a legal, formal, or legislative context.
551.
▲
by
benhoyt
9y ago
Yes, this is common for Arab men -- when I was in Sudan men (even middle aged and older men) held hands walking down the street. To a westerner it just looks very odd, but it's normal for them. However, I think your (gowld's) comm
552.
▲
by
benhoyt
9y ago
I'm no fan of MySQL either, but probably because they were already using MySQL and they had some Business questions they wanted answered Intelligently without setting up a bunch of new infrastructure. Sometimes at a startup you just ne
553.
▲
Learning more Go and some computer science by implementing a language
(benhoyt.com)
2 points
by
benhoyt
9y ago
|
0 comments
554.
▲
by
benhoyt
9y ago
The book is coming out chapter by chapter, so I linked to the latest chapter that was just published.
555.
▲
Crafting Interpreters – Inheritance
(craftinginterpreters.com)
7 points
by
benhoyt
9y ago
|
3 comments
556.
▲
by
benhoyt
9y ago
Oh, very interesting! This is somewhat similar to a hack project I did recently, but more dynamic -- going from bytecode and doing the assembly at runtime amps things up a bit! Mine works from a Python AST and is much more static, but it al
557.
▲
by
benhoyt
9y ago
No, there was no appreciable user benefit, and that was intended. To respond to others: it wasn't a "premature" optimization, because it wasn't any kind of optimization. The sole benefit in this case was for me to learn
558.
▲
Learning Go by porting a medium-sized web back end from Python
(benhoyt.com)
242 points
by
benhoyt
9y ago
|
195 comments
559.
▲
Crafting Interpreters: Classes
(craftinginterpreters.com)
132 points
by
benhoyt
9y ago
|
32 comments
560.
▲
by
benhoyt
9y ago
I just set up CI tests for some of my Python libraries on GitHub, and another tool to note is Appveyor -- very useful for running tests on Windows (which Travis doesn't do yet). Example: https://github.com/benhoyt/
561.
▲
by
benhoyt
9y ago
What editor are you working on?
562.
▲
by
benhoyt
9y ago
On my system (macOS) I see a minimum of 0m0.034 for Python 3.6.1 and a minimum of 0m0.022 for Python 2.7.13 -- so Python 3.6 is 50% slower. This is a somewhat contrived example, however. As the article notes, it's worse when you have a
563.
▲
by
benhoyt
9y ago
Counterpoint I wrote a while back that focuses on compilation speed: http://benhoyt.com/writings/language-speed/ I've used Scala a fair bit recently, and the compiler is so dog slow it's painful. Maybe i
564.
▲
by
benhoyt
9y ago
Excellent! Where's the Donate button or call to action for businesses who want to support this? There's a small link in the sidebar to "Donation page", but that doesn't seem to have a place to donate for the remove-
565.
▲
Show HN: Upload static files to a CDN with a content-based hash in the filenames
(github.com)
1 points
by
benhoyt
9y ago
|
0 comments
566.
▲
by
benhoyt
9y ago
Yeah, I worked for Oyster (www.oyster.com) and had NSFW instant search issues all the time -- if I mistyped our site domain with two W's as "ww.o" the Instant Search results displayed a rather lewd image. Uh, sorry boss, that
567.
▲
Fast pentomino puzzle solver ported from Forth to Python
(benhoyt.com)
65 points
by
benhoyt
9y ago
|
14 comments
568.
▲
by
benhoyt
9y ago
Wow, that looks really good -- thanks for sharing the link. Yeah, it's definitely similar to what I'm doing but in a more formal and non-toyish way.
569.
▲
by
benhoyt
9y ago
Sorry, I didn't have a use case -- I did it purely for fun. However, I got the idea when I was trying to optimize some Python bytecode.
570.
▲
Compiling a subset of Python syntax to x86-64 assembly for fun and zero profit
(benhoyt.com)
137 points
by
benhoyt
9y ago
|
15 comments
More ›