Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
trishume
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
28 ms
·
241.
▲
by
trishume
10y ago
Hasn't this always been against the App Store terms? I thought the only language you were allowed to download code from the internet and run was Javascript on Apple's VM.
242.
▲
by
trishume
10y ago
I used this for developing an audio recognizer ( https://github.com/trishume/PopClick ) and it was incredibly cool and useful. You can write your own recognition and analysis plugins pretty easily and then overlay those
243.
▲
by
trishume
10y ago
That specific example isn't actually true. Even with no prior history if you search "python" the first result is the programming language. That's because Google is smart and despite the fact that more people know of Pyth
244.
▲
by
trishume
10y ago
I wonder how different browsers rasterize tiling SVG backgrounds. Ideally they should rasterize it once to a buffer and then just blit it a bunch of times. But if any browser tries to rasterize it every repetition that's a ton of vecto
245.
▲
by
trishume
10y ago
SVM is super cool, but there's a huge caveat: Not only is it closed source, but you can't even use things it outputs in production. The TruffleRuby wiki notes that the output of SVM is covered by http://www.oracle.com&#
246.
▲
by
trishume
10y ago
Students at UWaterloo have been running a hackathon like this every term for a couple years now. It's always super fun. Links: http://terriblehack.website http://www.davepagurek.com/blog/terriblehack&#x
247.
▲
by
trishume
10y ago
Airlines are pretty incredible logistically. The ability to get together all the right tools, a custom tent, a new engine, and engineers onto a heavy lifting plane (of which there are very few in the world) in a reasonable time frame to a r
248.
▲
by
trishume
10y ago
I think this is n-th hand reporting of the exact same draft executive order that has been out for weeks. It is just repeating speculation of other news sources as to what the actual reforms will be and losing some of the fact that it is mer
249.
▲
by
trishume
10y ago
It's true that Wayland uses more RAM and if you don't have enough swapping will kill you. But in this case (and others) RAM use is inversely correlated with performance. For example Wayland uses more RAM as full backing buffers fo
250.
▲
by
trishume
10y ago
Sorry that's what I meant. Just export c ABI functions in a Rust crate.
251.
▲
by
trishume
10y ago
That's not a perfectly fair comparison. Vim's syntaxes are often super simple and do a much less nice job at highlighting than most tmLanguage syntaxes. Also all that video tests for is the presence of an optimization where it upd
252.
▲
by
trishume
10y ago
So I ran the sqlite3.c benchmark on my machine (a comparable "somewhat powerful" machine) and it took 6.7s with my engine vs 10.9s with the new VSCode one. Both are doing tokenization+theme matching but the machines and exact gram
253.
▲
by
trishume
10y ago
Copy-pasted from a comment I made elsewhere: It's harder than it sounds if you want to support many languages. The Sublime syntaxes repo I use has 34,000 lines of grammars whereas my engine is only 3000 lines of code. If you count all
254.
▲
by
trishume
10y ago
lol I typed that on an IOS device correctly but it autocompleted it since "regex" isn't a real word apparently.
255.
▲
by
trishume
10y ago
It's harder than it sounds if you want to support many languages. The Sublime syntaxes repo I use has 34,000 lines of grammars whereas my engine is only 3000 lines of code. If you count all the tmLanguage files for nice languages avail
256.
▲
by
trishume
10y ago
Yes it would be possible to write a C wrapper for my Rust library and link that from Node, however I expect you might lose a lot of performance to data conversion. I have yet to do the regex engine port, I'm doing that later this eveni
257.
▲
by
trishume
10y ago
Shameless plug: my implementation of Sublime's syntax highlighting engine in Rust has similar optimizations and more. I'm not at my computer to benchmark on the same files but it should be >2x as fast as their "after"
258.
▲
by
trishume
10y ago
The reason is that they basically rely on using the Oniguruma regret engine, and reimplementing that in JS would be hella slow.
259.
▲
by
trishume
10y ago
Definitely aware of this, however the TN visa doesn't have a path to a green card. A common strategy for Canadians is to come in on a TN visa and then repeatedly apply for an H1-B and hope to win the lottery while you are there. It bas
260.
▲
by
trishume
10y ago
I grant you this is in fact not the perfect reform bill, the question is, is it better than the current situation? To me it looks like it's at least somewhat better, so as a Canadian who may want to move to the US at some point, I'
261.
▲
by
trishume
10y ago
Not much interesting in there it seems. TL;DR: Let's all review everything and decide on ways to improve things.
262.
▲
by
trishume
10y ago
The progress bar gem looks pretty nice. I've been using the similar https://github.com/toy/progress for a long time and it's super useful. One thing I prefer about progress is that the default config includes
263.
▲
by
trishume
10y ago
Agreed. Rust is different from other languages in that it is HARD to learn. It took me 3 projects and thousands of lines of code before I finally felt like I'm okay at Rust. Each project involved tons of compiler fighting that I now kn
264.
▲
by
trishume
10y ago
When I'm using a REPL I generally have all my function definitions in a file I edit in Sublime, which I reload from the REPL, then I just type in commands in the REPL to try out those functions. That way I don't have to copy-paste
265.
▲
by
trishume
10y ago
I set my autocomplete/snippet expansion key to tab (it's a Sublime setting) so that I never have any conflicts. Sublime actually tries harder than other editors to avoid these, but it's not perfect. See for example https:&#x
266.
▲
by
trishume
10y ago
Sublime sounds like exactly what you want. I use the mouse all the time, especially when I'm doing a lot of reading and navigating. For these tasks the mouse is actually substantially faster. But when I already have my hands on the key
267.
▲
by
trishume
10y ago
I really suggest you try out Sublime with Vintageous vim emulation. Part of the reason I spent so much time tweaking emacs is that I work in a lot of different languages, and I had to spend many hours setting up each one. Installing and wor
268.
▲
by
trishume
10y ago
Good article. Sublime Text has a lot of power up its sleave. I think a lot of people ditch Sublime for vim or emacs because they want a more powerful editor without trying to learn the more advanced features of Sublime and customize it to t
269.
▲
by
trishume
10y ago
A fantastic book covering similar things that you can read right now is https://pragprog.com/book/tpdsl/language-implementation-patt... . It's the book that got me into interpreters and compilers, I highly rec
270.
▲
by
trishume
10y ago
Is there somewhere I can find full pricing information for every spec configuration? I dislike how difficult this is to find on new non-Apple laptop announcements.
More ›