Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
bbatha
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
30 ms
·
301.
▲
by
bbatha
8y ago
> Powershell should properly escape JSON You can escape things with `. So "{`"foo`": `"an \`"escaped \`" value`"}". Or because powershell has types and objects you can just use native objects and
302.
▲
by
bbatha
8y ago
Go already has code generation built into the standard tooling. It also has reflection which is arguably worse because the generated code is totally opaque. Good macros would cover most of the uses cases for the tools in a more cohesive and
303.
▲
by
bbatha
8y ago
Venmo card and fast withdrawals have been added in the last 6 months.
304.
▲
by
bbatha
8y ago
Also jitter is super important on wireless devices!
305.
▲
by
bbatha
8y ago
That was close to five years ago and venmo has added major features and a lot of new users in the intervening years. Moreover the paypal brand isn't what it used to be especially among venmo's core demographics.
306.
▲
by
bbatha
8y ago
> You can't be charged with crimes they can't prove. This burden of proof does not apply for parole violations, or civil asset forfeiture as mentioned in the OP.
307.
▲
by
bbatha
8y ago
> 500 KB compressed. WASM has significantly less parse penalty than javascript. A larger bundle size than your accustomed to with pure js is not necessarily a problem. https://blog.figma.com/webassembly-cut-figmas-load-ti
308.
▲
by
bbatha
8y ago
Most go data is value types that can be assumed to be on the stack, unless you introduce a pointer explicitly or use one of the referenceish types like interface, string, array or map. Its very easy for both the programmer and the compiler
309.
▲
by
bbatha
8y ago
Even if its not just "mutable" state there are a lot of undesirable situations for multiple package imports in rust: 1. Singletonish things like global allocators, rayon-core, etc 2. You may have made a package static safe to muta
310.
▲
by
bbatha
8y ago
> So, I'm not sure how happy I would be as a user if my package installer bailed out and asked me to choose! Its definitely not a great UX, but at the end of the day the problem can only be solved at the language level or by package
311.
▲
by
bbatha
8y ago
It does. There are ways to mark a package as "only once" in the dep graph. For instance, C libraries are required to be marked in this way. The only once constraint also has a nice out for the SAT solver, if you reach a conflict o
312.
▲
by
bbatha
8y ago
Not very the parts that make it NP hard are allowing libraries to specify maximum versions (and other more complex version ranges). Most of the time libraries use minimum constraints (~) or (^) which allows the heuristic to work like go
313.
▲
by
bbatha
8y ago
> But how tightly can you really connect 27000 GPUs? Not all that well currently, NVidia and others are working on GPU specific interconnects[0] but they don't have anywhere near the scale of traditional interconnects which have sup
314.
▲
by
bbatha
8y ago
One thing google et all are missing from a typical super computer is infiniband style interconnects. They provide integrations with parallel data libraries like mpi and offer “3d” networking that will take into account physical distance bet
315.
▲
by
bbatha
8y ago
> I feel like most of the cool 'new' programming languages are OOP (rust, go, scala). For what it's worth rust and go are not OOP languages. Scala and Swift (to add another new, hot language) have inheritance and OOP featu
316.
▲
by
bbatha
8y ago
This is a more accurate description. The hashing algorithm is 100% deterministic, but the inputs include a random seed from the start of the program to prevent various side channel attacks and to prevent folks from erroneously relying on ha
317.
▲
by
bbatha
8y ago
The hashing algorithm can be deterministic however hashing relies on a seed. In most cases you want that to be random to prevent certain side channel attacks. For swift, hashing will be deterministic for the lifetime of the program.
318.
▲
by
bbatha
8y ago
Huh? Microsoft has several very successful hardware product lines: peripherals (the Microsoft ergo keyboard is the gold standard in many circles), Xbox, the surface line. Maybe they can’t generate Apple hype but they do know how to make con
319.
▲
by
bbatha
8y ago
The equivalent is doing more dead code analysis at the MIR stage before sending it to llvm. This is where rustc loses most of its perf. LLVM is usually 50-60% of execution time, mostly because rust sends teams of ir to chew through.
320.
▲
by
bbatha
8y ago
How much experience do you have with Rust? What about C++?
321.
▲
by
bbatha
8y ago
Rust doesn't have iterator invalidation issues or "ConcurrentAccessException" which are very nice for writing highly concurrent code at large scales. Throw in niceties like no null, result types for better error typing, and a
322.
▲
by
bbatha
8y ago
But it wasn’t the suspect’s DNA it was his relative’s. Deleting your own information would not be a sufficient privacy measure in this case. It’s increasingly statistically likely that someone you’re a relative of will be in a DNA database,
323.
▲
by
bbatha
9y ago
That’s already a property of rust errors. If a function errors you can’t use its return value until you handle the error some way either explicitly, forward it with the ? operator, or unwrap it indicating an unrecoverable error.
324.
▲
by
bbatha
9y ago
> I assume NPM has gotten a lot better in the last few years if it's being used as example of something to strive towards. Make sure that you are evaluating the tool not how the community uses the tool or npmjs.com runs the registry
325.
▲
by
bbatha
9y ago
> how they like vendoring in Go Vendoring solves sharing dependencies with your team, it does not solve the addition of new dependencies. You still need to get your dependencies somehow, and they need to be able to specify what dependenc
326.
▲
by
bbatha
9y ago
But the utility of those applications does not translate into gold’s current price. Most of gold’s value is from speculators and people using it as a wealth store.
327.
▲
by
bbatha
9y ago
There is absolutely a benefit to lazy if you're doing more than one combinator even if you ultimately need to iterate over the whole list such as the join case. The lazy version basically turns into a = "" (1..1000).e
328.
▲
by
bbatha
9y ago
Follow up studies have not born that out [0] 0: https://www.ncbi.nlm.nih.gov/pubmed/29166970
329.
▲
by
bbatha
9y ago
> We can get into conspiracy theory here a bit by noticing that Qaddafi wanted to create a common trade currency for Africa. Saddam Hussein quit trading in USD in favor of EUR. Russian and China agreed to exclude USD from their direct tr
330.
▲
by
bbatha
9y ago
This is generally great advice, and aside from the package manager recommendations is still relevant today. I do take issue with a few things though. 1. Don't put your internal libraries in /pkg. /pkg has special GOPATH meani
More ›