skysight-inc/HackerNews huggingface dataset:
> It transliterates C into unsafe Rust. That's not too helpful.

From the author's perspective it is helpful. If the goal is to make an existing C project memory safe without sacrificing performance and memory efficiency, one way to do that is to rewrite it in (safe) Rust. An automated direct translation from C to (unsafe) Rust would result in a body of code that would not (completely) satisfy the borrow checker. But some significant portion of the code would, thus reducing the total work necessary to translate the project to safe Rust.

The thing is that you can satisfy the borrow checker by (manually) modifying the Rust code resulting from the automated translation, or, alternatively, you could modify the C code in such a way that the automated translation results in Rust code that satisfies the borrow checker. If you can manage to write C code that automatically translates to safe Rust, then the safety guarantees of the borrow checker also apply to the C code.

So the automatic translator can be used to apply Rust's borrow checker (and its safety guarantees) to C code. This would be one way to, for example, bring a degree of memory safety to embedded platforms that are not supported by Rust, but which do support C. Pretty sneaky, no? (Of course, some of Rust's memory safety is achieved through run-time checks rather than the borrow checker, so it doesn't completely solve the problem for C.)

But satisfying the borrow checker is still a lot of (mental) work, and as I've pointed out, there is an easier alternative. It would be much easier to write an automatic translator from C to SaferCPlusPlus[1]. And even for embedded platforms that don't support modern C++ (or at least its standard library), you can pull the same trick, as SaferCPlusPlus also uses a degree of static enforcement of memory safety (although not to quite the same degree as Rust's borrow checker.)

[1] shameless plug: https://github.com/duneroadrunner/SaferCPlusPlus
Can confirm. Dongle Daddy can't currently help me power my Nexus 5x.
The ETH Zurich works that way.

After you finished high school you can go there. (I'm not sure, but there might be some exception where you need to pass an exam)

Depending on the course, 2/3 of the students will be gone after two semesters.
wat?

The Scientific Method is one of the most powerful tools we have!
Is Numpy on that list?
Do subscribers get an ad-free experience?
> Of course you can continue using Python 2.x after 2020 but you will receive no security/bug fixes.

I keep seeing this irrelevant line all the time from Python 3 Ayatollah and High Priests. Python 2 isn't only CPython. So what if the Python foundation stops maintaining CPython? Dropbox is writing a new, efficient Python 2 implementation to make their legacy Python programs run faster while they slowly port to Go.

There's Pyston, there's PyPy, there's Jython, there's IronPython. We don't depend on CPython security fixes thank you very much. And so far none of them have made an EOL announcement of their Python 2 releases, while in the case of Pyston, being Python 2 is a must, dropbox is never going to port anything to Python 3. If something is worth wasting time with Python 3, it's worth rewriting in Go.
If defaultVal is a constant, this is OK, but what if it requires computation?
Ouch, slip of the fingers. I can't edit it now.
> "let them eat cake"

History will not be kind to this point of view.
Here's a question for you: how many more traditional toys involve strategy? Board games do, obviously, they're also games. But other toys rarely do, and that's one thing video games have in spades. Even visceral, run-and-gun action games usually involve a fair bit of strategizing, even if it's just "what's the optimal path to kill these zombies?"

Heck, what parts of school teach any kind of strategic thinking? I struggle to think of anything part of a standard curriculum.
PS: My other 'proper' TP programs were a staff time management and reporting app, a materials control system and a file upload program for a Stag device programmer - it took a PROM/EPROM/PAL/GAL binary or hex file in whatever format you had, identified the format, parsed it for checksum and file errors, set the Stag programmer device and file parameters (which saved a LOT of time and avoided setup errors), uploaded the file, verified the upload and programmed & verified the device.

At one point, Stag came down and checked over the code with a view to making it their stock program but I think things became too complex when legal got in the loop.
That's the fun of working with me. I say funny shit!

I occasionally refer to the final steps of a project as "bayoneting the wounded" too.
Turn it all off then. It took me about 20 minutes of configuring Windows to turn off every single thing you mentioned.

You do have search without Cortana. You are incorrect. I use it every day. Stop spreading false information.

Honestly, I would hate my Mac and Linux boxes too if I had no clue how to configure them the way that I want. Perhaps you should learn how to configure things properly. Then you can stop complaining.
Zuckerberg is one of the biggest supporters of the whole "open borders, no nations" agenda meant to decrease the cost of labour and drive down wages and protections for workers and increase the influence large corporations have on laws and regulations. Yet Zuckerberg doesn't want any of this for himself, he wants his isolated compounds constructed with large walls. His legal movements obfuscated. His motivations kept in the shadows.

"They trust me, dumb fucks" - Zuck

These are the kinds of people that are "scared" of the populist uprising at Davos. They just don't get why people don't like them as they eat their $40 dollar hotdogs.
There's a difference. You aren't forbidden from listing your marital or child-care status on your resume, companies are forbidden from asking you about it. Banning applicants from disclosing their school would be a rather different step.
I too am disappointed that the Google redirect workaround no longer works. I recently cancelled my WSJ membership as part of an effort to minimize my monthly expenses, so now I am effectively cut off from all their news stories.

IMO it's not a big deal though, as I've turned to Bloomberg for most of my market news. My health has also improved considering that I no longer subject myself to skimming through the WSJ comments section.
You forgot to change the "a" into "@".
> # Game Programming Patterns

This is also available on the authors website: http://gameprogrammingpatterns.com/contents.html
Sports cars don't determine the trajectory of your life.

Also, farming is heavily automated and done by very few hands outside of truck crops. Farming truck crops is low wage, incredibly difficult work that we generally use illegal labor for.
Also, if my laptop doesn't have HDMI or VGA, I can't connect it to my TV. Don't some ultrabooks only have Display Port out?
I don't know that there is a huge difference between those two. What I do know is that in this case there was no difference of any significance.

The comment was signed with his username, and his Docker affiliation was disclosed under said username. That was all that was needed to add validity to the claims in the comment.

All HN comments have that "generic signature". All HN users are free to disclose information about themselves on their profile, and all HN readers are free to click usernames to learn more about the the people who comment on HN.

It really is that simple.
US record industry lobbying group makes copyright demands of new Congress [pdf]
I think bullies should be treated with confrontative aggressiveness wherever possible until they stop bullying.
Therein is part of the issue: Silicon Valley is built on software, and software development is very different from medicine. Not trying to say one is harder or easier, but one is a much more unconstrained space of creation in which a really good, revolutionary idea and a strong mission can create a company, and in the other... a broad vision might simply be impossible. "We're going to build a social network online where people can post and see their friends' posts" is a nice vision that can be implemented in code; "We're going to diagnose lots of diseases based on a single pinprick worth of blood" is a nice vision that you can't actually do.
Hey, Sebastian from Realm here. Team lead on the object server.

Definitely happy to hear that. We've poured a lot into this, and we still have so much to implement and do. Looking forward to improving your workflow even further in the future!
I am talking on a GDP basis.
I used Parse and Firebase for a mobile app project a few years ago and I always felt the combination was necessary. Firebase is great for real time data like chat streams while Parse did all of the unexciting user account stuff.
I do believe journalists go at it with a mindset of "this is wrong – people will want to know they're being lied to". Witness the "fact checking" trend (which started in the Bush years as a reaction to Karl Rove's https://en.wikipedia.org/wiki/Reality-based_community).

Another factor is simply that there's probably nothing that gets a democrats blood pressure to rise quite as much as simply not accepting facts. The first time you're saying "Russia's invasion of Ukraine made me really nervous" and your uncle says "Yeah, you should know that this Ukraine doesn't exist, it's just George Soros' plot to declare martial law in Arkansas" you really get to know how your dog feels when he kinda tilts his head and looks at you.

And as soon as the right wing noticed that reaction, they couldn't get enough of it. It's so easy. Just deny the existence of oxygen, or satellites, or the accuracy of unemployment numbers – anything, basically. You'll give ten Harvard PhDs heart attacks with half a sentence of work.

That does, however, require a view the right wing that is a bit more pessimistic than I'm completely willing to subscribe to, yet. Because those people would more or less knowingly be destroying any actual discourse, and harming themselves as much as anybody. I'm not sure I can believe in such malice, although one essay that makes this case is somewhat believable. In that view, (parts of) the right wing have basically given up and are now only out to tear everything down (https://www.thenation.com/article/this-political-theorist-pr...).

Oh, and regarding the original question: the fake-news debate is happening, irregardless of weather that good or bad, and if this guy was really making 6-figures that's a valuable datapoint people should know, and it points at a possible counter-strategy of going after the sources of funding. So yeah, it's very far on the "publish" side of that debate. Also, journalists are quite proud of operating independent of the business side of their publications, so they would at least profess (and honestly believe) that they're not writing such an article in an effort to do anything but inform.
It does raise the question: what are you doing in the remaining 380-580 hours a year?

If the answer is TV (or similar), has anything really changed?

> I want to be good and that costs time.

This applies to everything in life.

> I can't play video games "for fun".

Probably not a bad choice to change your form of entertainment, then.
> Yes, many western social media and news sites are blocked but they are not "the internet"

Says who?

> and if you consider them as such then the west has exactly the same problem as the one you have just described.

What? So, "the evil west" considers social media and news sites "not internet" and blocks access to them?
Yes, and even if something has DisplayPort and VGA (like some Thinkpads) you'd probably want to use DP where possible.

EDIT: and I'm fairly sure the suggestion for connecting a VGA laptop to a HDMI TV doesn't actually work that way around.
Make the courses harder to pass.

If you filter out a lot of students early on, you don't need to build new ones.
Why do lives need a trajectory other than survival? Seems unnecessary and merely a cultural phenomenon. This is why higher education is a luxury.
2.7.8 was the latest 2.x when I built the current codebase. Currently I'm testing before a cloud launch. Fixing bugs in my product's functionality is a higher priority than porting to the latest 2.7
Krebs pinpoints the likely author of the Mirai botnet
The Google API Client is at least Python 3.4 compatible:

https://github.com/google/google-api-python-client/

I see only one Py3 bug is the open issues. And I think even their ancillary library Python Flags is now officially Py3 compatible, even though there has been a Py3 fork of it for years.
Get started with JHipster 4
Makes sense given Python 3 lets identifiers contain non-ascii characters, e.g. café=123, 变量="x"
"Greenwashing" is one common example: https://en.wikipedia.org/wiki/Greenwashing

It can also apply to anything that a culture considers virtuous or trendy, though.
Meet the Tesla race car that’ll do 0-62mph in 2.1 seconds
Open source and provide value add services that are worth paying for when the app is used in a business setting but matter little for individual users?

A common problem with marketing many software products is that they fall into the category of things that aren't worth paying for if I paid for them all. I mean if I pay $10 for every little utility, suddenly I am spending $1000 for my 100 utilities and so I am better served by a habit of not paying for any of them.

Good luck.
The Best Sound for MS-DOS Games – Roland MT-32
In first world nations it is. The US has 3.2 million farmers and a population of 325 million or so. I don't know if your figure is inaccurate, misleading or farmers in India are extremely inefficient.
Currently learning how to transform ideas into business...
This includes trade schools. The U.S. doesn't have a very good formality for matching high school students with particular trades, there are few public trade schools, and essentially no public funding.
They built their own load balancer?
> "If your phone is made by Samsung, HTC, Sony, Motorola, LG, Nexus, Nokia or Google it's definitely an Android phone. If you have an Apple iPhone, it's definitely not an Android"

Just a heads up, my Nokia running WP is definitely not an Android phone.
A fair coin means that it is equally likely for you to take a penny from me as it is for me to take a penny from you.

For instance, if we play the game 1000 times, heads might come up 505 times and tails might come up 495 times. Over time, the difference between the number of times tails comes up and head comes up will go to 0.

Therefore, over time, we'll both stay at $1 million.
Let alone the US the security services of nearly any state can take care of this. But no, they want to access and use these services and have plausible deniability and so let them exist and extort others.

I don't think anyone imagines the NSA, the russian or chinese security services do not have the ability to put a stop to this, at least those parts that are in their control.
We detached this subthread from https://news.ycombinator.com/item?id=13434549 and marked it off-topic.
I completely agree!
"Today, India ranks second worldwide in farm output. Agriculture and allied sectors like forestry and fisheries accounted for 13.7% of the GDP (gross domestic product) in 2013,[2] about 50% of the workforce.[3][4]" - Wikipedia
The "ad" can easily be removed unlike on OS X.

Go ahead try to never open the App Store on OS X. You can't do it because you need it for updates. When you open it you will see actual ads.

At least I can get rid of the tiny little "ad" on Windows. And I never use the Microsoft store. Ever. I have never been forced to use it and I've been using Windows 10 since release.
As everyone is saying: do what is reasonable and useful.

E.g let's make an online shop.

It has browsing, purchasing and admin sections.

Browsing is simple. Query dB and show html. It's probably the most used as well and needs to be reliable. Having as different service means admin section could break while users are still able to browse. Same for payments. Sometimes it's crazy complicated. I think of microservices as big product feature boundaries that can work independently. A failure in one doesn't affect the other.

Continuous integration: once you have your tests, and some auto deploy scripts, you have an engine. You push code, tests auto run, a live staging is created for latest code, you play with it. Looks good? Merge with Master. It's deployed to production. The idea is deployment is effortless and you can do it multiple times a day just like git push. Tests just don't only have to be unit. We run integration testing features on dummy accounts periodically from different regions in the world on production. This means you are alerted as soon as something breaks. Fast deployment and great telemetry mean you can always revert to last known good state easily.

Investing in tests is a pain but it pays off in the long run. Especially if you have other developers working on same code base.

Just don't over do it. I believe these ideas came from pain developers actually faced and they used then to solve it. If you're not feeling the pain or won't feel it then you don't need the remedy.
Exactly. It's the difference between "Look up the first 100 people in this phone book not named Justin" and "Look up the 100 Justins that come first alphabetically across these 100 phone books"
We've banned this account. Please stop creating accounts to break the HN guidelines with.

https://news.ycombinator.com/newsguidelines.html
BYU and the surrounding "culture" - no drugs, not even coffee!
I didn't start with Turbo Pascal as when that was in wide use my parents still didn't allow me to go near a computer.

That didn't however stop Pascal from starting my career though as I started programming for real a few years later with Delphi 2 which was running a slightly improved version of Pascal with object oriented additions.

How I loved that programming environment: As quick and easy to use as VB, but able to produce real native binaries that run without any (external) runtime environment.

Plus you got all the windows SDK C headers pre-translated to Pascal so the whole windows API was ready at your fingertips (what could possibly go wrong when a self-thought teenager gets to write native code with complete unprotected access to memory and threading?).

Delphi is what I've used for my first commercial project too and Delphi is what I still use these days when I have to do some very, very rare Windows work).

The language is phantastic. Even after years of not looking at my code, it is very readable to me and I get back into productive mode very quickly.

Of course this might all just be nostalgia talking.
Oh so 12 years in the public education system wasn't enough to figure out of someone is prepared and is a good fit for college? Let's spend more money throwing another year (at a much higher cost) to see? Where is this money going to come from? I don't want to pay for this.

Look, if you turn college into another highschool, it will become just as worthless. College is already worthless for a large number of people who graduate with worthless degrees. Letting everyone to go to college? Why not just stay in highschool for another year. It will be cheaper and accomplish the exact same thing.
The poorer 20% are also much more likely to go to for profit "colleges". I don't think this is as simple as saying they can't afford to go to the best colleges.
I've known some 1% commuting 3hrs round way. Just because the "aren't shitholes" area could be really far away. Plus after tax 600k will turn into 350k.
Someone saying that they feel disenfranchised because their race, a prominent race in the industry, was excluded from a marketing message specifically trying to make everyone feel welcome and included isn't fighting against anything. They're expressing a feeling. You're dismissing and rejecting their feelings. You go a step further by saying that the person is selfish, privileged, and needs own up to all the atrocities their race has ever committed.
Myria – Big Data as a Service
Could you imagine spending any time in a building that was originally designed to be a prison? Aren't those things made to break spirits and punish people simply by being in it? Have you ever entered a space and felt uncomfortable simply because it doesn't have windows or the walls are barren or it is just "cold"? We'd probably see a lot more drop outs if prisons were repurposed as dorms. Shit, some new schools are designed with the same brush as these prisons and we can probably easily predict the success/failure rates of students coming from them.
Everytime this gets brought up, I feel it fails to address the question "How is this overly different than the pre-internet area?". I can understand the disappointment as to the failure of the Internet to deliver on the utopia we expected in the 90s, and there's a fantastic lecture on the idea of "the end of mainstream" (I will edit and add a link if I can dig it up) and how that's removed a lot of the old universal cultural touchstones (which despite being universal tended to be very exclusionary which is what fueled the explosion of niche communities online in the first place).

I wasn't alive to comment, but I can't imagine the second half of the 20th century a booming time where you interacted with people outside of you geographic community (which generally shared your political, religious, and social beliefs). I know many of my parents old friends still live ~20miles from where they grew up and that's not overly uncommon. Put into that context it makes theses pieces on dividing Americans seem a little silly. Divided is the default state and has been since the nation's inception as a loose collection of independent governments.
Also "the Kia Cee-apostrophe-dee" and "the VW Up-exclamation-mark". Not to mention "the Ferrari the Ferrari (sic)".
You can't just say you have a workaround that someone stumbled on that addresses a problem for a huge number of people and then drop the mike and walk off stage. :-)
What's the alternative?

Lots of things are addictive - should they all be banned?
What I meant by that is that you had to do everything by yourself. Also it is very clean. For example removing element from the array is not as trivial as in Python.
If you cannot play games just for fun, then I definitely see how it can feel like a stressful affair and an unhealthy addiction.

The problem is, that variable schedule of reward and social validation are both very potent means of altering human behavior which can be used to extract money from them. How often do people who play games report, "I don't know why I'm doing this. It's not even fun anymore." The Extra Credits YouTube channel talks about this as well. There is a temptation that must be resisted, where variable schedule of reward addiction can be used to replace fun.

What is the record of companies resisting the temptation to do something unregulated, that they can make money at? Heck, I don't even know if we have a good metric for the degree of use of variable schedule of reward.
You need money to make the things the non-profit cares about, in this case, tools to have a free and open internet. Money pays for salaries of the people employed there; servers to build, test, and distribute software; office space; etc.
Just forward me your bank account number, and I'll directly deposit the $5. Let me know when you've received it, so we can continue discussion. I eagerly await your response.