Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
patrec
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
86 ms
·
811.
▲
by
patrec
7y ago
Which version of awk did you benchmark though? Mawk is pretty fast, for bread-and-butter awk stuff often significantly faster than perl. E.g. perl -anE 'say($F[0]) if /error/' big.log >/dev/null 0.85s
812.
▲
by
patrec
7y ago
Out of curiosity, why are you using docker containers on windows? For emulate static linking or to provide network/process isolation (and does docker under windows provide "proper" i.e. secure isolation?) or something else e
813.
▲
by
patrec
7y ago
https://github.com/norvig/paip-lisp
814.
▲
by
patrec
7y ago
> Converting an exception into a return. Which loses the "have to deal with it; cannot ignore it" property that made the exception valuable. [[nodiscard]] -Werror
815.
▲
by
patrec
7y ago
Thanks, I wasn't aware of this.
816.
▲
by
patrec
7y ago
That's an excellent reason not to -- I wasn't previously aware that docker had native windows application support on windows.
817.
▲
by
patrec
7y ago
I can see three broad reasons people develop on Windows: 1. They want to create a Game or Windows end user UI App (e.g. Overwatch or Photoshop) 2. They write some internal corp tooling or B2B software for windows shops (e.g. gluing some SAP
818.
▲
by
patrec
7y ago
In what way does docker on macOS interoperate better with the rest of the system than a nix package? I'm pretty sure the answer is going to be "none" – you can build native, including UI apps with nix (not that I recommend th
819.
▲
by
patrec
7y ago
So why not run nix in docker till Windows gets first class support?
820.
▲
by
patrec
7y ago
Nonsense. You can run nix on basically any linux system (not just NixOS) and macOS. Not just theoretically, I'm doing both and am not running NixOS itself at all ATM. It's also the only sane way to build docker images. Since nix i
821.
▲
by
patrec
7y ago
This is an annoyingly ignorant comment. Nix, unlike say docker, actually solves a problem correctly in a principled way: reliably and reproducibly going from source artefacts and their dependencies to installed binaries/libraries/
822.
▲
by
patrec
7y ago
Try Cmd+Shift+G in finder or open dialogues.
823.
▲
by
patrec
7y ago
Apparently you can generally assume x = x, which seems like a very nice feature and one that's perversely absent in all other programming languages I can think of. https://bertrandmeyer.com/2010/02/06/ref
824.
▲
by
patrec
7y ago
Depends on the editor, of course, but e.g. https://www.emacswiki.org/emacs/redshift-indent.el (Haven't tried the above, but I've done fairly extensive display hacks with emacs in the distant past, so I have a
825.
▲
by
patrec
7y ago
This argument sounds quite bizarre to me. Why would a visually impaired programer not manage to set their editor up to show indenting spaces the way they want, or failing that, collaborate with others to do so? It's not like they can b
826.
▲
by
patrec
7y ago
> Any engineer who comes up with a solution that requires less new code being written is a more valuable engineer IMO Of course less code is good, all things being equal. But taking that idea literally, basically no tooling code gets eve
827.
▲
by
patrec
7y ago
Just because you're not doing much (any?) interesting engineering doesn't mean you're not creating a lot of value. But it probably does mean that if you really deeply care about engineering in itself you should reconsider y
828.
▲
by
patrec
7y ago
Imagine a world without search engines and omni bars. This newfangled world wide web thing comes along and looks like it might become popular, but it's totally new to most people, who happen to be 99% of your customers. If they type `c
829.
▲
by
patrec
7y ago
Would the same bright undergrad be likely to believe that stopping scraping on a service with a billion users is an easy problem?
830.
▲
by
patrec
7y ago
> But I ask myself: How difficult can it be for a billion dollar revenue company? Am I the only one who has trouble believing that someone who was at a technical level involved in scraping and running facial recognition on 200k photos w
831.
▲
by
patrec
7y ago
Then you dont really end up with a DSL that looks just like the one in the article, though – this is noticeably less nice :) The best I could think off were designated initializers like: Div{{.class = "footer"}, B{"some
832.
▲
by
patrec
7y ago
How would you do attributes?
833.
▲
by
patrec
7y ago
Well, all things being equal a cleaner and more understandable language is going to be easier to implement, so I don't think difficulty of implementation should be dismissed so easily. Especially when the difficulty of implementation i
834.
▲
by
patrec
7y ago
Correct, and I think this is what they are doing -- you can optionally keep the sha1s around.
835.
▲
by
patrec
7y ago
Correct, but backwards compatibility does make a difference here, as in: there are surely quite a few cases where it would not be attractive to use a shortened hash if git hashes are changed incompatibly anyway, but where it will be attract
836.
▲
by
patrec
7y ago
I supposed you are advocating two distinct Merkle trees? Because otherwise the prefixes will change anyway. But the only reason this would be attractive is because then people could keep using the existing prefixes to refer to the whole com
837.
▲
by
patrec
7y ago
I'm sceptical of the idea that the good things about python make it hard to implement. Compared to forth – sure! But most of the non-simplicity beyond what's attributable to not being an ultra-bare bones languages comes from organ
838.
▲
by
patrec
7y ago
Exceptions don't generally have a large performance overhead, they do in C++. Ocaml exception handling for example was orders of magnitude faster last I looked. And C++ itself is seeking to fix the super-slow design: http:/
839.
▲
by
patrec
7y ago
If you mean the pseudo-code like quality that (sadly) remains a distinguishing feature, I completely agree. Simplicity, as in terms of specifying the grammar though? Python's grammar is exceedingly gnarly by now and I'm pretty sur
840.
▲
by
patrec
7y ago
There is truth in that, but also a bit of "he who can't do what he wants must want what he can do". The only reason python still matters (more than ruby) is because of its dominance in ML/datascience. And this ecosystem
More ›