HNHacker News
TopNewBestAskShowJobs

cottonseed

2,959 karma · joined August 22, 2011

email: <username first word> dot <username second word> at gmail
submissionscomments
cottonseed··on Why FPGA manufacturers keep their bitstream formats secret
Hi dkarchmer, thanks for your comments. I'm the author of arachne-pnr, the open-source pnr tool for the Lattice iCE40. One of my hopes is that by creating compelling open-source tools, it might be possible to change the value proposition for FPGA vendors to get involved in opening up the chip internals, although perhaps that's wildly optimistic. One of the hard parts is to get a realistic foothold. I like to think we're making some progress with the Icestorm project. I got a bug report from a user recently, and I quote, "We would like to do what we can to help fix your tools because the workflow is far superior." I know there's a world of difference between a big flagship FPGA and the iCE40.

I still like the analog with CPUs. If there was no gcc or LLVM and the vendors all had their own compilers, there would be little incentive to open up the ISA. In a word with gcc and LLVM, you're dead in the water if there isn't a port.

I was a little surprised to hear a big part of the job is documentation. How do the chip design teams communicate with the tool development teams? Or is there a problem with releasing internal documentation?

cottonseed··on Musings on AOT, JIT and Language Design
I think static vs dynamic and JIT vs AOT compilers are orthogonal concerns. JIT is alive and well in the JVM and a lot of effort is being put into JIT compilers for JavaScript. And you can certainly write an AOT for dynamic languages which attempts analysis to reduce the cost of dynamic features (type inference, vtable specialization and the like).
cottonseed··on HardCaml – Register Transfer Level Hardware Design in OCaml
It's only 28k lines of ML (wc count). Seems well within the reach of an individual.
cottonseed··on Homeschooled with MIT courses at 5, accepted to MIT at 15
> I'm 33 now and I'd kill to be able to study mathematics full time and be a professor some day.

I started my PhD in math at 36. Admittedly, I made some life choices (savings, no kids or mortgage) that kept options like this open.

cottonseed··on Dumb Cuneiform
One of their two examples is cat calling? Classy.
cottonseed··on Fuzzing FFmpeg for fun and profit
afl [0] is awesome. I have it running right now. It found some of bugs in arachne-pnr [1].

I wish someone would do a JVM version (combined with the lines of QuickCheck and typed generators).

[0] http://lcamtuf.coredump.cx/afl/

[1] https://github.com/cseed/arachne-pnr

cottonseed··on Who’s to Blame for Mass Incarceration?
In fact, white are more likely than blacks to deal drugs [0]:

"Whites were about 45 percent more likely than blacks to sell drugs in 1980, according to an analysis of the National Longitudinal Survey of Youth by economist Robert Fairlie. This was consistent with a 1989 survey of youth in Boston. My own analysis of data from the 2012 National Survey on Drug Use and Health shows that 6.6 percent of white adolescents and young adults (aged 12 to 25) sold drugs, compared to just 5.0 percent of blacks (a 32 percent difference)."

[0] https://www.washingtonpost.com/news/wonkblog/wp/2014/09/30/w...

cottonseed··on Who’s to Blame for Mass Incarceration?
> I believe that the law enforcement strategy is a concentration on drug dealers

I don't think that's right [0]:

"[M]arijuana arrests now account for over half of all drug arrests in the United States. Of the 8.2 million marijuana arrests between 2001 and 2010, 88% were for simply having marijuana."

So more than 44% of all drug arrests between 2001-2010 were for possession. It may be that blacks arrested for possession carried much more than whites because they were dealing and whites were just using. I haven't been able to find any numbers on that.

[0] https://www.aclu.org/gallery/marijuana-arrests-numbers

cottonseed··on Who’s to Blame for Mass Incarceration?
> There is a reason for higher incarceration rates: they commit more crimes proportionally.

That's not true. At least not when it comes to drug use, blacks and white use drugs at similar rates [0]. Asymmetric enforcement is another explanation.

[0] http://c1.nrostatic.com/sites/default/files/pic_corner_07101...

cottonseed··on A Beginner's Guide to the Synth
I can recommend the documentary, "I Dream of Wires" (on Netflix) about the history of the analog modular synthesizer.
cottonseed··on ARMing a Breadboard – Everyone Should Program an ARM
The cheapest ARM on Mouser is the same price: 0.35/part for 5k in an SOIC-8 (6x6mm). ARM chips are available in 2x2mm chip-scale packages.
cottonseed··on Firm 'hides' university when recruits apply
I've about to hire and I've been thinking trying to build a process that blinds to as much as possible: gender, race, age, university, previous employers. What else? If you're doing this, please get in touch, I'd like to talk about how you go about it.
cottonseed··on Dr. J. Donald Millar, 81, Dies; Led CDC Mission That Helped Eradicate Smallpox
> From 1880 to 1980, it killed a half-billion people worldwide.

And it caused 1/3 of all blindness. Eradicating smallpox is one of the greatest human achievements in protecting human life and health. I wish it was more celebrated and its significance more well-known. Smallpox Eradication Day should be a national holiday. Humans, by human hands, killed only HALF as many people as smallpox in the 20th century (that includes WWI, WWII, Russian purges, Great Leap Forward, etc.) Edward Jenner, who developed the smallpox vaccine, Donald Millar and the others who lead the eradication fight are truly among humanity's greatest heroes.

cottonseed··on Aphantasia: A life without mental images
Rarely, if ever, and never as images. If your dreams are like movies, mine are like stumbling through a dark house.
cottonseed··on Ask HN: How to Find the Best Info on Cancer Treatments?
I don't know anything personally, but I know someone who works at Foundation Medicine. They do genetic-based cancer therapy recommendations based on tumor sequencing. It might be worth looking into.
cottonseed··on Capitalists, Arise: We Need to Deal With Income Inequality
I'm just looking at the data. In 2010, the top tax rate was 35%. The nominal tax rate for 1% earners (over $1.4M) was 20% [0].

[0] https://en.wikipedia.org/wiki/Income_tax_in_the_United_State...

cottonseed··on Capitalists, Arise: We Need to Deal With Income Inequality
> That money would otherwise be flowing into business investments & consumption, charity, and civil society, the natural institutions of free people.

What do you think the gov't does with it, burn it? 5 of the 6 startups I worked for wouldn't have happened without government assistance (DARPA-funded university project spinouts, SBA, government contracting.) Consumption is spending money. They government spends it, or give it to people who do (that seems to cover consumption and charity.) What is more civil than banding together to take some of the variance out of life?

cottonseed··on Capitalists, Arise: We Need to Deal With Income Inequality
> There are a ton of deductions available to reduce taxable income.

FTFY. They wouldn't today, either.

cottonseed··on Capitalists, Arise: We Need to Deal With Income Inequality
"I’m scared. ... the income gap will most likely be resolved in one of two ways: by major social unrest or through oppressive taxes, such as the 80 percent tax rate on income over $500,000"

I stopped reading here. Try again. Current top income tax rates are insanely slow by historical standards. They were 90% in the 40s and 50s and 70% in the 70s [0]

[0] http://taxfoundation.org/sites/default/files/docs/fed_indivi...

cottonseed··on Emacs X Window Manager
Me too. I've been hoping someone would integrate webkit in Emacs. Then I could go full screen and that would cover 98% of what I want to do. This might be even better, except that these days I'm usually stuck in IntelliJ on OSX.
cottonseed··on US spied on Japan government, companies: WikiLeaks
Obviously Japan should retaliate against the US.
cottonseed··on U.S. Decides to Retaliate Against China’s Hacking
Because, you know, the US has never conducted cyber-espionage against China or obtained valuable information before.
cottonseed··on Show HN: First ever FPGA CPU built using open source tools?
No, it was reversed engineered by the IceStorm project:

http://www.clifford.at/icestorm/

cottonseed··on Designing a CPU in VHDL, Part 6: Program Counter, Instruction Fetch, Branching
Digilent has a bunch of FPGA boards:

http://www.digilentinc.com/Products/Catalog.cfm?NavPath=2,40...

The DE0-Nano-SoC, which has an FPGA and a dual-core Cortex A9 might be a good option if you wanted to get started with Altera parts:

https://www.terasic.com.tw/cgi-bin/page/archive.pl?Language=...

The analogous Xilinx board is probably the Zedboard:

http://zedboard.org/

Finally, you might consider the Lattice Semiconductor iCE40. There are two dev boards (small and large, both very cheap):

http://latticesemi.com/iCEstick

http://www.latticesemi.com/en/Products/DevelopmentBoardsAndK...

They are especially attractive since they have the only fully open source toolchain:

https://github.com/cseed/arachne-pnr

Have fun!

cottonseed··on Designing a CPU in VHDL, Part 6: Program Counter, Instruction Fetch, Branching
The DE0-Nano has a successor, the DE0-Nano-SoC which also has a dual-core Cortex A9 on chip (similar to the Xilinx Zynq chip):

https://www.terasic.com.tw/cgi-bin/page/archive.pl?Language=...

cottonseed··on Ask HN: Would you move to Montana to work on a startup?
I'm from Montana. Absolutely not.

I have some friends who have a vision systems startup in Bozeman.

cottonseed··on Designing a CPU in VHDL, Part 1: Rationale, Tools, Method
I'm also an (ex?) compiler engineer and I've played a little with FPGAs and computer architecture. In addition to the obligatory processor design, I recently created a open-source place and route tool for iCE40 FPGAs:

https://github.com/cseed/arachne-pnr

Together with Yosys (a Verilog synthesis tool):

http://www.clifford.at/yosys/

and the IceStorm bitstream creation tools:

http://www.clifford.at/icestorm/

it provides a full Verilog-to-bitstream open source toolchain for the iCE40 FPGAs. There is also a low-cost (~$21) USB development board:

http://www.latticesemi.com/icestick

Unfortunately, this toolchain doesn't support VHDL, so I can't try out the OP's TPU.

cottonseed··on June Intelligent Oven
> Reaches 350°F in 4 minutes and 15 seconds.

Not going to work as a reflow oven, unfortunately.

cottonseed··on Intel Buys Altera for $16.7B
Whoa, I had no idea you could do async circuits on an FPGA (although I can't get to [2] right now, the site is under maintenance). Right now, I only support IO constraints. The IceStorm project hasn't documented the timing model yet but it is in pipeline. Is it possible to do what you want with vendor tools? Anyways, email me and we can chat about what you'd need.
cottonseed··on Intel Buys Altera for $16.7B
I recently wrote a place and route tool for Lattice iCE40 FPGAs [0]. The bitstream was reverse engineered by Clifford Wolf and others as part of the IceStorm project [1]. We're using Yosys [2] for Verilog synthesis, also written by Clifford.

[0] https://github.com/cseed/arachne-pnr

[1] http://www.clifford.at/icestorm/

[2] http://www.clifford.at/yosys/

← PreviousPage 7 of 18Next →