HNHacker News
TopNewBestAskShowJobs

swaranga

38 karma · joined April 24, 2016

submissionscomments
swaranga··on Xiaomi: New CPU matches Apple cores single threaded, much faster multithreaded
Some Linux?
swaranga··on JEP 401: Value Objects (Preview) merged to OpenJDK master
I keep forgetting the reasoning for this part of the design - why is the value semantics baked in the declaration site and not at the use site?

Why does the class author have to declare it as a value type? I know this has been rehashed before many times by Brian but I keep forgetting the reasoning.

swaranga··on Migrating from GNU Stow to Chezmoi
I wrote dloom for myself after finding Stow not flexible enough

https://github.com/dloomorg/dloom

Short blogpost for the TLDR: https://swaranga.dev/posts/dloom-the-dotfile-manager-i-wante...

swaranga··on AWS switch from gzip to zstd – about 30% reduction in compressed S3 storage
Amazon may be big but even then resources are limited. Individual teams owning the roadmap for services are still small. And there are always competing priorities. Do you prioritize these security and availability improvements or do you pickup some operational improvements to make our engineers oncall easier? Oh there is also this long line of customer features you need to deliver. And re:Invent is also approaching.

When you look at it like this, not very surprising that initiatives like cost savings optimizations may take a back seat for periods of time.

swaranga··on How fast is 12th Gen Intel Core?
For me it is the little things. Like switching windows. Mac feels half a second slower then Linux and that delay make it feel less responsive. Opening up the terminal can iterm2 is another one. For me these things just adds up. I want my OS to get out of my way when I want to get work done.

I have turned off the genie effect and perhaps other animations, but my Ubuntu on my Lenovo still feels faster than the Mac.

swaranga··on Code in Database vs. Code in Application
Sure, it works for a narrow use-case like a pure function that just queries and returns data. What about stored procedures/triggers that mutate data on insert/delete etc?

With one-box, you can assign a specific set of customers/canaries to be served by the new 1-box and validate your results. If there is a problem you rollback and only your canary data was affected. It is just not very simple IMO.

swaranga··on How Google got to rolling Linux releases for Desktops
Not a security engineer so can’t comment on the threat model. But an insider threat like a rogue employee can do as much damage with a managed laptop vs an unmanaged one IMO.
swaranga··on How Google got to rolling Linux releases for Desktops
I am loving the Netflix model. You can ask for a MacBook or a thinkpad. If you opt for the thinkpad, you can also install whatever Linux you want and all tools will still work.

In fact you can bring your own laptop and without reimaging use that for development. All interval tools (of which there aren’t too many are written in Go so are cross platform). I ordered a framework laptop and will expense it once it is here.

swaranga··on Code in Database vs. Code in Application
Onebox deployment typically deploys the new revision of the application code to a single host/box and leaves the rest of the fleet in the older revision and then you run your tests against the new revision running in that single box. You also might monitor the metrics from that single box and attempt to find regressions from the rest of the fleet.

If the code is deployed to the database (version controlled or not) all application servers will start using the new code immediately which is not what we would want from a onebox deployment first strategy. Usually all the servers will share the same database and thus the code in the code in database model. What am I missing.

swaranga··on Code in Database vs. Code in Application
How would you do one-box deployments with code in the database? Everything else could be solved with perhaps some or a lot of pain.
swaranga··on LaMDA is not sentient
I have no background in AI or neural networks. And I barely understand machine learning in general. My only chat bot experience is ordering pizza at a Dominos website, I must say even though it is stringing words together to form a coherent response using some statistical model, the engineering behind this seems staggering. I am super impressed that it has come this far.
swaranga··on Ask HN: What is the most user friendly personal bank account?
I have been pretty happy with BofA. The mobile app is modern and wires and ACH can all be done online. I gripe though is that you cannot do either of those from the mobile app. You need to login to the website via a computer.
swaranga··on Java record pattern matching in JDK 19
There are some edge cases because of which this had to be done, I think. For example calling static methods via the instance variables, the actual method called would be the static type of the variable at compile time and not the actual type at runtime:

    public static void main(String[] args) {
        Parent instance = new Child();

        if (instance instanceof Child p) {
            instance.print(); // prints Parent
            p.print(); // prints Child
        }
    }

    static class Parent {
        static void print() {
            System.out.println("Parent");
        }
    }

    static class Child extends Parent {
        static void print() {
            System.out.println("Child");
        }
    }
Hence, with flow typing, existing code could break in subtle ways.
swaranga··on Ask HN: What’s a good laptop for software development at around $2k?
Have you considered an HP Elitebook? I am using an Elitebook 850 G7 given by my company. I have been daily driving it for a year now with Ubuntu 20.04 (previously an 840 G3 I think) and have no complaints.

I use it with triple monitor setup, all 32 inch 2K (I find 2K better for programming) and use it with the Hp 120W dock.

I even upgraded its memory to 64GB myself from Amazon for much improved quality of life (I give Intellij 24G alone; have at it!)

swaranga··on USB-C hubs and my slow descent into madness (2021)
I have long searched for a configuration (Linux laptop + docking station) that can drive a triple monitor setup. Ideally all three at 4K@60 Hz but I might settle for one of them being QHD (2560 x 1440). Why isn't there any confirmed options? Or is that the limitations of Thunderbolt?
swaranga··on Dual 75“ 4K TV Floor Computing
For me, the Roku's killer features is its app that lets me instantly stream the audio to my phone/airpods so i do not disturb anyone else while still watching tv. All others require me to pair my headphones with the tv or some other painful process.
swaranga··on How Einstein arrived at his theory of general relativity
What would you say are some examples where you look back what the state was 15 years ago vs the progress we made till the present and the jump would seem just as profound. Just curious.

I felt the same way - it seemed like the early 20th century made so much progress with those visionaries compared what what is being made now. Obviously I am not well informed because that is likely not the case.

swaranga··on Last Windows 11 update changed all default browser settings to Edge
I have been using the HP Elitebooks provided by my company and works well with Ubuntu. No complaints. I even upgraded my RAM to 64 GB.
swaranga··on AWS Lambda now supports IPv6 endpoints for inbound connections
You are thinking of SQS, the preview version of which was the first to be introduced. S3 was the first non-preview service made generally available.
swaranga··on Amazon Ion – A richly-typed, self-describing, hierarchical serialization format
I built a system in my previous team where clients can register "filters" described in Fusion. My system, which was a source of a lot of different notifications, would then run these filters and only send those notifications that passed the filters. It became very popular very quickly because of the easy on-boarding and the fact that clients not get only a fraction of the messages they were interested in. I just checked the Java implementation, it seems to be still active and get commits.
swaranga··on The new Google Pay repeats all the same mistakes of Google Allo
Seriously? I bought in-car navigation for my car instead of opting for CarPlay/AndroidAuto for this exact reason. When I start a trip, my phone (always used Google Maps) can never figure out which way I am facing and will keep rotating around and recalculating directions until I gather some speed on the road. With my in-car navigation, the compass works flawlessly even in parking garages and basements. I though the holy grail would be a UX where Google Maps would use its maps, traffic and navigation data while using the car's GPS.
swaranga··on Software Engineering Laws Everybody Loves to Ignore
For me I usually forget the generic stuff. If I wrote something that was a bit different or if I put some extra effort or thought into it I find I can recall those implementation notes may be ever after a year.
swaranga··on Structured programming: how to write proper if statements
My take on such “rules” is that these are not really rules but guidelines you can take hints from to make code easier to read and understand. I rarely try to force these rules to my code whether I am writing new code or changing existing code. Sometimes breaking these rules will make it better, and sometimes enforcing the rule will make it easier to read.

My process is to write the code, take my hands off the keyboard and just read it. Take a break and come back and read it again. Then upload a code review request but before you “publish” it for review read it in the browser again and makes changes as you see fit. This applies to design patterns as well. To me it is always circumstantial and should not feel forced. Sometimes the inherent nature of the logic requires me to keep all the conditionals together in a tight method with good documentation to make it easier to read it a year later. Sometimes it just “feels” cleaner to split it out. It always depends.

swaranga··on Why I teach vim
This is personal experience of course but I have not seen that to be the case in my company, irrespective of editors people have mostly the same type of questions. Out of curiosity, what kind of questions do the non Vim/Emacs folks keep asking?
swaranga··on Falsehoods programmers believe about addresses (2013)
It wouldn’t work in India in most cases. Most delivery person uses a motorbike for deliveries which I believe is not equipped with a goa device that they can refer to at all times during driving. Even if they have a smartphone and I send them a google maps link, they end up calling me several times throughout the delivery.
swaranga··on Falsehoods programmers believe about addresses (2013)
I moved to USA from India and after the interstates, this is one of the top things I am jealous of since we don’t have a sane addressing system in India.

Only if you are from such a place you will have an idea how frustrating it is to explain to a delivery person how to reach your apartment. “Bro, come around behind the mall, proceed to the dead-end and then left and then to the right after the temple”. This is not even some small town in a remote place. This is Bangalore, where I lived for years near corporate offices. Sigh.

swaranga··on It's probably time to stop recommending Clean Code
>Outside of a book, do we still read code from top to bottom?

This one I disagree with. We frequently read code in a browser, as part of a pull request or just exploring a repo.

swaranga··on Hey.com: a review (and why I won't be switching)
They must know that the software is opinionated. The question is whether people who would pay 99$ a year for email would be the ones okay with the lack of flexibility.
swaranga··on One word in PostgreSQL unlocked a 9x performance improvement
COPY api in Postgres avoids a lot of the query parsing and other stuff that takes up cpu time. I have used it in production and have seen great results.

There are cases where the COPY api is not sufficient. For instance it cannot do the ON CONFLICT IGNORE thingy and instead fails the call. In that case we fallback to INSERT ON CONFLICT IGNORE - since in our application we do not expect too many duplicates this works well for us.

swaranga··on Amazon will no longer support the Echo Look, encourages owners to recycle theirs
When has AWS killed a service? Usually that does not happen. SimpleDB had been deprecated for years and is not even shown in the console or marketing pages and yet its existing customers continue to use it. This is just one of the examples.
Page 1 of 2Next →