HNHacker News
TopNewBestAskShowJobs

michaniskin

29 karma · joined September 11, 2012

submissionscomments
michaniskin··on Doctors and Nurses Are Running on Empty
The type of work required to monitor covid patients can be done by semi-skilled workers for the most part. The army does this, it works.
michaniskin··on Doctors and Nurses Are Running on Empty
Nursing is not that complex. The bulk of the work can be offloaded on semi-skilled labor with on the job training. This is what the army does, it works fine. This is not rocket science here.
michaniskin··on Doctors and Nurses Are Running on Empty
We don't have the power to toss anyone anywhere. They have the freedom to work or not work, or to change jobs, or any number of alternatives to working somewhere where they don't want to work.

If a lot of workers quit then the wages (and prices) rise, and workers move from other jobs to do the higher paid ones. There is only a shortage of labor when there are wage or price controls imposed on the businesses by legislation.

michaniskin··on Doctors and Nurses Are Running on Empty
Pay them more money. Simple.
michaniskin··on Doctors and Nurses Are Running on Empty
So prices will go up. That's how we get other people to voluntarily do things for us. I don't see a problem there.
michaniskin··on Doctors and Nurses Are Running on Empty
Sure, there are pros and cons to going to work. That's why it's called work. Every job has them.
michaniskin··on Doctors and Nurses Are Running on Empty
It's just a job. Nobody is being forced to go to work. If you don't like your job, or if you can't do your job, you can quit and get another job. This is America.

As long as people are griping and complaining instead of quitting we know we're in good shape.

michaniskin··on New facts about the leadup to the Beirut explosion
> when more kids are dying to malaria every single day or for multitude of other problems.

Not in America.

> US rallies for some causes where it seems to suit US interests.

Yes, we act in support of national interests, like every country.

> There are so many countries that need help but in recent years whether a country gets US presence seems largely dependent on whether there is oil there and US is all too happy to turn their face away if the government of the oil-rich country is collaborating with US.

America is not out to save the world and this is a good thing. There is nothing worse than some outsider coming in to save the poor savages from their own evil selves. It’s not our job to pass judgement on others or to fix every problem in the world, unless it is in the national interest (even then I’d say the US has too many interests but that’s another issue).

> This unfortunately adds fire to the trouble in the Middle East. If you are islamic radical it is extremely easy to recruit people by showing them factual, real, undeniable misbehavior of US.

This is laughable. Compare The US to the regimes in that area in terms of “misbehavior”. America has nothing to be ashamed of there.

michaniskin··on The antibiotic paradox: why companies can’t afford to create life-saving drugs
And your arguments rest on the assumption that politicians and voters are rational, surely?

My bet is on individuals to act in their own best interest. Likewise, politicians have every incentive to act in ways that benefit themselves and their friends at the expense of everyone else. In both cases I acknowledge the capabilities of these humans to use their own brains to think, but only politicians have an incentive become corrupt.

michaniskin··on The antibiotic paradox: why companies can’t afford to create life-saving drugs
Nobody is arguing that the population of the US was illiterate when the FDA was established. The argument is that it might have made sense at a time when the US population was illiterate, but now that everyone has access to a world of knowledge in the palm of their hand 24x7x365 the FDA does not make sense.

The argument was that the FDA never made sense, not even when it was first established in America, and for precisely that reason -- Americans were not illiterate.

michaniskin··on The antibiotic paradox: why companies can’t afford to create life-saving drugs
Now of course the public would be better served if the UL could focus on their business without being subjected to the whims of politicians. But the fact that private companies other than the UL can at least compete for the job ensures that costs are reasonable. If the UL charges too much consumers can choose one of their competitors. Even if they have no competition right now another company will arise to compete, if it isn't illegal for another private company to start providing this service.

I see no reason why an individual should not be allowed to build their house with whatever inspection regimen they desire (even none at all). A poorly built house, a house without the endorsement of a respected engineering body, will surely have this reflected in the sale price. I don't see a problem here that needs to be solved.

michaniskin··on The antibiotic paradox: why companies can’t afford to create life-saving drugs
> How could there not be a monopoly on public safety?

Easily. Simply allow the private sector to provide the services currently under the exclusive domain of the FDA, for example.

> Trusting private corporations or companies with public safety is insane.

I agree 100%. However, companies are not in a position to provide public safety anyway. It's consumers who make up the public, through their choices, who provide for the public safety. They are perfectly capable of being safe without needing the government to interfere in their affairs.

> You know, instead of reforming it or fixing the problems we have.

What's really sad here is the belief that if only we had smarter experts in Washington D.C. they could make the perfect set of rules to regulate everyone's lives, and we would not have any problems. This is utterly naive, and is quite impossible in practice. No matter how smart an expert is, they simply can't know enough to make the optimal balance for you or me. They don't know anything about my life, so how could they evaluate all the trade-offs to make optimal choices for me? There are just too many variables and life is too dynamic.

This is exactly why free markets are great, they provide the distributed feedback that democracy can't. Individuals are free to choose the services and goods that provide the most value, and collectively these preference signals propagate through the market to guide producers, who are in turn free to innovate and create new services they think I will prefer. This "invisible hand" guides the interactions of millions of people across the globe, but it requires freedom.

Wherever there is a free market we see innovation and prosperity. The evidence is all around you.

michaniskin··on The antibiotic paradox: why companies can’t afford to create life-saving drugs
I think it's totally fair to blame the FDA, as it's a monopoly. No entrepreneur is allowed to compete with them and they have no obligation to the consumer -- their only obligations are to politicians. So naturally the costs are sky high and their services don't align with what the consumer wants.

"Peoples lives matter" is meaningless nonsense, and even taken at face value does not imply standards should be high. Remember that high costs and overly restrictive rules introduce delays and prevent drugs from reaching the consumer, and people are harmed and die because of this.

How do we know when the FDA procedures are too restrictive? Well, we can't! Only the consumer can make those tradeoffs for him/herself and communicate their needs and desires via their preferences when selecting products where there are alternatives. With the FDA being a government monopoly there is no such feedback loop, so we just don't know how well their procedures actually align with what the people need.

It's depressing to see how many Americans believe that if something "matters" the only option is to have the government micromanage it. If you're not American then I understand, of course.

michaniskin··on The antibiotic paradox: why companies can’t afford to create life-saving drugs
Drugs are not somehow different from any other type of product. All products have some level of risk to the consumer, and may or may not do what they're advertised to do.

    The Car & Truck Administration (CTA) approval process
    ensures both that cars and trucks perform an intended
    function, and that cars and trucks don't harm people.
    Part of the expense of this process is making sure that
    both of these aspects are performed to sufficient
    standards.
And yet, we don't seem to need an FDA of cars and trucks costing auto manufacturers $1.4B to develop a new car, and our cars don't explode and kill us. The reason? A car maker who makes unsafe cars goes out of business. Consider Ralph Nader's "Unsafe At Any Speed" did to the Corvair corporation.
michaniskin··on Uber and Lyft ordered by California judge to classify drivers as employees
A minimum wage is nothing more than a mechanism higher skilled workers use to command higher wages at the expense of lower skilled workers.
michaniskin··on Uber and Lyft ordered by California judge to classify drivers as employees
Don’t worry, the American spirit of liberty and free market capitalism is alive and well. It’s just that most Americans are busy getting things done instead of planning everyone’s lives for them on twitter or HN.
michaniskin··on Uber stops upfront ride pricing in response to California worker law
It’s a privilege to have the power to force a driver to perform work for you at a price the driver would otherwise refuse.
michaniskin··on Migrating a Leiningen Project to Boot
Tasks in Boot cache their own products, so while the watcher task fires the rest of the pipeline whenever a source file of any kind changes, each task is smart enough to use its own cached compiled files. This is because only the tasks themselves can ever really know the relationship between source files and the compiled artifacts they produce.

So in practice things are only recompiled when they need to be recompiled. Even though the watcher task is firing, no real work is done unless it needs to be done.

michaniskin··on Feature Macros, an Alternative to Feature Expressions in Clojure
So are there still things that "simply will not work as macros"? If so it would be interesting to see examples.
michaniskin··on Feature Macros, an Alternative to Feature Expressions in Clojure
They're trivially implementable without feature expressions, as we demonstrated with our 20 lines of code.
michaniskin··on Feature Macros, an Alternative to Feature Expressions in Clojure
The example demonstrates how you can define a macro that runs its code in Clojure but can emit code to both Clojure and ClojureScript. How would you do this with feature expressions?
michaniskin··on Feature Macros, an Alternative to Feature Expressions in Clojure
I think the `case-host` macro is what you're looking for: https://github.com/feature-macros/clojurescript/blob/feature...
michaniskin··on Feature Macros, an Alternative to Feature Expressions in Clojure
The Feature Macros proposal is only adding macros and vars to Clojure---the reader isn't modified at all. Since all of the things you mentioned are reader macros (as you pointed out), Feature Macros never even see them, so they won't be affected in any way. (Reader macros are expanded before regular macros are, so regular macros don't see things like `#(...)`, they see `(fn [] ...)`.)
michaniskin··on Clojure build tool Boot 2.0 RC1 out now
Actually I should mention that perhaps the wording in the passage you quoted is misleading. We don't send the actual file contents around in memory as function arguments, but the fileset object itself _is_ passed in memory as an argument, and this fileset object contains the metadata you need to perform your work. When you need the contents of the file there are protocol methods for obtaining the underling file contents, and the actual underlying files are completely anonymous temp files of no special significance (their specific locations in the filesystem are irrelevant to the build process).
michaniskin··on Clojure build tool Boot 2.0 RC1 out now
Well, there are two things there: the unbounded potential size of files and the ability to coexist in the current JVM ecosystem without rewriting every bit of code that looks for things on the class path.

I think that generally the files you're dealing with will fit in memory, but you still wouldn't probably want to have everything in memory all the time, you'd need to stream them (consider an uberjar that's 10M as a JAR, but might contain contents that are 10x that size uncompressed).

This brings us to the second point. No existing JVM tools are prepared to accept files via pipes. Tooling on the JVM looks for things on the class path and in JAR files. We definitely don't want to have to rewrite every tool to use some in-memory pipe system.

The fileset and pod abstractions provided by boot work together to give you the best of both worlds--an immutable representation of the filesystem and class path combined with full interop with the existing JVM ecosystem.

Another issue with Unix pipes is that they are not awesome for tree-like things. In bash you pipe lines of text from one program to another, but tree processing is very difficult. Consider xml processing by pipes, or my jsawk library for processing JSON in the shell. These suffer from memory issues because it's hard to stream trees (if you have a 2G JSON file that is a single object jsawk can't even read it in).

michaniskin··on Clojure build tool Boot 2.0 RC1 out now
Not yet, the hoplon task hasn't been ported yet. But very soon, I promise :)
michaniskin··on Clojure build tool Boot 2.0 RC1 out now
I don't see why not. There is a javac task included with the built-in tasks that ship with boot itself, but boot is designed for ease of extension so you can write tasks to implement your particular workflow. You can even write tasks that use Ant or Maven in a pod (pods are a sort of first-class implementation of isolated classloaders in which work can be done). We even have a jRuby task now that can be used as a component of a Ruby build pipeline, so yes, I think boot would be a great way to build Java projects!
michaniskin··on ClojureScript Builds, Rebooted
Haha, yes! Now we're cookin'! The "simple, but naive way" you describe above is pretty much the way boot does things. I'd say you could look at the boot cljs task to see this but setting up the environment for the CLJS compiler is pretty tricky so the code there isn't as clear and elegant as I'd like.

In boot tasks don't fish around in the filesystem to find things. Not for input nor output. Tasks obtain the list of files they can access via functions: boot.core/src-files, boot.core/tgt-files, et al. These functions return immutable sets of java.io.File objects. However, these Files are usually temp files managed by boot.

Boot does things like symlinking (actually we use hard links to get structural sharing, and the files are owned by boot so we don't have cross-filesystem issues to worry about), and we shuffle around with classpath directories and pods.

So stay tuned for the write-up of the filesystem stuff, I think it might be right up your alley!

michaniskin··on ClojureScript Builds, Rebooted
Your point about repeatability is valid. As a policy matter we would never advocate building a project without codifying the process as zero-arg tasks in the build.boot file. You can see this in our own projects (eg. https://github.com/tailrecursion/boot-useful/blob/master/bui...). This project has one way to build the project jar file:

    (deftask build-jar
      "Build project jar file."
      []
      (comp (pom) (add-src) (jar) (install)))
When you build the jar file you just do

    boot build-jar
This ensures repeatability, etc.

But we don't only use boot for repeatable builds! Boot is in a unique position in that it's on the intersection of application and environment. That is to say, boot can be used to "bootstrap" the application. With boot we can create sort of self-configuring applications, where the entry point of the application is the build.boot file. This is a very clear win, for example, when running Clojure applications in docker on Elastic Beanstalk, etc. (We'll write that up, too.)

michaniskin··on ClojureScript Builds, Rebooted
The problem with the read-everything-into-memory approach is that this is not how the JVM ecosystem works. Things written for the JVM use the classpath primarily, and things in memory secondarily if at all.

We can't control the fact that the CLJS compiler, for example, is looking for source files on the classpath instead of in some FileSet object proxy. If we admit the use of tools written by the Java community at large we suffer by adding another leaking half-abstraction to the mix.

We actually did some experiments with fuse filesystems but the performance is just not there yet. When fuse performance becomes comparable to Java NIO it may become a viable option, and would solve all of these problems. You could then have a "membrane" approach, where the JVM is only manipulating a filesystem proxy, and you have complete control over when and how to reify that and write to the filesystem.

← PreviousPage 2 of 3Next →