Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
trishume
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
16 ms
·
91.
▲
by
trishume
7y ago
Thanks tobi <3 I remember hearing you mention my talk when I was back at Shopify a couple years later (context for others: my first internship I was in grade 11 but I went back 2 times, Shopify is great) and realizing that at many other
92.
▲
by
trishume
7y ago
Basically, all the parsing is based on unanchored regexes. This means that Liquid will just ignore syntax that doesn't match what it expects instead of giving a syntax error. One example is `{% if this && that %}`, which is not
93.
▲
by
trishume
7y ago
Yah PBRT was my most important resource for completing this project, way more important than anything I learned in course lectures. I read it cover to cover before doing much, but then made sure I wrote things how I wanted without referenci
94.
▲
by
trishume
7y ago
Cool, I actually wrote that eye tracking thing back when I was in high school myself. It's cool that people still find it useful, it's definitely not up to my current quality standards, but I remember scouring the internet for som
95.
▲
by
trishume
7y ago
Well I hoped to be on HN today for my high-effort blog post on generics and metaprogramming ( http://thume.ca/2019/07/14/a-tour-of-metaprogramming-models-... ) but at least I'm on HN for something :P Edit:
96.
▲
Models of Generics and Metaprogramming: Go, Rust, Swift, D and More
(thume.ca)
81 points
by
trishume
7y ago
|
6 comments
97.
▲
by
trishume
7y ago
It seems like most or all of the benefits listed in this post could have been achieved just as easily by changing code in their monolith. Like the ElasticSearch optimizations and the decoupling from the relational database. Similarly the be
98.
▲
by
trishume
7y ago
The older TabNine works for any language because it's based on looking at the rest of your project. Deep TabNine is new and requires lots of open source training data for each language to work well. Maybe there is enough open source tr
99.
▲
by
trishume
7y ago
(disclaimer: not the author) One problem is that deploying GPU neural networks cross-platform is a huge pain. You basically have to get your users to install CUDA and figure out how to dynamically link against that on Windows and Linux, Mac
100.
▲
by
trishume
7y ago
I'm really confused about why stock for the company that makes PokerStars hasn't moved at all today: https://www.google.com/search?tbm=fin&q=TSE:+TSGI#scso=_wqsn... The fact that there's a published recip
101.
▲
by
trishume
7y ago
Nope undergrad. UWaterloo just has a special co-op program that extends the degree and fits in six four-month internships in alternating school and work, for a total of two years of work experience by graduation.
102.
▲
by
trishume
7y ago
I expect Go would end up like C++ without header files or OCaml without sum types and pattern matching, falling somewhere in between them. Although if errors are handled properly instead of by panic then it might really hurt in the line cou
103.
▲
by
trishume
7y ago
Preaching to the choir, I personally use Ruby over Python :) But I had to source from friends in the class, and my group used Rust because I'm all about that performance and correctness nowadays.
104.
▲
by
trishume
7y ago
No I don't know how fast her compiler was. This also isn't a good setup for comparing language performance, since all the test programs were small and there was no incentive to make your compiler fast. Many groups probably used O(
105.
▲
by
trishume
7y ago
Fun fact the person you're replying to is the creator of D, I'm pretty sure he likes it. I've personally played around with D a bit and written maybe 1kloc in it and I like it. It doesn't have good pattern matching or th
106.
▲
by
trishume
7y ago
Note my half the size estimate was after estimating the amount of code dedicated to extra features. The raw line count is only 0.7x the size of our non-test line count. Although my estimate of how many lines it would have taken without the
107.
▲
by
trishume
7y ago
I agree it's definitely an interesting result and a point in favour of dynamic languages. A caveat is that I'm pretty sure my friend intentionally sacrificed code quality to do it, I don't think you'd find that project a
108.
▲
by
trishume
7y ago
There was a general prohibition on libraries that don't ship with the compiler, but you could ask the professor for an exception. Someone asked about Boost and a blanket exception for the non-parsing and scanning parts of Boost was gra
109.
▲
by
trishume
7y ago
My professor was definitely a good professor and no way they would have done that. It clearly would have been done as an added challenge for themselves for fun and there's no reason to penalize that.
110.
▲
by
trishume
7y ago
Note that project is the outlier for how much code it contained. That team did have the most trouble getting things done on time and fixing all the bugs, so they passed the least tests, as one would expect given how much code their design c
111.
▲
by
trishume
7y ago
None of it is open source because it was done for a school course that uses the same project every term. The only use for having access to the code would be cheating on that project. The school gets mad when people publish the source for th
112.
▲
by
trishume
7y ago
I don't think monadic parser libraries have a real claim to be that difference. All the languages listed have excellent parsing libraries that make things similarly easy, if not by language power than by grammar DSL with embeddable cod
113.
▲
by
trishume
7y ago
A few groups did give me output from a modern line counter, often Tokei or loc. I mention in the post that the ratios between source lines, word count lines and bytes were pretty similar across all projects. If people want to get a sense of
114.
▲
by
trishume
7y ago
Yah I figure it would be like Python but better if you were allowed to use the language design libraries. However the course specifically forbids standard library components that are designed for implementing languages so that you have to w
115.
▲
by
trishume
7y ago
We got to choose. Everyone on our team had some experience in Rust and OCaml, the two of us more experienced in Rust were pretty indifferent between OCaml and Rust, and our third teammate wanted to use the project to learn more Rust so that
116.
▲
Comparing the Same Project in Rust, Haskell, C++, Python, Scala and OCaml
(thume.ca)
783 points
by
trishume
7y ago
|
370 comments
117.
▲
by
trishume
7y ago
You can hear these sounds yourself using a carefully crafted pattern! This phenomenon was discovered on HN years ago and I made it into this prototype back then: http://thume.ca/screentunes/ It's cool that even mo
118.
▲
Writing a Compiler in Rust
(thume.ca)
3 points
by
trishume
7y ago
|
0 comments
119.
▲
by
trishume
7y ago
The accompanying blog posts includes a lot more information and screenshots: https://flow9.org/2019/04/26/why.html Interestingly, the language seems similar in a lot of ways to https://reasonml.git
120.
▲
by
trishume
8y ago
http://coconut-lang.org/ is actually a Python superset with algebraic data types and other functional programming features. It even compiles to Python that is compatible with both Python 2 and 3.
More ›