Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
trishume
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
23 ms
·
181.
▲
by
trishume
9y ago
But Halide does have higher performance, is portable to many platforms as well as GPUs, CPUs (w/ parallel SIMD), and isn’t used for ML models...
182.
▲
by
trishume
9y ago
I think you’re confusing two separate things. There’s two separate approaches to a computer vision task: classical and deep learning. Halide and OpenCV are for classical approaches, TensorFlow is for deep learning. People don’t use both for
183.
▲
by
trishume
9y ago
Halide is much more flexible. OpenCV is a fixed high level toolbox, combining things requires lots of intermediate buffers. Halide allows compiling arbitrary kernels in a fused way with extremely good performance. Sure you could implement O
184.
▲
Enfasten: Automatically make your site faster with optimized responsive images
(github.com)
2 points
by
trishume
9y ago
|
0 comments
185.
▲
by
trishume
9y ago
You can subscribe to Veedrac's HN comments on RSS like I do. I've found a bunch of people like Veedrac regularly write really interesting things in HN comments, so I wrote an app that lets you subscribe to them: http://
186.
▲
by
trishume
9y ago
Glad you found my writeup useful, and your CT stuff sounds interesting. You may also find https://github.com/google/xi-editor/issues/250 interesting, especially the TODO list of optimizations. Yes the Xi CRDT
187.
▲
by
trishume
9y ago
https://github.com/google/xi-editor uses many similar ideas to implement concurrent editing by plugins and other devices. In fact nathansobo, the author of this post, wrote a summary of some of the work Raph Levien (Xi
188.
▲
by
trishume
9y ago
I mean, it wasn't, but no comment is. Judging by all the upvotes people seemed to get value from it. I think it's interesting to compare syntax highlighting approaches. If syntect was literally the same thing, but only usable in R
189.
▲
by
trishume
9y ago
It'll hopefully be faster. The Rust regex engine is quite fast, I haven't done any profiling to figure out why performance was the same in my initial test. There might be something easy to fix. It's definitely possible to get
190.
▲
by
trishume
9y ago
Syntect's grammars are regex based, they're based on ST3's grammars which are an extension of the fundamental model used by Textmate/Atom/VSCode. They're stronger than just regexes though, there's a fancy
191.
▲
by
trishume
9y ago
Shameless plug for my syntax highlighting library in Rust which uses Sublime Text 3 grammars, which give much richer highlighting and semantic information than Pygments: https://github.com/trishume/syntect Sourcegraph
192.
▲
by
trishume
9y ago
There's also https://github.com/NeoVintageous/NeoVintageous , which is a maintained fork of Vintageous with some things cleaned up, and some bugs fixed.
193.
▲
by
trishume
9y ago
I've been very satisfied with https://github.com/divmain/GitSavvy and GitGutter. Together they are how I do almost all of my git.
194.
▲
by
trishume
9y ago
I don't encounter either problem: 1) If I'm editing things that don't fit on one screen, I'll scroll and check them all after I'm done. This is no slower than the scrolling needed during the step of applying a macro
195.
▲
by
trishume
9y ago
When I grow up, I want to be a Dangerous Professional.
196.
▲
by
trishume
9y ago
The two main reasons I use and love multiple cursors aren't mentioned here: 1. I find it's easier to figure out what I want. If I use a command that doesn't generalize, I see it immediately. When I use vim macros I find I eit
197.
▲
by
trishume
9y ago
You're correct, that crate doesn't solve the cycle problem. There is a different way of doing arenas in Rust that does though. What you do is you put all of your tree nodes in a big Vec<Node> and instead of referring to chil
198.
▲
by
trishume
9y ago
I'm not blind, but I found this comment by a blind programmer really interesting. Block comments are way more important when using a screen reader: https://github.com/rust-lang-nursery/fmt-rfcs/issues/17#
199.
▲
by
trishume
9y ago
Expanding on the other comment, the answer is that Jane Street uses OCaml, where they have to build many of the libraries themselves. They've built good libraries for s-expressions but not for YAML. They've also built an ecosystem
200.
▲
by
trishume
9y ago
Wow, this is the first time I've been recognized for my obscure Rust syntax highlighting library. Glad you like it. It is one of the projects I've put the most work into, but in the rare occasions I'm recognized it's nor
201.
▲
by
trishume
9y ago
Neat, it looks similar in spirit to the original dynamic programming diff algorithm I used, but it doesn't have the A* acceleration so I imagine it doesn't scale to large files. Probably nice for most cases though.
202.
▲
by
trishume
9y ago
Indeed, this is a good document for Pony (and a lot applies to other languages like OCaml as well!) but it shows what programming in a language like Rust or C++ that has many zero-cost abstractions gets you. In Rust I can always use wrapp
203.
▲
by
trishume
9y ago
You might want to check out https://reasonml.github.io/ . It's a new syntax and set of tools for OCaml that are better in many ways but compatible with the existing ecosystem and tools.
204.
▲
by
trishume
9y ago
Multicore OCaml is in the works and is looking amazing, but is indeed a ways away. They're taking their time and doing it properly so things are fast and safe.
205.
▲
by
trishume
9y ago
Iterators are the main place this is difficult, but as steveklabnik says the compiler can tell you the return type. However, this will get better with the introduction of "impl Trait", where the return type will become `impl Itera
206.
▲
by
trishume
9y ago
Yah I know normal linked lists are totally possible in all languages. I should have specified I was talking about the use case of sharing data through immutable singly-linked lists. In these languages you use them specifically because you c
207.
▲
by
trishume
9y ago
This is a similar approach to what Jonathan Blow demo'd recently in his Jai language. He uses relative offsets from the location of the pointer instead of from the base of the region though. The advantage there is that you don't n
208.
▲
by
trishume
9y ago
Linked lists make way more sense in languages with bump-pointer allocating garbage collectors specifically. In those languages (e.g Haskell, OCaml, Java) allocation is really cheap and they preserve locality so allocating all the links isn&
209.
▲
by
trishume
9y ago
This looks similar to Jane Street's Incremental library for OCaml. It has the same structure of a nice library for doing incremental computation of outputs triggered by changes to the inputs by composing computations. https:/
210.
▲
by
trishume
9y ago
I wonder how easy it would be to use JSC's WebAssembly backend separately from the rest of Webkit, and maybe even have it output to a static binary. And maybe connect its FFI with a different language than Javascript (maybe Go?). Given
More ›