skysight-inc/HackerNews huggingface dataset:
Private tech recruitment community: http://likewise.io
Yes, I know. As discussed elsewhere in this thread, there are cultural connotations to the term 'struct' that lead it to be used almost universally for POD, but--to ensure no ambiguity--that's why I said 'POD struct'.
Thanks for confirming - this was the one statement that struck me as wrong too but I don't have a C++ compiler readily to hand on my iphone
In certain ways, C++ is better than C. It has desirable features that C lacks. However, in certain ways C++ is worse than C, because the interplay of its many features creates much incidental complexity. For example, it was not feasible to write exception-safe code before smart pointers became ubiquitous. In addition, almost all the safety features of C++ are opt-in, when they ought to be opt-out.

I want a language like C, one that interfaces well with C, but with memory safety, static polymorphism, real vector types (to avoid the aliasing problem), and real higher-order functions, all with minimal runtime overhead. So I’m building one (Kitten). Mozilla (Rust) and several others (Nimrod) have similar ideas.
Alternative http://getsentry.com
don't forget the ever-menacing leading underscore!
This highlights some of the reasons I feel so blessed to be interested in, and involved with, web development at this time in history. I really am glad that what I enjoy creates value for others (of course, it's never perfect though).
I'm curious if these juries have any college education.
Excellent video!
No, C is lower level than you think.

That's perfectly rational behaviour. And yes, the string could change mid iteration, in the loop or in another function that has access to the address, or even in another thread that's just made a guess at a valid memory address.

This is the beauty and power of C, everything is a piece of memory and nothing is guaranteed, and no we will not hold your hand or stop you doing something stupid. Someone else has a valid use case for that, even if they don't know it yet.
You don't mention what compiler you tested it with, but both Clang and MSVC are capable of spotting the mismatch (and sometimes even fail to compile it).
Because some people like to use operating systems that don't have software installation and maintenance figured out.

apt-get install ipython

Done.
No beginner programmer (the premise of the article) will loop over a string backwards. No beginner programmer will put the decrement in the test slot like you did, in order to make i have valid values in the loop body.

I think it's somewhat scary to rely on post-decrement; I tend to favor pre-decrement in for loops as a general pattern, but of course in your code it must be post or it will break on an empty string.

I still think the original article's suggestion to manually pre-compute the length (storing it in a const size_t variable, of course) is the better option, overall.
Although it should be possible per standard C++, Microsoft's compilers have trouble dealing with it.
I am tired of repeating this again and again, so I am doing some yak shaving and creating a hosted rest service for managing user accounts and authentication. I will use it as basic infrastructure for future projects.
Scala tutorials (http://scalatutorials.com) - it's a "try scala code in your browser" (powered by scalakata.com) and has a basic tour at the moment, but I'm working on making it more like try ruby / codecademy, much more work than I thought by the way
Has Intel totally lost the plot?
Cyclists vs Motorists: A Phoney War Between Two Tribes
Almost all of the little spare time I have goes into http://Codepoints.net, presenting and explaining Unicode codepoints.

Edit: The page is fully open source: https://github.com/Boldewyn/Codepoints.net
Patent holders win 78 percent of the time [In Marshall], compared with an average of 59 percent nationwide, according to LegalMetric, a company that tracks patent litigation.
To achieve similar effect, some people are proposing changing the default unit to mBTC, uBTC, or satoshi. While it is not splitting, it should have similar effect. Instead of saying they own 0.6 BTC, they'll say they own 600 mBTC.
What if the real money is in B2B and this is simply going to push the expenditure into a special trade communication zone? Are American companies going to be banned from certain expenditures? Is is it possible that people would create a proxy corporation to leverage the service in different areas?

I'm probably acting like an idiot. But I mean I think this just is creating a recipe for crazy lawyers to try some shit on someones dime.
I'm interested in finding more about disk failures (HDDs and SSDs), possibly with an eye to create an advance warning system for increased chance of multiple failures in a RAID system or the imminent failure of a single disk.

Blog is at http://blog.disksurvey.org/

Sub-parts on github: http://github.com/baruch/diskscan and http://github.com/baruch/disksurvey
I wish I could upvote this more than just once. Using 'struct' instead of 'class' and combining that with templated "pure functions" [1], when applicable, make for some really readable/maintainable/extensible C++ code, which, although often overlooked, is a multi paradigm programming language (the OOP proponents want you to believe otherwise ;-). Especially, as mentioned in the article, the fact that if you're honest you almost never really need private class members (that might later force you to create set/get-ters) really resonates.

These days, I prefer to create an interface using the PIMPL idiom [2] completely hiding the underlying implementation, whilst the implementation itself preferably consists of data structures and collections of these (hence 'struct') and some templated functions to modify these. This also resonates with an old C mantra: design data structures first, model functions after their behaviour or something similar [where I just cannot find a quote for].

My main gripe with using 'struct' in favor of 'class' is probably the compatibility problem with other programmers that might become confused as to why you are doing such weird things...

[1] https://en.wikipedia.org/wiki/Pure_function

[2] https://en.wikipedia.org/wiki/Opaque_pointer
And yet, every class starts with public:, listing the public members. And in many cases the number of private things in the class is 1, for historical reasons due to how C++ (and C) manages "modules".
I've just started a site that aggregates open public transit data feeds. It lets you quickly see differences between feed versions, discover new feeds, and I'm working on APIs to easily bring in better real time data into apps

http://transitfeeds.com
It's weird to me that a post like this even needs to be written. Isn't it kind of obvious that it's highly problematic for the compiler to do this optimization because the function, generally speaking, may have side effects?
I would love to do this but 10k/day is a lot. I tried it for one week and I was extremely exhausted. My productivity also dropped as I am very tired. What time of the day do you run?
In France we use toto and tata. At least it's easier to see those words as examples. As a teenaegr, learning some languages, I thought using foo & bar was mandatory. Very confusing.
Used in this context, "reasonable royalty" is a legal term that describes the money that is to be paid due to the infringement. I don't believe the author was making a judgement call on the fairness of the award.
Who would judge whether someone was truly an "expert" in the area of study?
Originally it stated "IBM don't make operating systems for a reason". It's hard to have full confidence in the rest of the article when that's what it leads with.
Why Python is steadily eating other languages’ lunch
An invoice management app

A multiplayer RPG in JavaScript
Ask HN: What were the most interesting workshops you participated in?
Hi everyone.

I'm doing a little research. I'm part of a modest initiative in Andalucia (Spain) to organize some workshops in my city during the next months and I would like to suggest some of them related not only to technology (software and hardware) but also relating to DIY, science, art, crafting, startups, businesses... so what were the most interesting workshops you participated in?... and why were those workshops so interesting?

Our intention is to attract people of all ages to the sake of knowledge and the creative and entrepreneurial spirit.

Thank you in advance!
Thalidomide, though didn't necessarily kill people, did destroy many lives. Baby formula, fire retardants, and many other products brought to market by lobbying industries have harmed consumers by varying degrees and all backed by the FDA.
But it seems clear that it really shouldn't be used for anything in its current state.
The New Freedom
Not millions, and I don't want to buy into the "Big Pharma" conspiracy... but NPR's This American Life on the FDA & deaths from Tylenol was fascinating. It took the FDA 32 years to enforce warning labels for Tylenol (and other acetaminophen products) from when they were first recommended to do so:

http://www.thisamericanlife.org/radio-archives/episode/505/u...
I can't believe Blogger still does not change this redesign. It lags when I scroll text. It has this silly layout dropdown. The top bar obscures content. Why.
This statement (thanks for providing a concise version of it) sums up the problem with the whole idea of a jury trial. It is completely irrelevant if someone thinks he is an ass. He is there to provide expert knowledge, nothing else.

"Lack of evidence? Who cares? He looks evil, must be a killer .."
1. Helping people run faster: https://cleverrun.com

2. Stats about where you spend your time: https://clevergeo.com

3. Something with pebble and it's accelerometer, probably related to sports.
International social network for freedivers - http://theabyss.de/

With buddyfinder, user blogs, as well as list of freediving spots and events.
Whoa can you explain what you mean by using your non-dominant hand to improve self-control?
Uh, okay. I didn't read the original, sounds somewhat scary.

Anyway, please don't cast the return value of malloc() in C (http://stackoverflow.com/a/605858/28169).

Also, of course len should be const and sizeof (char) should be removed. Also testing whether malloc() succeeded before relying on the result being valid is a good idea (but perhaps there's machinery in place to abort on error), as is deciding what to do if the input string is NULL.
A columnar time series db with an lmdb backend - I have only just started and it us quite a struggle.

A map / tile server written in go. So far MapBox' mbtiles work.

This came from a peculiar interest of mine, whether my city needs yet another underground parking garage. So I started to scrape the public rss feed of the parking system. I have some gigs of data by now and RethinkDB is not as performant as I hoped it would be. There is no real query optimization as of yet.

What I want to visualize is whether you can find a parking spot at a certain point in time and reach a spot, for instance a shop, within a certain threshold by foot. In short, if you want to shop at XXX will you have trouble finding a parking spot?
Why not use a bicycle instead of a car? Headphones are a substitute for speakers in the same way a snorkel is a substitute for a submarine, or a spoon for an industrial mixer.
Open-source visualization of our solar neighborhood: http://uncharted.bpodgursky.com/ (source https://github.com/bpodgursky/uncharted)
"The proper way"? Not only is it less familiar than the usual "i = 0; i < n; i++" idiom, requiring the reader to examine exactly what it's doing, but now i goes from n to 1 instead of 0 to n-1. What's so bad about caching the strlen result in a variable beforehand?
I made embedding transcoded videos as simple as using the <img> tag --> http://transcode.io

Working on the production version atm.
What is the difference to Teradata or Netezza except this is open source and lack the burden of universality yet?
I believe it was a lovely piece of irony.
Storing length with pointer to array has nothing to do with OOP, strings can be defined as simple records (aka structs, product types) you don't need OOP for that:

struct string_t { const char * buffer; int lenght };

And really, I fail to see any attack on C in this article, it only mentions what a naive programmer might do, and why he/she shouldn't.
Test
Im new member here, and wanted to test if you can reaD THIS
What steps have you taken to help you write like him?

Actually, I'd be super interested to see the evolution of your writing style. Do you have a blog?
I think the issue is that you don't know what's going to happen when you call an arbitrary function.
Can we troll the patent trolls yet?
Trying to build soomething which can help to job seekers: http://besthi.re/
Why? It's not a prank.
Ditto to both, except instead of the office chair, I just raised my desk.
Open source github based jekyll blog editor that runs completely on client side. [1]
A CRM system, and a designer collaboration tool.

[1]: https://github.com/captn3m0/potion
a better trash can
Lots of them.

Open source implementation of Minecraft https://github.com/SirCmpwn/Craft.Net

Reddit API wrapper https://github.com/SirCmpwn/RedditSharp

kernel written in z80 assembly https://github.com/KnightSoft/kernel

TI-8x emulator in javascript https://github.com/SirCmpwn/OpenTI

And lots more https://github.com/SirCmpwn
would love to learn more.. feel free to ping me, contact info in profile.
This is the fastest way to write a loop in pretty much any language _if_ order is not imperative and is very well understood by any developer worth their salt.

> I tend to favor pre-decrement in for loops as a general pattern, but of course in your code it must be post or it will break on an empty string.

That makes absolutely no sense. It's post-increment so it runs for i=0, could have easily been:

for (int i = strlen(str); --i >= 0;)

http://codepad.org/kd3oOBAb <-- fiddle around beginner ;-)
That's what I immediately wondered - why it's int and not size_t? Well, I guess in Java engine there could be technical reasons why it is int, but in general case of implementation you'd probably assume it's size_t and then only one of the fixes works.
Streaming Twitter client in javascript since the last one I used died. Early version at https://deny.io/river/
Here's a gotcha I find more interesting than strlen: Right shifting integers instead of dividing by powers of two, e.g:

1337 / 8;

Becomes:

1337 >> 3;

Compilers ought to figure that one out, shouldn't they? Well if 1337 is a signed int, they can't. Shifting actually leads to different semantics for negative numbers, so this optimisation is only possible for unsigned ints. You can either do the bit shift or cast to unsigned, but it's a leaky abstraction either way.
Co-browsing solution with go & redis
Interesting - I'm working in this area too; more on the consumption of transit feeds - have noticed in the UK at least that there are a ton of T&Cs thrown around these feeds, do you think you have any issues repackaging like this?
I'm making an offsite status page SaaS: https://statusutils.com
Its in beta, and I could use some feedback :)
Named Queries in JPA
TEDx: Hackschooling
First report from developer's passive income - but where is the income?
Watch out for seemingly unrelated sensors. A few years ago a friend was showing off his Macbook Pro, with harddrive accelerometer picking (IIRC) faint traces of normal speech.

Ah, and good luck with removing sound capabilities from smartphones ;-)
As far as I know, this is untested in court for online documents. There is an argument that says that each HTTP request is an act of publication, thus updating the copyright date to that point in time. It's not a view I subscribe to personally.
The documentation has been improved multiple times with the 1.2 release: https://plus.google.com/u/0/+BradGreen/posts/EFLVQ2pTfHG https://plus.google.com/u/0/+BradGreen/posts/Pocnw7VLhxU https://plus.google.com/u/0/+BradGreen/posts/NzS6bJtMc2f
Last weekend I have created http://microbezilla.sandbox.lt/.

Now I'm working on HTML5 turn-based strategy multiplayer game about space pirates.
sounds interesting, checkout my gh, also you may find contact data over there: https://github.com/matiasinsaurralde
How to make an efficient Scalable Key Lookup engine of MySQL Cluster
interesting, what kind of trash can is that? can you provide some details, thanks...
We had someone do amazing work for just a couple of months and it was disappointing to lose him to a start-up but we appreciated the two months of output. But that would be the exception. It can take quite a few months to get up to speed on some code bases, and to learn the non-IT business side if one is new to the sector, so we are loathe to hire anyone with demonstrated startup fever.
Why's it over the top for my company to ditch NGINX because it's missing a feature that Apache httpd provides?
A new slide leaked by Edward Snowden shows where the NSA infected more than 50,000 computer networks worldwide with malware, according to Dutch media outlet NRC.

The NSA management presentation slide from 2012 shows a world map spiderwebbed with "Computer Network Exploitation" access points in more than 50,000 locations around the globe.

Like all the slides we've seen so far, this one is unlikely to win a Powerpoint beauty pageant anytime soon.

Not that this should deter anyone from the profoundly disturbing implications of a US government malware map being reported by a Dutch news agency -- to which the US government gave a "no comment."

On the NSA's Computer Network Operations program description page it describes CNE as, "Includes enabling actions and intelligence collection via computer networks that exploit data gathered from target or enemy information systems or networks."

In an article dated August 29, 2013, The Washington Post reported on the NSA's "hacking unit" called Tailored Access Operations (TAO).

Source: Zdnet
I'm reading it, and I'm rereading it, and I'm just not seeing that. In fact, I see the author going to great pains to point out that there really are times you want to depend on the non-hoisted conditional behavior of C. This is a heads up, not a "OMG C is teh worst language EVAR!" rant, not even a subtle one.
News search engine: http://wintria.com
Java applet games (from a while ago):
http://codelucas.com/pages/rocketboy.html
http://codelucas.com/pages/island-overlord.html

Trying to learn some js gaming engines though.
At these volumes, nobody really would multiply one server price tag per amount of VMs. That's when people negotiate. So 135k price tag is probably purely imagined.
> "And in those millions of years we will evolve (despite what certain religions say)."

It is possible that we will do much more than just evolve. Normally organisms change over extremely long periods of time through 'natural' processes but humans uniquely have insight into the mechanism of how this happens. We may, in the future, develop the ability (and desire) to take things into our own hands.

Just starting it out nice and slow, we could 'finish the job' in a few cases. Knock out wisdom teeth once and for all (somewhere between 9 and 30% of people are missing some or all of them anyway). No real reason to wait around a few dozens to hundreds of thousands of years for those to finish disappearing if we can do it ourselves.
Yes, best fix:

int mid = low + (high - low) / 2;
1. Cubehero - Hosting 3D printed projects https://cubehero.com

2. Embossanova - Emboss images to surfaces in OpenSCAD https://cubehero.com/physibles/iamwil/embossanova

3. Graftleaf and Graftweave - Graftconcept iPhone module back covers https://cubehero.com/physibles/iamwil/graftleaf https://cubehero.com/physibles/iamwil/graftweave
Assuming we don't get wiped by the apocalypse of our own making...

I don't see us colonizing other planets, the timescale required for us to start colonizing other planets, is probably hundreds of years with presumed prosperity (you don't see African countries launching that many spacecraft). We are looking at 50-100 years of prosperity at best, assuming we get out of the financial crisis.
And two Swedish journalists were kidnapped in Syria yesterday: http://www.washingtonpost.com/world/europe/2-swedish-journal...
Earliest 'shrine' uncovered at Buddha's birthplace
That still would not solve the issue as you'd manually be updating length when you modified your string. This is why instead of rolling your own lib, it's probably better to use the existing dynamically allocated C string libs out there to take care of it. Right, all the libs use a struct, as there are no first-class objects in C.
I always like the meeting you have about the meeting, then the follow up meeting a few days later.
A question: are you getting good performance from Julia? I've seen posts that say so, but my code that does Monte Carlo simulation (both vectorized and devectorized) seem to be very very slow compared to Matlab or Numpy.
A double shot of espresso is great, I have a million ideas all at once and am juiced to do it all. I get absolutely nothing done until it wears off and then I need a nap. hth.
MySQL Performance: over 1M QPS with InnoDB Memcached Plugin in MySQL 5.7
True story, but "Do you have XX-Chromosomes?" would do the trick and cut the mass of people at around 50%.
The documentation isn't great but it isn't terrible either. I hope people thinking of giving angular a try aren't put off by the constant over-dramatisation.
There is a lot of use in websites having shortcut keys though. For example using space to pause videos or the arrow keys to rewind. Not everything is optimal for the mouse.
> NGINX doesn't differentiate enough from the other HTTP servers out there to justify the cost.

So use Apache or any other HTTPD. Problem solved.
It would be interesting if it keeps a version history between each dump file. WP often deletes articles that it finds not notable (these are excluded in dumps) and it would be nice to still retain the last version.

In an odd way, we're going back to days where encyclopedias came in CDs. There was Encarta on a single disc, now we can have a lot more for around 80Gb ( http://xowa.sourceforge.net/requirements.html )
You have read his loop wrong. It has the same bounds.
i goes from n-1 to 0 in the example because for loops execute the condition before the first iteration.
You're wrong. Maybe I should hire my next team based on loop analysis ;-)

http://codepad.org/kd3oOBAb
> This is the beauty and power of C, everything is a piece of memory and nothing is guaranteed, and no we will not hold your hand or stop you doing something stupid. Someone else has a valid use case for that, even if they don't know it yet.

Just replace C with assembler and we know why we should all go back to it. Or rather not ..? Guarantees provide reliable environments. Reliablity is really helpful.

My nitpick aside ... I still want to (finally, really) learn C some time. Yeah, I can read it more or less, but that's not the same. Maybe on my next vacation.
My current side project is http://upbeatapp.com, working on it with two co-workers, and having some success.

Been having fun with Go-lang koans and Angular.js uiRouter as well.
An interactive map of the Paris metro: vasyenmetro.com

It tries to model an ancient (and magnificient) machine built in the 1930s: http://goo.gl/XjOFJy

It won 1st prize in a competition by RATP (which operates the Paris metro): http://goo.gl/C5bILT
Kitten, a programming language based on zero-cost abstractions (https://github.com/evincarofautumn/kitten). Competing in the same space as C++, Rust, and Nimrod. Statically typed, type-inferred, stack-based, higher-order, GC optional, with an effect system to manage side effects. Very much a work in progress, but you should stow it in your brain as a systems language to try in the future.