HNHacker News
TopNewBestAskShowJobs

vkjv

792 karma · joined January 16, 2014

submissionscomments
vkjv··on JavaScript to Rust and Back Again: A Wasm-Bindgen Tale
Small correction

> cargo install wasm-bindgen

should be

> cargo install wasm-bindgen-cli

vkjv··on Tell HN: 17 years on the same game
The Return of the Shadow MUD has been around since the 90s. Not only is the player base still active, the game is still actively being developed! Just in the last year the maintainers have added new skills, specializations, quests, and soon Beornings.

https://returnoftheshadow.github.io

vkjv··on Panerabread.com leaks millions of customer records
Ideally you wouldn't even need to ask for it.

https://securitytxt.org

vkjv··on Thoughts on Rust, a few thousand lines in
Types on collections got much less onerous once I realized that they could be partially elided.

    let another: Vec<u64> = some_vec.iter().map(|x|x + 5).collect();
Typically the `u64` part can be inferred based on the `map` function. Drop in `_` to elide the inner type.

    let another: Vec<_> = some_vec.iter().map(|x|x + 5).collect();
And if you are doing something later that implies `Vec<u64`, you can omit the type completely.
vkjv··on 100 days with Rust: a series of brick walls
This is a gap I would like to be filled by an IDE. Specifically, I'd like the inference that tells me the correct type in a compile error to auto-complete a function declaration for me. It would make the experience of pulling code into a helper function much easier.
vkjv··on Building a fast Electron app with Rust
Just wanted to say "hi" and that this is a great read! If you are interested, there is a Neon slack where some of us hang out. For example, you might be interested in neon-serde which could clean-up some of the argument parsing and match logic.

https://crates.io/crates/neon-serde

vkjv··on Rust in 2018: easier to use
Thanks to Rust's great C interoperability, hybrid can be a great approach. I've really been enjoying re-writing sections of node.js applications in Rust. It fits fairly seamlessly and can really broaden the scope of what is possible.

https://github.com/neon-bindings/neon

vkjv··on The Banana As We Know It Is Dying Again
The changes in bananas over time are pretty fascinating.

https://www.damninteresting.com/the-unfortunate-sex-life-of-...

vkjv··on Rotten Apples
This isn't terribly accurate. For example, Lord of the Rings is marked rotten because Weinstein got an executive producer film credit. But, he wasn't involved in the film at all. In fact, he was one of the contributing factors of it being moved to New Line.
vkjv··on Son: A minimal subset of JSON for machine-to-machine communication
Yes, this is correct, but, it's also exactly what you want in microservices.

You are free to make forward compatible API changes without a deployment dance.

E.g., you can add a field in the service and the caller won't see it until it is prepared to handle it properly.

vkjv··on Transpiled For-Of Loops Are Bad for the Client
Good tip, but while it works in this specific case, it isn't generally equivalent. "for of" works on anything that is iterable. This will only work on array-like objects.
vkjv··on Writing a Simple Linux Kernel Module
Has Linux stated any opinions on rust? Some of his issues with C++ also apply to rust.

> any compiler or language that likes to hide things like memory

vkjv··on Auto increment is a terrible idea
I still like auto-increment IDs. They are small and give you a monotonically increasing value for optimistic locking.

If you need multi-DC uniqueness. I prefer to add a 2nd DC column. The combination of the two is unique across DC.

If you need to hide the count from customers--often the case--add a 2nd surrogate unique key that is a UUID. This keeps your joins small, but gives you a random key to give back to the customer.

vkjv··on Amazon DynamoDB Update – Global Tables and On-Demand Backup
Thanks for the info. Custom resolution in lambda with vector clocks would be fantastic. Maybe in the future?
vkjv··on Show HN: Node.js node_modules file pruning
We've started publishing modules with a whitelist in the npmignore to help combat this.

    *
    !dist/**/*
vkjv··on Amazon Wants to Turn Lord of the Rings into the Next Game of Thrones
I am right there with you! My favorite part of the books. Although, I can understand why it was cut. It doesn't work in the context of a movie to have an epic world encompassing battle followed by a minor skirmish.

I feel like this story would be a good mini-series or standalone movie.

vkjv··on Amazon Wants to Turn Lord of the Rings into the Next Game of Thrones
My understanding is that LOTR is a mythology and not allegory. Any reading of allegory is in the interpretation of the reader and not the intent of the author.

https://www.goodreads.com/quotes/411971-i-cordially-dislike-...

vkjv··on The Mathematical Genius of Auto-Tune
Melondyne is great with this. Complete lack of vibrato is usually an obvious sign.

I think auto-tuners get a bad rap. As an amateur musician, subtle corrections in post-production can save me days of recording to get the right take.

vkjv··on PostgreSQL 10 Released
If they are no longer using it, would the license still apply?
vkjv··on Dumb Things Camera Companies are Still Doing
If the author of this blog is here, there is a nice padding around the content at most breakpoints, but not at 1200px. It makes it very difficult to read.
vkjv··on Welcome to the World of Software Defined Radio (2016)
My parents have an open layout house with the kitchen directly behind the living room. Because of this, it was always common to get up, walk and make some popcorn while watching a movie.

Once they started using netflix, this habit had to be broken quick.

vkjv··on Cutting your salary by 40%
I listened to an interview with guitar Richard Lloyd (Television, Matthew Sweet) with a very similar sentiment that stuck with me.

(While discussing talented guitarists like Satriani who exhibit perfection in their performances)

"There's got to be a little danger. Some of the greatest bands, you feel as if they aren't going to make it through the song... It's captivating in a way that perfection isn't."

https://cosmicgeppetto.com/2016/08/28/episode-38-guitar-icon...

vkjv··on Two-thirds of Americans approve of editing human DNA to treat disease
Nitpick: IQ is based on a normal distribution with 100 as the mean. If everyone had an IQ of today's 120, then it would no longer be an IQ of 120.
vkjv··on Millennials' preferences are killing dozens of industries
It's a little disappointing that Sam Adams is not considered craft beer anymore considering that they had a strong hand in creating that market.
vkjv··on MoviePass wants to let you go to the theater once a day for $10 a month
Me too! It's kind of been done, but not in a great way.

https://www.amctheatres.com/movies/game-of-thrones-the-imax-...

vkjv··on Americans Love Ordering Pizza on Facebook
Yes. I prefer to order online mostly because it minimizes the chance of a mistake. Speech isn't the most accurate form of communication. But, I've never ordered from facebook.
vkjv··on Americans Love Ordering Pizza on Facebook
How much does it cost you to make a single pie? How big is it?

I also make my own pizza and it is very tasty; however, I find it incredibly difficult to beat the $6.99 2-topping medium pizza deal for pick-up.

vkjv··on Ask HN: Is coding like speaking another language?
No. In my opinion, it's much closer to domain specific jargon. Similar to other specialized fields (e.g., paleontology).
vkjv··on It's Never Too Late to Learn Guitar
Yep. And a lot of [non-chain] shops will do this for free when you buy a guitar, regardless of the cost of that guitar. They treat it as part of the cost of acquiring a lifelong customer.
vkjv··on It's Never Too Late to Learn Guitar
Yes, there's also the (incorrect) assumption that decent gear costs bucket loads of money. In fact, you can get used decent gear (not great, but playable) for about the same cost as a new junk starter kit.

When you are just starting, it's really difficult to tell why you sound bad. It is really discouraging that even when you are doing it right, it still sounds terrible.

My rules of thumb:

1. Start with a decent guitar. Good tuners, action, and intonation are much more important than pick-ups, pedals or amps. A lot of times a used $80 guitar with brand new quality tuners is good enough.

2. Before you even learn to play, learn basic maintenance. E.g., how to change strings, how to tune.

3. Buy a tuner. It takes time to learn to tune by ear. Help yourself out by doing this tool assisted. Also, learn to tune all the time. Many beginners make the mistake of only tuning at the beginning of practice. The act of playing detunes your guitar--especially on cheaper instruments. Re-tune frequently.

← PreviousPage 2 of 12Next →