skysight-inc/HackerNews huggingface dataset:
Do you really want to convert the lines one-to-one? This seems pretty wasteful. Surely a better way is to just do step 3, drawing inspiration (and copying where appropriate) from the original code based on the features rather than the structure of the original code.

For example gtk-doc generates documentation from comments in c code. I'm guessing there is some perl code to parse c code, which i would substitute for the great 'pycparser' library. With this method you would copy the existing code, fix it, then throw it away.

The methods to generate HTML from the comments is likely a lot of code. Sure, you could copy whatever method the current perl code does... Or you could substitute a lot of it for Jinja2.

Perhaps these examples are incorrect in the context of this specific project, but i don't see the point in copying the lines one for one. Copy the meaning of the code into idiomatic python from the get go, and test the output against the known good perl code. I doubt perl code copied one for one is ever going to be idiomatic python code, so why bother, especially if it takes so long?

Edit: Yeah, tests are good. No tests are bad. Having a complete understanding of the code doesn't require translating it line-for-line. Re-writing a project in a different language is a breaking change, but in the context of this project your initial tests could be (for every bit of C code you can possibly find that has gtk-doc comments):

> gtk-doc.py > a
> gtk-doc.pl > b
> diff a b

After you can find no differences, great, release it as an alpha or beta. People can then feed back any internal, weird quirky behavior they depend on. Rinse and repeat.

My point is spending 1000000000 hours hand-converting perl into python then again re-writing it into idiomatic python so you can catch any theoretical small perl-specific edge case in what is effectively a complete rewrite and a major version change is IMO a bit pointless, especially when converting Frankenstein python-perl into idiomatic Python may result in deleting large parts of the said slow-to-convert code.
I suppose we'll just need to wait for someone to sue the Internet Archive and have the EFF step in.
You're really underestimating how much this happens. One incident is a drop in the bucket, and there won't be a whistleblower every time.

IMO the only way to fix it, especially in CS type disciplines, is to make it a requirement for publication that all the code is available and easily reproducible.

For other disciplines, I don't know the answer. At its core, this is a problem of very high competition and of failures being unpublishable. Really, it's not a great thing to out highly respected scientists who fabricate -- even though they richly deserve it -- because it erodes public confidence in science. It would be better if we could find a way to prevent these things before they happen.
You mean like the Dasung Paperlike[0]? Consensus from the writers I know is it's pretty awesome. Not a lot of programmers use them at this point because it's black and white, so there's no syntax highlighting. It's also powered and connected via USB, so there is a delay when typing fast that could drive some programmers crazy. It's about the same responsiveness as a regular monitor hooked up with a DVI to usb adapter.

[0]: https://www.indiegogo.com/projects/paperlike-world-s-first-e...
We have the tech, it's just not economically feasible to do it. They do have satellite communication access but it's lower bandwidth and only available during part of the day due to the way polar orbits work.
Nationalism has influence on the type of tech developed:
http://www.dailysabah.com/technology/2017/04/08/national-tec...

Apart from that, foreign investments might also dwindle.
I saw one of these guys, Shep Doeleman, talk last year. What they do for this is nuts. They have to transport an atomic clock with them to each site, and something like a 20 of the biggest helium-filled disks available in a custom machine to each site (which is somewhere crazy, like the South Pole, the top of a mountain in Chile, a volcano, etc). And run them all at the exact same time.

They end up with something like 7 PB of data and process it all down to like a 10 MB image. They then throw the rest of the data away because they can't afford the disk space for storage.

I think they have serious plans for putting a constellation of satellites around a Lagrange point.
They're doing fine for now. Electric-car optimists think they'll be replaced by charging stations. Apocalyptic doomsters think they'll be replaced by a place to feed & water your horse (or by nothing at all). Both camps seem to agree petroleum fuels are a temporary thing.
Summary:

> Manually converting code from one format to another is the most boring, draining and soul-crushing work you can imagine.

> we can estimate that a sustained rate of conversion one person can maintain is around 100 lines of code per hour

> This gives us a clear answer on why people don't just convert their projects from one language to another: There is no such thing as "just rewrite it in X"
Predictions about you
Boostnote: Open Source Note Taking App for Programmers
This isn't an argument for social media alternatives, this is an argument for ethical journalism to become popular again. We need non-social media.
I think it is awesome Carmack takes the time to do this. He clearly cares about VR and the experience users have with VR, even on seemingly trivial apps such as this one. I imagine most developers in this space would love to be peer reviewed by Carmack. Some of his comments seem to be nuanced rendering suggestions, I'm not sure anyone with a 'bit of technical knowledge' could provide this level of feedback.
I was thinking many of the manual changes in step one could have been done through a program or script freeing you to help with phase 2/3. Rewriting without introducing something new: features, stability, cost reduction, easier to maintain, etc is usually a waste of time but could be a fun if you are using the exercise to learn.
From what I understand about copyright law, it has to do with use and distribution of content. As long as I'm not redistributing or using your data in my product, I don't think I'm breaking copyright. If I have a book and a copier, its no one's business if I make a copy of a book I own for my own use. No one is losing business. Its only an issue if I start trying to sell those copies, thus stealing business from the writer and publishers.
Thanks. What I meant to ask was, given X is the same topic, what is the difference between X overflow and x.stackexchange.com? That is, if there is a general rule.

Perhaps the answer is the same: It's just age. But then if X Overflow already existed, why create a redundant x.stackexchange.com?
Interesting. Could you perhaps elaborate further, or point towards any sources re manufacturering difficulties?
Turkey’s Erdogan Declares Victory in Referendum to Expand Presidential Powers
It's not the Hawking radiation, it's the friction caused by the gravitational forces (also thought to include magnetic fields) compressing and superheating the matter, which in turn causes it to emit light.

It's apparently thought that the hole doesn't just immediately swallow up matter whole, and that it's not easy for matter to enter the hole at all. Rather the matter is sort of captured and slowly ground down by friction, leaving an accretion disc surrounding the event horizon. Black holes also emit "x-ray jets" that are thought to be observable.

That said, I'm not a physicist. This is just what I've gleaned from articles and Horizon documentaries.
I wonder if YouTube Live and other similar services could scale up to serve in a time of true crises. Back in 2001 the web's bandwidth limitations were laid bare on 9/11 and that was with static text & pictures. CNN had to go to a "bare bones" text site and even that had trouble.

Things have improved dramatically since then of course but delivering live video to billions of users simultaneously?
> FANG is delivering actionable data to advertisers in ways that traditional broadcasters simply can’t.

The "N" in that weird acronym stands for Netflix. The day they start selling my data to advertisers is the day I'm back to torrenting. I feel like the author is so ad-focused that she doesn't even see this: the whole article is about ads.

Netflix is showing that you can make fantastic, super expensive content, even niche content, without advertising. To me that feels much more profound than "Youtube has more data about you than ABC so advertisers will prefer that".
CEO's, as such, are employees, but lots of them are capitalists and derive as much or much more of their wealth from capital as from labor income.
Funny, just a few days ago I watched a TEDx talk about this by a computer scientist on the team. Maybe you enjoy it as well: https://www.ted.com/talks/katie_bouman_what_does_a_black_hol...
Berkeley's IP office is awful.

By comparison, Larry Page patented Page Rank. He assigned it to Stanford, Stanford prosecuted it and licensed it back to him, basically for nothing. There's a lot of trust there between student and institution. Furthermore, Stanford owns and defends the patent and no one fucks with Stanford.

https://www.google.com/patents/US6285999

I say this as a Berkeley grad. University IP departments should be more like Stanford and less like Berkeley.
Being a good consultant (helpful to clients) != being a successful consultant (getting more contracts)

Successful consultants are parasites, they are like that fungus that takes over ants, forcing them to climb into the sun, before exploding them all over the field.
Bayh-Dole Act. Since 1980, IP produced by government sponsored research is owned by the inventor, not the government.

https://en.wikipedia.org/wiki/Bayh%E2%80%93Dole_Act
I am pretty sure, which obviously does not prove anything.
The article doesn't say that; it says TV is at risk because it lacks data about its viewers.
The graph showing that companies rated highly by Glassdoor outperform the S&P 500 by a factor of 2.4 is significant. Is there a fund which invests that way? Vanguard should have a Glassdoor Index Fund.
For those of you coming late to CRISPR and this debate - it's covered in a Radiolab podcast episode from February http://www.radiolab.org/story/update-crispr/

This is an update, but opens with the original CRISPR report from some years back -- featuring Jennifer Doudna from UC Berkeley.
The thing is: users explicitly allow facebook to do that when they agree to ToS, just as they allow it to store their personal photos, statuses, and messages.
The general idea is to return all the same headers as a get, without the body, so that's likely correct.

Unless there's code farther down that sends content length, etags, etc. You would want to send those too. Though I don't know that it really matters much.
That sounds like a self-referencing definition of "these frameworks", so I can only respond with Mu.
Hopefully there is a comprehensive set of integration and acceptance tests to verify that the output of the new tool matches the output of the old tool, bugs and weirdness and all. Unfortunately, this is rarely the case.
It says it's equal of 10,000 laptops. We probably don't have a general need for that in the South Pole, so no one paid for it to be installed.
The answer to the question "why don't you re-write in X" is the question "what benefit to the client would this create and is it worth the effort?"
I'm not on FB, but I did recently join LinkedIn for work reasons and holy god it's awful - only thing on my TL is posts from recruiters and LI asking me to celebrate somebody spending a year at 'looking for new opportunities'. After I get my next contract i'm off there.

Only thing with any value to me is Twitter, and that's only reactively when i'm looking if there's an outage.
With that kind of money at stake, you could expect the integrity of Glassdoor reviews to tank pretty quickly.
That vowels are an afterthought in Semitic scripts is not an “Orientalist claim” at all, it’s completely mainstream archaeology. The use of some consonant letters to denote long vowels (as so-called matres lectionis) was a development subsequent to the use of a purely consonantal writing system.

With regard to Turkic, one of the challenges with using the Arabic script is not just that Turkic has a larger vowel inventory than Arabic or Persian, but the frontness/backness of vowels plays a major part in the morphophonemics. The Orkhon script that was the first used for Turkic languages was designed to reflect this, but when the Arabic script was introduced in towards the Middle Turkic era new strategies had to be thought up to reflect frontness/backness, e.g. the use of Arabic emphatic stops versus non-emphatic ones. However, the solutions that were found left a lot of room for ambiguity. I often read Kazan Tatar documents in the old Arabic script, and I can understand how the plethora of rules and exceptions confused the masses prior to the introduction of the Latin and Cyrillic alphabets. (The Cyrillic script now in use is hardly better than the Arabic script, though)
Top Ten Belly Fat Burning Foods
HTML and CSS: the essentials
Data about you is valuable. Netflix can sell it without displaying the ads itself. I'd be surprised if they aren't tracking users and monetizing that information, like seemingly every other business in the world.

But maybe someone knows ...
The captcha makes it extremely tedious, too slow, no fun at all.
It may become detached from the wall street aspect

I.e. it would become something completely different. There is no parallel to David, David's context is not as closely tied to its location - in fact, the statue is not displayed at its originally intended location.
The book is short, but there are plenty of exercises and worked solutions in the back. Do the exercises and you will get your money's worth. I suggest buying it with the bundle because More OCaml is good also.
In the Boston area, we basically have 93.7 WEEI and 98.5 the Sportshub, two FM stations. I don't even know what the AM stations are, or if they exist.
Yes, my response was to point out to OP that the referendum itself is probably legitimate. And I think it's the responsibility of the voters to decide if that should happen, just like with (to a lesser extent) Brexit and the recent US presidential election.
> Continued funding will require perennial marketing to your peers.

I'm not a fan of this proposal either, but how does this aspect differ from the current system, really? Who do you think reviews grant proposals?

If I had a nickel for every PI who came back from a study section saying "We gave high scores to project X, because I know the PI, Y. He does good stuff." (i.e., the decision was made apparently with little reference to what was in the actual proposal), I could afford at least a better parking spot.

I like your idea. One problem, though. It seems to require some kind of post-hoc evaluation of whether a proposal succeeded or not. In its simplest form, this would reward low-impact, sure-to-succeed types of projects which are already a scourge at least at the NIH. The worst kind of grant IMO is not the one that fails, but the one that, after it succeeds, nothing of value was learned.

I think post-hoc grant evaluation is a great idea and needs to be done much more, I just wanted to point out that "success" is multidimensional: successful at meeting its aims, or successful at improving our state of knowledge? The latter is what we want but very difficult to evaluate even qualitatively.
> They also need to keep detailed log books, plan out routes, pass inspections -- and know how to talk civilly and constructively to DOT inspectors. An eighth grade education will not get you there. Especially on the last part.

I don't think you need a high school or college education to learn how to talk civilly and constructively with authority; decent parents should be sufficient. Ignorance need not automatically mean petulance.
The only way you're going to make a useful pro machine is to have one with standard parts that can be upgraded easily, something Apple absolutely refuses to do and has refused to do in any of its products for many years. That's why the last decent pro machine is 7 years old and why I'm not holding my breath for the next one. It's guaranteed to be proprietary like all the rest of their hardware these days. Making a pro machine is not that hard. It's by far the simplest type of machine because by definition it should be able to handle anything. Hobbyists and corporations alike have been building them for decades. The fact that Apple can't build the simplest type of machine says a lot about them as a company in 2017. None of it good.

EDIT: Discussions around minimalism and design at this point are beyond irrelevant when Apple can't actually build a computer that serves pro users' needs. Those factors only come to play when you actually have the ability to build a proper product. Apple does not have that right now.
Very positive story! That on itself already makes it fun to work with you as well. Don't underestimate that "how much you get out of an internship" depends on your own attitude as well. If it's a pleasure to have you in the team, it's gonna be much easier to get feedback, be trained, get responsibilities, etc.!
What Happens When the Pager Goes Off?
The cURL project consists of roughly 100 thousand lines of C code according to Ohloh.

You do not have to when you choose a more modern safer language that can export functions with C linkage and can trivially call C functions. You decide to use a new language and write new functionality or functions that have to be rewritten anyway.

For instance, gcc first switched to g++ as the default compiler and started allowing a subset of C++. Firefox started using Rust here and there where/when it makes sense. There are countless other examples.

I think very few folks would actually propose converting a 100KLOC or an MLOC project to another language. (Though Go did did it with their runtime and compiler :), though that's quite a special case).
dwarfed, ya. and it appears that the "new web" participants engage in legal attacks on, e.g. popular blogs about hacking owned hardware. so, dwarfed and maybe bullied, too.
Always Hungry? A Mathematical Explanation
The last email notification I got was yesterday. Apart from that I got a reminder about friends' birthdays today.

I notice that messages notifications for private message sent to me not longer include the content of the message. Instead I get the following
"You'll need to use Messenger to see and respond to *'s message. With Messenger, you can text and make voice and video calls for free."
Show HN: Simple Gaming AI
If you want to write things on a self-hosted static blog in your free time, the hosting costs add up to a few dollars per month for a domain name and (e.g.) a VPS, for something that can scale to thousands of simultaneous readers. This is completely negligible, so I don't think "the bill" is a very important factor.
My limited experience tends to suggest there is a geographic mafia involved as well. If you are on the west coast and just need money, you are probably better off pitching local industry because the east coast PIs have a older, more established network system that effectively locks up a lot of government grant funding.

I have applied for grants that might as well have been written for my group, very niche, and been denied, multiple times. One of my advisors actually told me "Do you know how to deal with the mafia? You make your own mafia."

I consider an NIH R01 to be equivalent to a degree from Harvard: it's the imprimatur, not the money (or, for Harvard, the education), that is different.
When Feng Zhang spoke at my school, it seemed that the use of patents was to prevent unethical modification of human embryos, but that hasn't seemed to deter scientists in countries where IP is not recognized (China).
this is a bit outside looking in, but you get a sense of how easily people can be manipulated, or intimated in a democracy, without proper safeguards. Look at our election results!
That's for Federally funded research.

The definitive way to find out who owns the patent is to look at the Original Assignee and then the Legal Events to find out who the most recent owner is:

So Transmeta was the Original Assignee for US7100061 but Intellectual Ventures now owns it.

https://www.google.com/patents/US7100061
A Twitter acquaintance had a phone call from a website owner where he'd just browsed their site, no relationship in any other way.

We think they did a whois on his IP address which was at his company address, which we all know is doable, but seeing companies proactively do this is crazy.
One problem is that the "known good perl code" likely doesn't have comprehensive tests, it was probably written before TDD became prevalent. So you'll probably need an initial phase to develop tests for all the functionality so you can verify that your new code still passes all the tests.

Also you probably still have to understand every line of the old code, because within will be buried the many undocumented special case workarounds and bug fixes that code accumulates over time. See the classic Spolsky "Things You Should Never Do"

https://www.joelonsoftware.com/2000/04/06/things-you-should-...
Isn't that a null point? If they don't exist then this endeavour is dangerous no matter the method you go about it - translating perl to python doesn't ensure its a 1-1 mapping functionality wise, and if you're going to rewrite it in idomatic python anyway....
A quick approximation is the life expectancy of a person that is around 117 years old.

Looking at https://www.ssa.gov/oact/STATS/table4c6.html it's around 0.72 years.
Are there really that many people on NH that can understand this?

I'm not trying to be snarky, I'm legitimately interested. It seems like this class of knowledge is highly specialized, yet I see posts like these high up on NH frequently.
That's not an operating system; it's a trivial kernel. Linux, in all its complexity, is still not an operating system; it's a kernel.

For anyone seriously interested in building something less trivial, I recommend starting here: http://wiki.osdev.org/Getting_Started
>Every coder I've ever met who got promoted to management (not hands on) ended up having a terrible time finding work after that role ended.

Where I work periodically upper management decides there are too many middle managers and fires a bunch of them. Guys who went into management in their late 30s and 40s don't have enough experience to stand out as managers and haven't kept up enough to go back to the technical track. Most of them end up finding something, but it's usually not ideal (lower pay, longer commute, longer hours). Some call it quits and retire early.

Every few years someone from the company swings by my cubicle and asks me if I'd like to be a manager. I don't know whether to be flattered or insulted. Half those guys are gone by the time the question comes up again.

IMO the only way to do management in the US is to go to a prestigious school and start along a career path that puts you in the C-suite.
I have never spent over $100 on headphones. $50 is usually enough. I have plenty of things to geek out on in life, audio quality is not one of them. Seems like many many many tech people are like me.