HNHacker News
TopNewBestAskShowJobs

trumpeta

317 karma · joined December 29, 2016

submissionscomments
trumpeta··on Rust 1.46
I've been using .to_owned() liberally, that often does the trick in the first instance, albeit at the potential cost of a copy.
trumpeta··on Dnjs: A pure subset of JavaScript that wants to replace configuration languages
It's from haskell, which uses \ to define lambdas
trumpeta··on Expert predicts a major hurricane hitting Houston would be “America’s Chernobyl”
> The Soviet Union doesn't have statistics on this because they didn't want those numbers to exist.

The Soviet Union doesn't have statistics on this because Soviet Union doesn't exist.

trumpeta··on Epic vs. Apple: Order Granting in Part and Denying in Part Motion for TRO [pdf]
"...Epic Games moves this Court to allow it to access Apple’s platform for free while it makes money on each purchase made on the same platform. While the Court anticipates experts will opine that Apple’s 30 percent take is anti-competitive, the Court doubts that an expert would suggest a zero percent alternative. Not even Epic Games gives away its products for free..."

Apple is arguing as if accessing their platform for free was a crime. This makes sense, since they have costs associated with reviews, code signing and distribution. But that is of their own making. Walled gardens should be outlawed.

trumpeta··on Show HN: Mys – an attempt to create a statically typed Python-like language
Isn't Dotty basically statically typed Python? They added whitespace syntax recently and thanks to Scala native it should be possible to have a LLVM backend somewhere down the line.
trumpeta··on Snowflake S-1
data lake is where all your messy historical timestamped immutable data goes so its not lost. data warehouse is where you make sense of it. and your old sql server is just the current snapshot.
trumpeta··on Mac mini
yeah they have a bunch of open bugs about performance making it unusable, they are even rewriting their rendering to use Metal underneath
trumpeta··on macOS Kernel Extensions are officially deprecated
But you can't apply that to the built in keyboard :(
trumpeta··on Kotlin becomes second most popular language on the JVM
I think most of the perceived sbt slowness actually comes from dependency resolution and that's the same for Java and Kotlin
trumpeta··on Finland to give dads same parental leave as mums
> Kid still appear functional.

Yeah you don't want an object oriented kid.

trumpeta··on You’re better off using Exceptions
Here's my problem with exceptions:

(I'm going to treat checked exceptions same as unchecked, because you don't _have to_ use checked or they can be trivially broken by using the Exception superclass)

At the beginning you often take shortcuts and ignore error handling in order to get the happy path to work. Once it is working, it is very easy to overlook some exceptions that should be handled, leading to unexpected runtime errors.

Using the Result monad (say in Rust), you can easily just add .unwrap() after any call that produces a Result to get the happy path working. After you're done with that, its easy to find all the places you took shortcuts and fix them.

To me, the ergonomics of a language is exactly this gap between how concise the "take all the shortcuts" code is and how easy it is to transform into production code where all the possible error states are properly accounted for.

trumpeta··on Counting in the wrong language
Same in German
trumpeta··on Is it better to avoid washing your clothes?
Can we not just install better filters in our water treatment facilities?
trumpeta··on Migrating to GraphQL: A Practical Assessment
Out of GraphQL and REST, I'd say REST is much closer to SOAP than GraphQL is.

SOAP is essentially the same as REST -- you have request/response for every resource. Its just more verbose and inscrutable thanks to XML and all the schemas.

GraphQL on the other hand enables new interactions that were not possible or practical with either of the two.

trumpeta··on Migrating to GraphQL: A Practical Assessment
I'm very surprised by this. I have built REST in the past and recently I built a large GraphQL service. I found GraphQL to be a lot less confusing both for front-end and for back end. The tooling is amazing, standardized schema introspection is great.

Sure, if you try to shoehorn an API that does not fit the database, it can be challenging, but you can always start with the simple case, doing multiple queries to the DB for one GraphQL request and only later see what is actually used and could benefit from optimizing.

You have more opportunities to optimize. With REST, if a client needs to list some resource and then access all of them one by one, it is going to be n+1 requests and you can't do anything on the back end to change that. With GraphQL you can look at the query holistically and optimize as needed.

All in all it feels to me that GraphQL gives the client the ability to better communicate the intent of what they are trying to do. Declarative over imperative.

trumpeta··on Migrating to GraphQL: A Practical Assessment
Swagger/OpenAPI is very fragmented, it builds on JSON Schemas by adding some properties and removing others, then on top of that the AWS API Gateway again removes some options and adds others. Its a total mess trying to navigate which features I can and can not use.
trumpeta··on Apple Is Giving Design A Bad Name (2015)
I think this holds for design and typography, but HCI is not about design, so as long as its usable, it can be ugly.
trumpeta··on How to Eliminate the Dreaded “Blind Spot”
Similar topic was discussed on HN a while back: https://news.ycombinator.com/item?id=17900759 I'm surprised it hasn't been mentioned yet.
trumpeta··on Kubernetes Is a Surprisingly Affordable Platform for Personal Projects
to be fair, if you have CloudWatch and send logs there it can get pretty expensive too
trumpeta··on Use any programming language on AWS lambda
I think its possible to do better than that. If you leverage Go runtime and your language has a GOB library, you can use that and avoid the speed penalty of the shim. For example here's this idea implemented for Rust: https://github.com/srijs/rust-aws-lambda
trumpeta··on EU approves internet copyright law, including ‘link tax’ and ‘upload filter’
How do I write all my MEPs that they fucked up badly this time?
trumpeta··on Meal frequency and timing in health and disease
I think they meant that a lunch at 12:00 and a dinner before 19:00 fit together in an 8h window, which gives you 16h fasting window.
trumpeta··on Ask HN: Do you get good applications from “Who is hiring?”?
I would go a bit further and say that this is a terrible job description. The fact that it is so broad about the product let alone the position is a big red flag.

1) Either they can't describe what they are doing (bad, how do you find customers then?) 2) Or they do anything and everything (worse, if there is no goal, there can be no drive)

I want my work to mean something. I want to be able to say things like: "I help people to book taxis in an accountable way" (Uber)

trumpeta··on Ask HN: Migraine prophylaxis?
My head used to hurt regularly on Sunday afternoon. I discovered it was Caffeine withdrawal, I during coffee at work but not during weekends, if I have a coffee on Saturday and Sunday, all is good.
trumpeta··on MacOS Mojave removes subpixel anti-aliasing, making non-retina displays blurry
I have a 2015 rMBP with nVidia 750m and recently I switched from Apple Cinema Display to a 4k screen. At any of the graphical modes between the full 2x retina and 1x the whole OS gets extremely sluggish to the point of unusable.

Some people from Jetbrains have looked into it and concluded it was the font rendering in IDEA bringing down the entire system.

Do you think this change can improve this? Because it certainly sounds like it.

trumpeta··on Data serialization
Could you expand on that a bit? I'm interested in promoting gRPC over thrift at work, but so far the only benefits I see are the HTTP/2 transport which allows for better load balancing and request tracing on the transport level.
trumpeta··on The vgo proposal is accepted. Now what?
Scala / SBT has a particularly slow dependency resolution
trumpeta··on 82-Year-Old Japanese Woman Finds Success in Coding
> In most places in the USA / the rest of the world -- it's a 'swipe and go' sort of deal.

In most of EU you never swipe. I have swiped maybe 2x in my life and only because the chip did not work. (The swipe then did not work either...) You either use chip/pin or contactless and pin over 20eur

trumpeta··on A tool that lets you hear both Yanny and Laurel
I always heard Laurel, only at 1 notch away from Yanny I hear Yanny and even then it sounds like a robot speaking.
trumpeta··on Docker is a dangerous gamble
I feel like the article doesn't spell out exactly what is wrong with Docker, only that its a Gamble and Dangerous, why?

I understood the point that it may be an overkill for static binary deployments, but how is that dangerous?

← PreviousPage 3 of 4Next →