Better HN
topnewbestaskshowjobs
Log inSign up

pushtheenvelope

364 karma · joined Jan 15, 2011 (15y ago) · 101 submissions

twitter.com/savils

savil.in

Submissions

comment 2y ago · link · parent

Devbox aims to solve this very problem: https://www.jetify.com/devbox

2.

Upgrade Your Development Environments with Devbox(alan.norbauer.com ↗)

6 points · by pushtheenvelope · 3y ago · 2 comments

comment 3y ago · link · parent

blackr, if you'd allow a small plug: we develop https://jetpack.io/devbox for this very scenario.

Devbox will give you the same project environment (packages, env-vars) on your work and home laptop. It leverages nix, and uses your native file-system avoiding the overhead and complexity of using Docker.

comment 3y ago · link · parent

yikes! thanks for pointing that out. The blog's renderer is confused too and renders the `#cowsay -- flakes are neat` as a comment.

To explain what's happening:

- The example above is running `nix run <flake output attribute> -- <arguments to pass to the flake output's binary>`.

- The `<flake output attribute>` here is `.#cowsay`, which is to be read as: `<flake reference>#<attribute path>`. The # is a separator here.

- The `<flake reference>` being `.` implies its a local flake at the current directory. The `<attribute path>` in this case is the output from the flake i.e. the `cowsay` program.

further fun to be found at: https://nixos.org/manual/nix/stable/command-ref/new-cli/nix....

As a meta-comment, yeah, this is kinda non-trivial for most of us. This is why we build devbox which provides a more familiar UX like `devbox add cowsay && devbox run -- cowsay "flakes are neat"`

comment 3y ago · link · parent

idk, someone (moderator?) changed it back ...

comment 3y ago · link · parent

I love the analogy!

I think this is a great strength of flakes. Packaging an application can sometimes have nuances that external folks may not be fully aware of and so having the packaging instructions (i.e. flake.nix) defined in the core repository can narrow that knowledge gap.

comment 3y ago · link · parent

ah, yeah, we have a cheeky workaround for this in Devbox ;-)

https://github.com/jetpack-io/devbox/blob/main/internal/impl...

comment 3y ago · link · parent

s/adopt/introduce

done :)

comment 3y ago · link · parent

Oh, it isn't intended to be provocative.

The title is simply literally the question that I was thinking about a few months ago when working on Devbox, and wrote a version of this post internally to answer the question for myself!

10.

Why did Nix adopt Flakes?(jetpack.io ↗)

121 points · by pushtheenvelope · 3y ago · 67 comments

comment 3y ago · link · parent

would you mind elaborating on the difference?

comment 6y ago · link · parent

+1 in exact same situation

comment 7y ago · link · parent

There is a very good presentation on the Case for Electronic Cash by Jerry Brito of the Coin Center non-profit. I highly recommend people watch it to understand why cash is important to preserve an open, liberal society.

https://www.youtube.com/watch?v=wmXDJpYF46E&fbclid=IwAR3tBKD...

comment 7y ago · link · parent

seems like many self-driving car startups follow this model?

comment 7y ago · link · parent

Why is it not sustainable that household wealth is > 500% of GDP?

In the parlance of company finances, GDP is like revenue and wealth is the valuation representing the present value of all future profits. So, it seems fine to me that the present value of future profits of the US is 5x the current revenue.

I'm seeking to understand where this analogy may break down. Thanks :)

16.

Why Work on Private Crypto Finance(savil.in ↗)

2 points · by pushtheenvelope · 7y ago · discuss

comment 7y ago · link · parent

that's a cynical view. Capitalism is the freedom to buy and sell from whoever you choose. If what you choose to sell is something so unique, you'll escape competition.

comment 7y ago · link · parent

sure! lets do this exercise.

1. I did a google search of "site:news.ycombinator.com Foxconn in Wisconsin", and opened the top 3 links.

2. first link: https://news.ycombinator.com/item?id=19037625. The top comment (https://news.ycombinator.com/item?id=19038615) seems to be about cronyism and corruption in the terms offered to Foxconn by the Wisconsis government? I could be a bit off, i haven't followed that story closely. But, and this is important, its not about generalized corruption, its about corruption on this Foxconn deal!

3. second link: https://news.ycombinator.com/item?id=18328772. here the top comment (https://news.ycombinator.com/item?id=18329445) is directly quoting the article about Foxconn getting exemptions from the environmental laws in Wisconsin. This is directly relevant to the article posted, again not about generic environmental concerns.

4. third link https://news.ycombinator.com/item?id=19630358. This one doesn't have much commentary, but here we see irrelevant comments which are not directly tied to the article, which are much in the vein of the original comment above.

Does that help clarify my position, and why comments of this nature are not helpful? Its totally fine to bring up environmental/social/political concerns, if they are relevant. They are not in this case.

comment 7y ago · link · parent

I felt it was patronizing because the original article is about manufacturing progress in a country that has been notoriously behind the curve on manufacturing. Making iphones is not what one normally associates as a dirty or polluting industrial effort.

Instead of directly discussing the merit (or not) of this move by Apple, you chose to bring up an unrelated topic of general environmental problems in India.

Lets imagine the article was about Apple opening a new manufacturing facility in Texas. Would you have brought up other social/political/environmental challenges that Texas faces (oh i don't know, like racial equity, or floods)? My guess is that would be unlikely, since its kinda off-topic and would be clear you are trying to express some other gratuitous concern you may have about that region.

comment 7y ago · link · parent

fair point - not sure why you are being downvoted.

Lets say SF to Chicago, then? Its about 2000 miles.

I was trying to illustrate a more general point that speed isn't necessarily the best or most optimal criteria even for long distances. My choice of example could have been better.

comment 7y ago · link · parent

Nope - I don’t think there is, but the parent (to my original comment) seemed to be suggesting so

comment 7y ago · link · parent

Your comment is rather patronising.

Every year that goes by where India doesn't raise its standard of living, results in millions of stunted childhoods and lives. India needs all the manufacturing growth it can get.

The equivalent to your comment would be Indians on this forum leaving gratuitious remarks about the West ruining the planet with its excessively polluting ways. Just because you cannot see it around you, doesn't mean its not happening.

comment 7y ago · link · parent

counter-intuitively, bullet trains offer a great alternative that airlines cannot: travelling from SF to NY in about 10-12 hours. 8 hours to sleep on a flat bed, and an hour or two for dinner and breakfast on either end.

This would be far superior to the 5-hour red eye flights.

comment 7y ago · link · parent

thank you thank you! wow, this brings back some childhood memories

comment 7y ago · link · parent

i too love my SE.

I used to have a 7, but was always too awkwardly big to hold or to put in my pocket. SE is the perfect size. It also has the benefit of helping me manage screen time -- i don't really wanna get sucked into long content on this screen-size, and can save it to consume later on the laptop (or never, which is most often just fine).

comment 7y ago · link · parent

> And I can assure you that however in the world you set up something backed by a fiat, its controlling government can step in and seize your collateral if and when it pleases and then you're screwed.

hmm -- the collateral in this case is ether. So, unless you feel the US govt can step in and seize all ether in the world, this statement seems unlikely to be true.

comment 7y ago · link · parent

the bitcoin viewpoint is that being backed by energy consumption is a Good Thing. Its harder to manipulate than Proof-Of-Stake or other alternative consensus protocols.

At a larger societal level, we should definitely be worried about tackling emissions for climate change. For this, very few people are advocating getting rid of energy consumption in our societies. Yes, in the short term, people recommend being mindful of the emissions impact of your lifestyle (e.g. a flight has a large carbon footprint) but in the longer scheme of humanity's development we'll always have greater and increasing energy needs.

With that in mind, a lot of focus has been on using non-emissions producing energy (solar, wind, nuclear, etc.) to mitigate climate change. Seen in this context, bitcoin is agnostic to the source of the energy, and its Proof-Of-Work protocol is fine.

comment 7y ago · link · parent

this looks super neat!

I've been wanting to make a graphql server framework that can run on lambdas, and will perhaps look into integrating with faast.

1234