News for hackers. Stuff that matters.

tmm1

Re:Yash: Yet Another Shell on Friday February 14, 2025 @07:41PM (#43054677)
atuin.sh
So the --headless=new doesn't work on any released version of Chrome yet?
Re:D2: A new declarative language to turn text into diagrams on Wednesday August 31, 2022 @01:57AM (#32658884)
What was used to author/render these docs?
Re:Plex: Important notice of a potential data breach on Wednesday August 24, 2022 @11:51AM (#32581061)
Check out Channels DVR
Thanks for sharing this! I tried it and indeed it works quite well.

This will be much simpler/easier than gfortran+dragonegg, and removes some roadblocks preventing me from using the latest emscripten/llvm.

You can switch to text boxes via the gear at the top right.
In 2014, the Policy Simulation Library [1] added a model called Tax-Simulator [2], which is a Python reimplementation of TAXSIM [3][4]. It is available as open-source [5], and designed to let researchers both change existing policy variables and implement new tax reforms in Python.

[1] https://pslmodels.org/

[2] https://taxcalc.pslmodels.org/

[3] https://taxcalc.pslmodels.org/about/history.html

[4] https://github.com/PSLmodels/Tax-Calculator/blob/master/taxc...

[5] https://github.com/PSLmodels/Tax-Calculator

From the abstract of NBER paper I mentioned [1]:

> Each year Americans spend over two billion hours and $30 billion preparing individual tax returns, and these filing costs are regressive. To lower and redistribute the filing burden, some commentators have proposed having the IRS pre-populate tax returns for individuals. We evaluate this hypothetical policy using a large, nationally representative sample of returns filed for the tax year 2019. Our baseline results indicate that between 62 and 73 million returns (41 to 48 percent of all returns) could be accurately pre-populated using only current-year information returns and the prior-year return. Accuracy rates decline with income and are higher for taxpayers who have fewer dependents or are unmarried. We also examine 2019 non-filers, finding that pre- populated returns tentatively indicate $9.0 billion in refunds due to 12 million (22 percent) of them.

[1] https://www.nber.org/system/files/working_papers/w30008/w300...

Show HN: Calculator for US individual income tax, from 1970-present

I wanted to share a simple web app I created recently, which lets you estimate income taxes owed in the US: https://taxsim.appAll the calculations occur directly in the browser, and are powered by a Fortran program that has been converted to WASM using emscripten. This calculator was originally developed in the 1970s [1] by the non-profit National Bureau of Economic Research. NBER has been...

( Read More... | 155 comments | 497 points | on HN )
Re:Log4j RCE Found on Friday December 10, 2021 @12:12AM (#29506646)
Re:Fossil vs Git on Saturday January 26, 2019 @02:22PM (#19007893)
git clone --local will hardlink the existing git objects from the first checkout so no extra space is required.
Re:FFmpeg 3.0 released on Friday February 26, 2016 @05:24PM (#11184753)
There's a patchset for this feature being discussed on the mailing list:

http://ffmpeg.org/pipermail/ffmpeg-devel/2016-February/18953...

Re:Counting Objects on Tuesday September 22, 2015 @02:40PM (#10260670)
Yes, much of GitHub's core infrastructure is written in C.
Re:Running three hours of Ruby tests in under three minutes on Thursday August 13, 2015 @02:01PM (#10056051)
test-queue supports minitest too, and follows the same basic design outlined in this article: a central queue sorted by slowest tests first, with test runners forked off either locally or on other machines to consume off the queue.

We use test-queue in a dozen different projects at GitHub and most CI runs finish in ~30s. The largest suite is for the github/github rails app which runs 30 minutes of tests in 90s.

Re:Tuning Ruby's Global Method Cache on Thursday January 22, 2015 @01:21AM (#8927846)
The https://github.com/simeonwillbanks/busted gem provides some nice helpers around RubyVM.stat for finding cache invalidations. It can also take advantage of the dtrace/systemtap probes that shipped with ruby 2.1 (http://tmm1.net/ruby21-method-cache) which can be used as an alternative to the ftrace technique described in the blog post.
Re:Tuning Ruby's Global Method Cache on Thursday January 22, 2015 @01:14AM (#8927832)
Before the release of 2.1.0, funny_falcon, samsaffron and I developed a patch that removes the global method cache in favor of a local method cache inside each class. (This was originally proposed for upstream inclusion in https://bugs.ruby-lang.org/issues/9262).

The patch has been running in production on GitHub's servers for over a year, and provides the benefits of a high cache-hit rate without the need for manual tuning. I recently ported this patch to ruby 2.2 as well and it is available in this squashed commit: https://github.com/github/ruby/commit/bd002fc9fc3c7236395df2...

Re:GDB tricks on Friday November 28, 2014 @09:40PM (#8672902)
Copying `/usr/bin/gdb` and `/usr/libexec/gdb/gdb-i386-apple-darwin` from an OSX Lion installation is one way to get a functional gdb on Mountain Lion or Yosemite.
Re:Garbage Collection in Ruby 2.1 on Monday December 30, 2013 @06:12AM (#6984104)
We implement preload_all, which loops over app/{models,controllers}/ and requires everything. This method is generally called from config.ru, and happens in the unicorn master before it forks off workers.

I recently upstreamed a warmup method for Rack::Builder you can also use for this purpose: https://github.com/rack/rack/pull/617

Re:posix-spawn: a faster fork+exec for ruby on Friday March 04, 2011 @03:55AM (#2287510)
Unicorn pre-forks workers upfront. New processes are not created per request.

posix-spawn is also only useful for fork+exec, where the new process starts executing a new binary. This is not the case in unicorn or resque, where the child processes actually need to be copies of the parent.

We're currently using posix-spawn in albino and grit, which execute external commands like `pygmentize` and `git`

Older »