Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jez
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
16 ms
·
181.
▲
by
jez
4y ago
As a Vim user I particularly liked this tweet thread on the topic recently: https://mobile.twitter.com/hillelogram/status/15676069643974... The central point of the thread was that VS Code is designed to be extend
182.
▲
by
jez
4y ago
I had the same problem. I was trying to click on things but not drag. Maybe if one of the animals is clicked but not dragged, it could expand and immediately get small, as if it had been dragged 0 pixels?
183.
▲
Zero-Configuration Networking
(en.wikipedia.org)
2 points
by
jez
4y ago
|
0 comments
184.
▲
by
jez
4y ago
Have you used this before? What was the domain?
185.
▲
by
jez
4y ago
Ah sure, this alternate implementation assumes that the BlogPost class is final and never subclassed. If you plan to subclass BlogPost, the translation is not identical, as the alternate implementation would not keep track of a global count
186.
▲
by
jez
4y ago
There's more than one way to write the corresponding Ruby snippet. If I had been writing it, I might have translated it something like this: class BlogPost class << self attr_accessor :count end se
187.
▲
Benchmarking the Linux Mitigated Performance for Retbleed
(phoronix.com)
3 points
by
jez
4y ago
|
0 comments
188.
▲
by
jez
4y ago
Do any of the string types in the Rust standard library implement the same sort of small string optimization that C++ libraries implement for std::string? (explained here[1]) Some quick searching turned up a few rust-lang internals posts an
189.
▲
WireGuard Trademark Usage Policy
(wireguard.com)
2 points
by
jez
4y ago
|
2 comments
190.
▲
by
jez
4y ago
HSTS doesn’t apply to websites served by directly connecting to an IP address, right? (I couldn’t find any layman’s docs that said it in so many words, nor did I want to test it locally. My guess comes from a reading of section 8.1.1 in the
191.
▲
by
jez
4y ago
I use a tool called rcm[0], which is essentially a set of shell scripts for managing symlinks from $HOME into $HOME/.dotfiles. $HOME/.dotfiles can then be a git repo. Some notes: 1. rcm lets you decide make host-specific or host-a
192.
▲
How code review works (and doesn't) in the real world [video]
(youtube.com)
2 points
by
jez
4y ago
|
0 comments
193.
▲
by
jez
4y ago
I kind of wish they had asked whether respondents had come across semantic similarity, or had previous experience with linguistics, NLP, or sentiment analysis. I don’t think I’m particularly creative but guessing at how it must have been im
194.
▲
Ask HN: Bank with Yubikey support?
45 points
by
jez
4y ago
|
27 comments
195.
▲
by
jez
4y ago
This is definitely true but like you mention because there’s a common communication channel and message format, these language-specific RPC endpoints exist whereas before LSP, language servers didn’t have “custom” features because there w
196.
▲
by
jez
4y ago
I think this post hits the nail on the head. Before LSP, you could google for “$language Vim support” and find some results but more often than not, you were going to get nothing. Once LSP gained popularity, the question shifted to “why doe
197.
▲
by
jez
4y ago
Does Vale’s parser tolerate syntax errors well? Keywords are great because they provide redundancy in the grammar that allows for good syntax error messages and recovery. I recently lamented the absence of a let token in Ruby while working
198.
▲
by
jez
5y ago
> How was this implemented? The mechanism in the post is the same mechanism in use today with Sorbet signatures. To get the `sig` method in scope, you have to put `extend T::Sig` in that class (or one of its parents). When `sig` is calle
199.
▲
by
jez
5y ago
PR from my teammate Trevor is was just posted which should hopefully fix the issue you linked: https://github.com/sorbet/sorbet/pull/5533
200.
▲
by
jez
5y ago
typo past the edit deadline: "not experimental" instead of "not incremental" (I've got incrementality on the mind these days it seems)
201.
▲
by
jez
5y ago
Note that Shopify is much better about keeping up with regular Ruby updates (Stripe takes a pretty conservative approach there), and they're using it with Ruby 3+ with no problem. You're right that Sorbet does not yet catch these
202.
▲
by
jez
5y ago
Interestingly enough, I don't recall there ever being much pushback against static types at Stripe. The "evangelizing" work was more organizational: convincing people that yes, it is possible to build a production-ready type
203.
▲
by
jez
5y ago
Unfortunately while we've developed the Sorbet Compiler in the open, we've mostly focused on internal-only use cases. There are other exciting efforts to improve Ruby performance though! You might be curious to read more about YJI
204.
▲
by
jez
5y ago
They're basically Hash literal types in Ruby. It's what TypeScript calls object types: https://www.typescriptlang.org/docs/handbook/2/objects.html (Ruby and JavaScript mean slightly different things
205.
▲
by
jez
5y ago
My experience has been that the people opposed to types won't be convinced to start liking them by anything you can tell them or have them read. In all of the cases where I've seen Sorbet be adopted, the process looked like this:
206.
▲
by
jez
5y ago
Hoping to have this specific issue fixed either today (or by the end of the week at the latest). So sorry for the delay in getting around to this!
207.
▲
by
jez
5y ago
Thanks for your work on RDL! The post didn't mention it, but Sorbet still owes most of its type definitions for the Ruby standard library to RDL's original annotations. We just borrowed them and changed the syntax. Our general app
208.
▲
by
jez
5y ago
We discovered a bug in `srb init` for Ruby 3.1 recently that a teammate of mine is working on fixing at the moment. It's likely that if you tried again in a few days it'll have been fixed. Sorry about that, totally agree that the
209.
▲
by
jez
5y ago
Unfortunately I don't know of an example repo, but I do know that most projects (except Stripe) who use Sorbet use it with Rails. There's a #rails channel on Slack—maybe you'd like to try asking there! https://sorb
210.
▲
by
jez
5y ago
Somewhat. They don't all need super specific types for every method they've defined, but Sorbet does at least need to know all the classes, modules, and constants in use in your codebase, whether those come from code you've w
More ›