skysight-inc/HackerNews huggingface dataset:
Yeah a millisecond is a long time even in Java. Couple of years I was writing a java backend server for caching+computation. I was severely memory strapped and was designing the daily expiration of data. The core data structure was map<map>. Now the keys that I had for expiration was in the 2nd level and I was troubled for the memory usage for a kind of secondary index for fast expiry plus the complexity of managing it. At the end I said what the heck and just did a full iteration of the 2nd level map and doing a hash lookup on the expired key, kind of reversing the logic (its essentially what a DB hash join does). I don't remember if I did a hashmap benchmark first or not. Essentially in my very old desktop (compared to current machine) I was doing 0.5M hashlook (2 lookups actually) per second per core and the rest was a very successful history.

So I think yeah with layers upon layers of libraries we tend to forget how fast a computer is and thats often sad. The whole misconception of premature optimisation has some incorrect side affect, people often ignore performance when designing things. The core parts of most designs specially library or shared infrastructure code should have some concepts of overhead/cost even though this shouldn't be overblown. Unconsciously bad designs then are often followed by super efficient but complicated algorithm to fix the design inefficiency.

One thing I very much agree with the blog post. The more conscious you become of these things the more you can guess where a bottleneck exists or where you should take care. You wouldn't always be right and you should always benchmark specially if it's critical enough or you are changing design too much for performance. But a general awareness can be very helpful.

As I completely rewrote that backend server few months ago I started with a very simple design, data structure and simple algorithms (linear scanning with a bit of indexing through plain java hashmap/concurrentashmap) it worked flawlessly the first time (in terms of performance). It is serving over a million request per day of fairly complicated dashboard generation at ~0ms latency and 2 YGC/hr I think. Some might call it premature optimisation but I think you need to have an understanding of where performance is critical and design for that. That doesn't mean you should think everything is performance critical and start optimising every line of your code.
In the UK: If I work from my home I need to consider the tax and insurance implications.

I need to do the same when I invite other people to work from my home, even if no money changes hands.

Domestic insurance tends not to include much in the way of public liability insurance. Since you're inviting people into your home it might be something to look at.

http://www.confused.com/home-insurance/guides/home-insurance...

http://www.intouchaccounting.com/resources/guides/working-fr...

http://www.hmrc.gov.uk/manuals/bimmanual/bim47825.htm
I was going to offer free legal advice. But I don't see a question in this thread. So I'm not sure what I can do.

Good luck, my dear friend, Mr. Jufal Denny.
Show HN: 3D browser based multiplayer game
Or you could just use C++11/14 allocators instead which fix this in a much more transparent way...
Always good to see new o/s music scoring/playing systems. What advantages does Alda have over Lilypond + something like Frescobaldi? Lilypond is an immense mountain to climb for alternative systems.
http://lilypond.org/
In general true but sometimes it's almost impossible to prove that it is actually unwanted or plain wrong and you need to take some risk for the bigger benefit. It's not something to do lightly but it is actually needed sometimes. Our application has bits that hasn't been touched in years and no devel exists with experience in the said (problematic code) and if new development is needed and if that bit puts the new work at risk sometimes you have to make some judgement call and take the calculated risk.
I don't understand the point of this. If you have a place to live then why would you go to someone else's home to work when you can do the same at your own place?
Las redes wifi invaden las ciudades del mundo
Regarding this:

"Collect all people in a circle; you might want to start with a moment of mindfulness (try e.g. the app Insight Timer and chose one of the shorter guided meditations)."

I meditate and even use that specific app, though only as a timer... and I still would never impose a guided meditation on visitors to my home who are there to work.

It borders on religious proselytizing.

"A good one to start a Hoffice day is e.g. 'Being Infinite'."

I don't know anything about the content of that, but I have a hard time seeing how it would be appropriate for a secular, professional gettogether of strangers from different backgrounds.

If I went to a Hoffice thing and the host put on a guided meditation about "being infinite," I would maybe join because sitting quietly for a while is nice... but I wouldn't come back. If I want to meditate on infinity, I'll go to a temple, or sit on my bench at home, thank you.
What stack did you use on server-end? Also is there some AI involved?
Right on!

Although tbh I find the exercise of imagining an economy with abundant (yet limited) energy quite difficult.
The video is constantly buffering for me, wish it was on youtube
Backend is Scala/Play/Akka. And there is bots who comes into play when there is not enough real players.
The dystopian lake filled by the world’s tech lust
I read through a page / event in my local zone, and someone talked just about free offer (including like, meal, offering a drink). So, nothing set in stone about fees right now
> I suspect the reason that Twitter is cutting off apps from using its “friend finder” feature is because...

How did this happen? I've been using Twitter API these past years but I'm not aware of this "friend finder" feature. Getting friends/followers is still there in the REST API.
Some people enjoy the company of other people, but dislike their local coffee shops.

Or people may feel a change of environment is important to them to help them switch into work-mode.
> I do, however, consider myself reasonably qualified to opine about the state of AGI research. And, despite more than a decade of trying, I have no idea when to forecast the emergence of AGI. I would not be shocked if it happened tomorrow, nor would I be surprised if it occurred 300 years from now — or not at all.

I'd be surprised if it comes tomorrow. The leading scientists have little belief that their current methods could be easily adjusted for AGI. All of the leads in AGI currently can't even simulate the problem solving skills of C. elegans. There's not a single AGI project that accomplishes the same skills of a specialized model.
Puppetry of the P-e-n-i-s: The Art of Genital Origami
I don't understand how you can say that with a straight face. The ArrayView class is incredibly simple and takes about 10 seconds to understand. The "complex" stuff is in the make_contiguous code, which in the end is simply adding integers taking into account alignment requirements (which you still need to understand if you want to write the first version in the first place).

And seriously, did you read the initial point? The problem is that the first approach must be fully rewritten for every new class with different members that exists in your code. Given how HN is butthurt over off-by-one and out-of-buffer errors, you can't say that the first example can really be debugged easily when you have 30 of them in your code. If you only had the Mesh class in your code and nothing else similar maybe it would not be worth it.. but only maybe.

The final example is incredibly simple to use, hides the complexity in one single point and prevents you from ever making mistakes outside of it and seriously, it is not that complex.
Same story without paywall:
http://www.ibloomberg.net/google-brings-in-chief-for-self-dr...
I have no idea what to recommend anymore. Most of my colleagues, myself included, have either moved from Linux to BSD or OS X land (depending on preferences) or just stopped being too involved. Helping people learn about software in general (and sometimes, but not necessarily, Linux in particular) used to be fun and rewarding. Nowadays, about 70% of the answers are either "Yeah, that's a bug they don't want to fix because they don't think it's a bug" or "I know that's not how you do it in Finder but that doesn't make it broken."

The Linux ecosystem is increasingly centralized and most of the organizations that are centralizing it, like the Gnome project, are actively discouraging contributions that don't match their agenda. This is reducing the importance -- and cohesion -- of any community. It's no coincidence that many people are finding less common ground in software they're all using than in software they're all hating.

The only Linux community I'm still vaguely in touch with (I read the mailing lists and sometimes the forums) is the Gentoo community. Largely because my only remaining Linux machine is running Gentoo. It eats a lot of my time, but stubborn USE flags control seems to be the only way to get a usable Linux distribution lately, and I'd rather spend an extra hour a week configuring it carefully enough to keep crap software out than spend a whole evening each month dealing with sudden breakage. It's not necessarily a friendly community, but most people seem to know what they're talking about.

Frankly, as bitterly as it may sound (and it's coming from someone who started using Linux just in time for the 2.0 to 2.2 switch), I'd rather recommend the OpenBSD community.
Well, they weren't that sophisticated if they left the bluetooth device transmitting. Pretty stupid if you ask me.

If it were me, I would have either:

1. Require a secret pin to be entered in order to activate the bluetooth.
2. Don't use bluetooth. For example the nRF51822 chip (e.g. in this module [1] allows you to implement your own radio protocols. You could make it impossible to detect - it could only respond when send a secret code of some sort.

[1] http://www.seeedstudio.com/depot/Seeed-Micro-BLE-Module-w-Co...
A city without plastic bags
Applikatoni – An open-source, technology agnostic deployment server
If you take the idea of "getting rid of randomness" to its logical conclusion, it boils down to making the world deterministic.

Does it make sense to pursue impossible goals? If not, does it make sense to philosophize about pursuing impossible goals?
Of course traffic over a data diode is UDP only (see http://actes.sstic.org/SSTIC06/Diode_ExeFilter/SSTIC06-artic... for an example application - if you can read French)

Replication might be infeasible, but file transfer works. Developed specially for use with data diodes: BlindFTP - http://adullact.net/projects/blindftp/ (French site, but there is a download link at http://adullact.net/frs/download.php/file/5406/BlindFTP_0.37...)
Trolls are trolls...
The beauty of old-school backdoors
This was linked from the recent DevOps Weekly newsletter (http://www.devopsweekly.com/) and I thought it looked interesting. Has anyone used it or care to share opinions about it?
Follies of a Finite Physicist
This regulations deal with working from home for the home owner( or similar). Yes you can deduct some costs, because this benefit your company/work/etc.

But if I am inviting you in my house, put a table at disposal, wifi, meals, etc, unless you pay for this, there is no legal implication. Not even insurance.

That's why I was asking how much it costs. From the website it seems like a hobby and not a real business, like hosting people in house to work from there and be paid for this.
>There's not a single [public] AGI project that accomplishes
>the same skills of a specialized model.
Seagate products: Telnet accessible by using 'root' as username and password
Makes me wonder if they're tied up with one of the permutations of Landmark or The Forum or suchlike.
Who Is Smarter – The Smart People or the Dumb People?
I know you mean it just as an example, but I would have used $10k and $30k instead; you cannot do much of anything for $1k or $3k so if you use that as a fixed price you will most likely end up losing money.
We make money by selling articles to you. Not by selling your data to someone else.
GUIDE TO CREATE AN AWESOME TWITTER UPDATES
Rarely have I felt so conflicted. The path towards relieving human suffering also leads inexorably to erasing human autonomy. Every increase in human control of neural-interface medical devices risks a corollary magnification of medical-device control of human neurons. Yet the relevant companies make no attempt to screen for this risk, guaranteeing that, if present trends continue, it is only a matter of time until artificial cerebrates penetrate the boundary! I repeat - PENETRATION INEVITABLE!
Lessons from the Early Pitch Decks of Airbnb, BuzzFeed, and YouTube
Instead of a Pi you can use an Arduino with a RF module.
The RF transmitter modulates at a standard frequency (e.g 433.92MHz), so the Arduino only has to send the code (a few bytes) at an appropriate frequency.

Here is an example I wrote, where I use this setup to turn on and off a remote controlled socket: https://github.com/andmarios/arduino/blob/master/lidlRemoteS...

Total cost could stay below $5 if you buy cheap components from eBay.
The fact that they managed to convince Mr. Thiel that they have a unique approach indicates as much about his lack of education in biology as it does their ability to communicate.

The problems with modeling human disease using "found" cancer cell lines (of which HeLa is just one of hundreds) have been widely-understood for well more than a decade. These cells have absurd, fragmented genomes with bizarre and variable chromosomal copy numbers. They have lived in culture for sometimes many decades, under strange evolutionary pressures. They provide models in which we can explore human-like cells and regulatory pathways, but it is well-acknowledged in the field that these are not sufficient to model a generic form of cancer, much less a particular patient's cancer.

Thiel is approaching biotech with the same blindness with which older investors approached investment in datatech during the dot-com bubble. There is no more reason to believe that this startup will corner the market on xenograft-based research into cancer therapeutics than there was to believe that pets.com would become the be-all and end-all of everything pet related online. But this comes back to your point, that the founders have done a fantastic job of communication. I hope they are communicating the truth, and not just their dream. It will be a big fall if it is the latter.
Clinical Graphics | Delft, The Netherlands | REMOTE | Python Developer | career@clinicalgraphics.com

Help patients move again!

The core of our work consists of a pre-operative planning system for orthopedic surgery. We are connected directly to medical clinics via a web service.

Your skillset would ideally include web service development, computer vision (image processing), medical visualization and familiarity with code quality assurance practises such as unit testing and continuous integration.

Interested? Send your resume and motivation or questions you may have to: career@clinicalgraphics.com or call us at +31 15 744 0137 (9 a.m. to 6 p.m., GMT+1).

We are NOT open to recruitment agency services.

https://www.clinicalgraphics.com/en/about-us/careers/python-...
Meditation is as secular as informally promoting Apple Macbooks. There's plenty of science to back up the advantages of meditation, which you are free to Google. It is no longer religious hokum.
> infinitely more simple and readable,

It's simpler at the expense of being more bug prone. Notice that the "simpler" struct has no housekeeping code to "delete[]" the memory. The programmer now has to manually "manage" that cleanup somewhere.

>, and the layers of abstraction added are of pretty much no value here.

The "value" he's addressing from the "simpler" but more fragile code:

1) remove bug-prone code which requires manually synchronization (copy&paste) of pointer types in both the lines defining the variable and the subsequent lines casting the pointer from a raw buffer: "mesh->positions = (Vector3 )mesh->memory_block;"

2) remove brittle manual arithmetic of pointer offsets embedded inside contiguous arrays such as: "mesh->uvs = (Vector2 )(mesh->memory_block + positions_size + indices_size);"

Calculating offsets (and/or enforcing logical boundaries) inside of arrays is very error prone and the OpenSSL Heartbleed bug was an example of that type of defect.

3) manage the release of memory using unique_ptr. Obviously, it is to help the programmer (and other coworkers using Mesh data structs) avoid memory leaks.

>features like this that add nothing and just complexify the code for no reason.

It doesn't look like "no reason" to me. The attempt was to reduce bugs, and add memory safety.
Next two years hottest, says Met Office
Yes, but what is that code doing? If it's operating a self-driving car better software gives better mpg, a faster journey, a shorter, safer journey. Maybe it's optimizing airline seat usage and routing again. Maybe it's running a just-in-time manufacturing or logistics system. Perhaps it's a medical diagnostics system helping people live longer more productive lives. I use a smartphone to message home so my meal is cooked when I arrive and doesn't need to be cooked in advance and then re-heated. Even hedge fund investment systems channel funds to more efficient productive companies because those are the ones yielding better returns. In the end, these are all yielding energy efficiency gains through reduced or more efficient resource utilization. Name any useful jobs software improves, and I'll show you a resource utilization efficiency, and all resource production and delivery is based on using energy.
Friendly note: you probably meant wary.
By the way, I say this as someone who is delighted to attend retreats that start every morning with a chanted invocation to the goddess of compassion along with the ritualized beating of a large fish-shaped drum, and two hours of sitting meditation before breakfast.

Religious gatherings are cool. Working in a "spiritual" environment is nice. On such retreats I especially like the part where you work quietly, together, without talking... and I like how there are formal breaks for tea. I definitely think workplaces can take inspiration from monastic communities.

But this just seems awkward. I realize I'm just talking about a little tip from whoever put up the website. I'd rather watch a video of a kitten in a box or something. Kittens are infinite too!
I don't think zoning applies to working from home. Is not like you open a front-door shop or some garage. Plus there is no money involved, there is nothing commercial.
Criminals do not care for sophistication nor gimmicks. They use the easiest way to get what they want. This current method has probably worked very well for them, and if it was not for 'Krabs' maybe it would have continued for even longer. Hindsight is 20/20. I am sure the criminals are reading the blog post and looking for the next slightly better method just enough to evade discovery.
The sad truth is that shaken baby syndrome may simply be par for the course when it comes to modern forensic science. For various reasons, society has allocated more resources towards testing medicines for erectile dysfunction than confirming the veracity of tests used to end men's lives!

My involvement with one tragic case has forever marred my perception of both law enforcement and the District Attorney's office. Before, I always believed that I would cooperate with detectives if I witnessed a crime. Now, I think I would keep my mouth shut, because there's too much risk of an idiotic prosecutor charging you for saying absolutely nothing. At best, your reputation is ruined; at worst, you spend the rest of your life in prison.

Welcome to America.
> To my surprise, according to Hassabis, Google DeepMind (DeepMind from here on) and FAIR have agreed to share research software framework based on Torch.

Would this be among them or publicly in github?
What Is the World's Sharpest Lens? – Blog for Photographers – KeepSnap
Great idea, good luck with it.

It's very similar to something I was toying with last year, but didn't get beyond the drawing board. The items that stopped me:

1. Cash-flow. I just couldn't make the numbers work. It didn't add up to a profitable business, and I didn't have the cash to plow into it on a whim -- nor did I want debt, or to go looking for an investor. Maybe your financial considerations were less stringent than mine. I had time, and no cash, so I was prepared to invest hard work... but like I say, I couldn't get the figures to work.

2. Security. This was a real issue -- I didn't get beyond the drawing-board though, perhaps in the Real World people are more trusting than I thought. How could I guarantee that my "guests" wouldn't wander into an unlocked "host" area and steal items? I couldn't. If I put safe-guards in place, I'd lose market appeal: my "guests" wouldn't want to give me strong guarantees of their honesty (Photocopies of passports? Large cash deposits? Nope, that would scare off customers, and give me further problems regarding data security etc.) And the "hosts" would always balk at my inability to provide a guarantee that nothing would get stolen.

The corollary of security is insurance. Do Hoffice or your "hosts" need any sort of professional indemnity insurance? If someone trips on a loose carpet and breaks an ankle, they may sue -- but who? And how would that pan out?

To be frank, item 2 was what really put my idea on ice. I think item 1 could be fiddled, particularly if a project such as Hoffice is slow-burn, low-income, and highly-automated (so you don't need to tend it manually).

How did you deal with these issues, in particular the security/insurance aspects? Genuinely interested.
If, as you readily admit, the emergence of AGI would radically alter the whole state of Earth in ways that can't be predicted, how do you expect the IPCC to account for it? Essentially, all they could say would be:

"If AGI doesn't happen, we predict [current predictions].

If AGI happens, who the hell knows?"

You can't account for something which can't be accounted for.
If you're referring to Eldred v. Ashcroft, that wasn't an EFF case.

You can see some of EFF's legal victories here: https://www.eff.org/victories , although to be honest we really need to update that list. For example, in the IP space I don't think it includes the two busted patents from earlier this year, which were being used to target podcasters and online competitions. See https://www.eff.org/press/releases/eff-busts-podcasting-pate... and https://www.eff.org/press/releases/victory-photo-hobbyist-pr...
That's great. Will this work such that if I see an article on HN I can somehow use your service seamlessly? I'd rather get my news from HN (what I do now) than visiting a different aggregator site.