skysight-inc/HackerNews huggingface dataset:
i think in the long run, having to maintain a code that is readable helps a lot. even though c++ itself is easy to follow, it starts to get complicated once you get deeper and deeper in oo where everything is inherited from something else.
this is one thing i like in python modules. they are highly readable. and then write something in Cython if its time critical. same with Go, the code feels very clean and easy to maintain.
i haven't done parametric polymorphism in c++, so no idea about it.
Erlang is probably a better example of pattern matching (complete) without formal sum types (though dialyzer has value and type alternatives)
Works well meaning don't use functional calls at all if you want to escape from them.
Yeah the contract here is a form of nominative type checking, it could just as well be structural.
Do you still require the JVM installed in the same way you would the Ruby's VM?
Ctrl+left/right jumps to the previous/next word in text editors. Since forever. Together with shift it selects the whole word.
> import foo # creates only foo

Technically incorrect. The code within `foo` could alter anything itself accessible via an import, and it could walk up the stack to mess with the "current" stack frame of the module being defined by the import.

It's generally not done and would be considered very bad form, but it's definitely possible.

> In both ruby and python you can execute code that changes the global namespace from within a module, but you have to go out of your way to do it in python, while in ruby it's the default.

The tweet is about monkeypatching existing structures though. And you can definitely do that in Python, including at import (though that's generally considered a Bad Idea, libraries which can do that such as gevent usually require an explicit call to patch or replace existing modules)
I guess it's hard to prove, but I think certain objects are inherently correlated with good/evil. E.g. a torture device is inherently evil IMHO, and a vaccine is inherently good.
New notebook blog
China is good to have if you know the rules to play.
Simple and quick text parsing tutorial using Haskell
You can do significantly better with the right vendors and some negotiation -- this is specifically a pricing ballpark, not rock bottom deals. It's not outlandish at all to say that in terms of raw storage you're going to be close to S3's pricing, but it also doesn't reflect well on S3 at all. They are buying at a scale far beyond what you can hope to achieve.

This is money spent on physical equipment that you can choose to lease, that you can take depreciation on, that you can resell -- these are assets, not a line item on a monthly bill. S3 has no such benefits. And this doesn't even taking into account bandwidth, which is the real killer. The stored data has to come out sometime.

1.4PB of raw storage requires ~374 4TB hard drives. If you want to spend $50,000, you have at most $130 to spend on drives, and that's only if you get literally everything else for free including electricity. You can almost buy 4TB desktop class drives for that price from Newegg, but not quite.

Don't buy drives from retail channels, and don't buy desktop drives at all (yes, I know Backblaze does both of these things). HGST 4TB MegaScale or UltraStar drives are a safe bet, depending on your performance requirements. They run between $250-300 in quantity, which means 1.4PB is $93,500 in disks alone.
Use React Native  to Build Native iOS and Android Apps with JS
Thanks, more than that, I also know that there are many in-house implementations written in C++ with significantly worse performances than those of the good garbage collected libraries. Sloppy programming can always make slow products. It's still good to know where the limits are and I thank you for the honest report.
May be any personal question which may express your sense on "compromise". If you say i am deep rooted with perfection, have a added value.
It is dangerous to try to predict something as complex and interrelated as investment, based on such simple parameters. The OP could have been right just by sheer chance and is claiming insight, but is likely just luck and survivorship bias.
Effectively, you need to keep a small heap and if possible have "simple" data structure. In my case, I implemented the Python code of a trie based levenshtein distance algorithm[0]. I used maps because it was basically a direct translation of the Python code. This resulted in millions of maps and oft the index would just stop in the garbage collector for a couple of seconds. I solved it using my own map which is travelled linearly.

type SpellCheckerMap struct {
Runes []rune
Nodes []*SpellCheckerNode
}

with only few runes, I can just go through the list to find the index of the following node. You save the computation of the map hash key. It is pretty fast, here is an example of a spelling suggestion over a 500,000 words corpus[1].

Basically, the garbage collection cost forced me to think about a better data structure for my case. Maybe not that bad all in all.

[0]: http://stevehanov.ca/blog/index.php?id=114
[1]: https://www.chemeo.com/search?q=asparine
I use my tablet like a second screen for my laptop.

Read emails, documentation, or play media on the tablet while working on the laptop.

I save my phones batter for when I'm on the move.
This is not another food photos app
A small reminder to never work in those countries. Only the desperate ones go there.
I read this bundling as a deliberate rhetorical/political move. You could have bundled the US with other surveillance-happy Western nations such as Australia or the UK, which as far as I understand do not behave in a qualitatively different manner.
Pricing Model for HTC One M9 and Samsung Galaxy S6 Revealed
It sounds similar to manufacturing's authorisation for anybody to stop the line in the case of defects - its better to delay things for a short while and make sure everything is ok than it is to compound the problem by letting things continue. I imagine in the case of an airport with a plane stuck on the active runway this is even more the case, since the problem can quickly escalate into hundreds of people dying.
Could not find in the post why he was fired.

Form my experience, if not being part of a 10% cut 80% of the fired people deserved it and should think hard why.

Also from my experience, most people getting fired for legit reasons have not enough self introspection to see the signs and change, also mostly everyone else sees those in them.
It's worth noting that there is already an open source browser project to recreate + extend the Opera 12 UI: Otter Browser

http://otter-browser.org/
I built ported part of a distributed system I have in production to Go about 2 years ago. I remember doing a lot of reflection trying to factor out some common SQL code. Like this:

func CreateRecord(record interface{}) (err error) {
t := reflect.TypeOf(record)
v := reflect.ValueOf(record)

Where I named the struct the same thing as the table it mapped to.
Firefox Hello to allow screen sharing on video calls
Adobe Photoshop CC Lite Portable Is Here
You seem to be counting only cable companies and the highest-end services to imply a 'monopoly' over internet service where none exists.

Other sets of wires into the home exist and are capable of delivering high-speed internet. (Most notably: legacy copper wires offering DSL.) More wires can be run, just like cable TV was. It'll be even easier now than the cable buildouts of the 60s-80s; the world is richer, awash in capital, with better tools.

Wireless also keeps getting better and is now competitive with wired for most daily internet needs – email, web, VOIP, audio streaming, light video, gaming – all except for bulk HD video. (Just like people have 'cord cut' their cable TV to rely on net entertainment, others are 'wire cutting' their fixed-line internet service, and relying solely on their wireless internet, from one of 3+ providers.) So speaking for the US, most people have 6+ options to get core internet service. That's no "ISP monopoly".

We agree that locally-franchised monopolies over certain wireline services are a problem, where they exist. (OTOH, some localities have enabled multiple cable companies and other competitive wireline services, like Google Fiber.) Those localities with bad policies should undo their mistakes, as they see neighbors and peer-localities having made much better choices. But those scattered problem communities are no reason to compel a specific national service formula on all ISPs everywhere, even where there is competition.
Not sure why you started at a company where getting fired is "no great loss" to you. Why did you start there in the first place? How was your due diligence?

When hiring I'm always amazed how little candidates ask real questions about their work, workplace, how people are rated, what 'excellent' means, who there boss is, who there colleagues are, etc.
How is Apache Harmony more open? Easier to get in extensions without going through all the committees? You can do that with a fork of the OpenJDK too, nothing in the GPL preventing that.

As for MySQL, I don't see how the existence of a proprietary version of MySQL is somehow the GPL's fault. The users would be even more at a disadvantage if the proprietary version was the only one that existed and there was no free version, so the existence of the GPL version is a net benefit for everyone.

Not that it's a particularly good idea to buy a proprietary license or even contribute code to Oracle. PostgreSQL will treat you much more fairly. It doesn't require copyright attribution from their contributors, it's governed by a 501(c)(3) charity in the US and a similar non-profit in the EU rather than a company that only looks out for itself.

There is nothing wrong with making a profit with software, but signing an expensive restrictive EULA for a database is just a bad deal, whether you're a small startup or a major corporation.
How to detect Java deadlocks programmatically
For first class citizen functions, you want lambdas. Lambdas are a type of Proc but trap the return statement.

Blocks are pretty much an iteration construct.

It's really not that confusing.
Ever have a look at OpenHab[1]? It's a bit finicky at first but would make a dashboard with whatever you want on it, either in a browser or using their native app. There's also a really cool automation guide I saw recently[2].

I really want to do something like this when I get my old house back this summer. Thanks for the inspiration!

[1] - http://www.openhab.org/

[2] - http://www.homeautomationforgeeks.com/index.shtml
There were 63 comments when this was posted a couple of years ago. See https://news.ycombinator.com/item?id=6220019 . This lets us make some retrospective. Has there been a change since August 2013? I don't get a sense that either Craigslist or Reddit have had appreciable unbundling.
What do you mean by trolling?

It looks like a shitty, evidence free insinuation of dishonesty used as a rhetorical tactic, but that's a big assumption to make.
This could be really powerful if they will enhance the message editor (images, formatting etc.)
Drools 6.2.0.Final Released
Where that's true, antitrust action to create competition could make sense, or even perhaps specific regulations against abuses that actually happen. That is, focused on where choice is lacking, and tailored for particular abuses that are observed.

But in the US, most people have 2 or more wired internet options and 3 or more wireless internet options. The feared abuses are almost entirely hypothetical-future-risks. Any attempts to "hold communities hostage" would create massive openings for both competitive marketing and technological countermeasures.

By all means, any local communities being "held hostage" by a single provider should remedy their situation. Locally.
Codeless code – The small stuff
Semi-offtopic:

The are more compact representations, e.g. you can store the dictionary in a deterministic acyclic minimized finite state automaton (which can be stored in a flat array/slice). This gives you O(n) time lookups, where n is the length of the word, and reduces much of the redundancy in a dictionary.

Words within an edit distance can be found by computing a Levenshtein automaton for the word (which can be done in linear time) and computing the intersection language of the dictionary automaton and the Levenshtein automaton.

This approach is fast and very compact. I have a Java implementation:

https://github.com/danieldk/dictomaton
One issue is that the server uses Google Protocol Buffers. The following definition, for instance:

message Foo {
required string a = 1;
required int32 b = 2;
optional int64 c = 3;
}

Generates a struct like:

type Foo struct {
a *string
b *int32
c *int64
}

This is not particularly friendly to the garbage collector compared to a POD struct with no pointers.
kickstarter is good for funds and for advertising
276+ gem
50 million unique user / month
15, 000 req / sec
300 servers
database.yml 1141 lines
30 database
20000 + rspec example
50 developers
deploy 10+ times / day

I would love to see some of those scaling tools get merged as defaults in Rails.
The time has come to end the era of Codehaus
“JSONx is an IBM standard format to represent JSON as XML”
Microsoft, as far as we could tell during the saga.
These are sensible ideas, that have mostly been implemented.

- IMAP could be improved, but nobody wants to end up with yet another standard...
- look at hashcash, or DKIM plus some reputation system. The big providers - GMail, Yahoo, Hotmail, et al. - run such reputation systems. You can learn more about dealing with those by searching for "deliverability"
- GMail is perfectly happy to push a notification to your smartphone, at least.
- "Precedence: bulk" exists, as do other headers for more specific situations.
> It doesn't mean your program is correct, but that it could possibly be correct.

That doesn't seem very useful, I already know that my program could "possibly" be correct. If I didn't think so I wouldn't be working on it.

I'm interested in finding out whether it "is" correct or not.

If I ask the type system, and it just shrugs and says "dunno lol" then that type system isn't worth much to me.
Because this way you only read the data in once and don't need to make any changes to it which allows you to pick different data structures.
Bash Booster 0.3beta is not only provision tool now, but also task runner
It would be really great to see some plain-english explanation of what the algorithm does, for those of us who aren't already knee-deep in ruby/ActiveRecord.
> its been kind of nice to have textsecure as an option when internet is not available (which sadly happens a lot especially for travelers...)

Yes, this was also one of my main use of TS, and also in the subway, where Data is limited... Else, I could use Whatsapp, with ZRTP...
AFAIK the only differences between Chromium and Chrome are:

* Preinstalled proprietary plugins (Widevine, Flash)
* More preinstalled codecs (woohoo, patents!)
* Various user metrics reporting

There is a pretty big difference between that and keeping all of your changes private.
Agreed. It's so annoying to see parked domains, yet it's so easy to setup parking with sedo and the likes. I once had a site, but didn't renew registration, and guess what? It's been "successfully parked" by somebody who saw "ludicrous opportunities" to raise a few cents/yr. Sometimes I thought to restore the site, which was very informative, but I couldn't, because it's deeply linked to the domain it was on, and that somebody wants a ridiculous sum to hand me back domain ownership; I would have been happy if only he had used the domain to provide some value instead of click bait.

Lesson learned: never give up a domain, because it won't ever be free again. Instead, put it on sale.
Kellros, I think you just didn't read carefully that this is the first part of the series which final aim is to give us a complete and correct database model. So, maybe wait with your comments and marks till the last episode and a final model, OK?
> we had for instance a library for interacting with a particular service that was generated from an XML schema, making the code perfectly type-safe, with different functions for each datatype. In many languages that allow compile-time metaprogramming, like C++ and D, IO cannot be performed at compile time, so such schema-driven code generation would not be possible.

Actually this would be possible in D since you can read files at compile-time with the "import(filename)" syntax. Then you can use compile-time parser generators to parse it.
I did take a look at some Squad footage that was released from the team months ago, looking forward to its release.
Embedded C and AVL trees? Really? Could you explain how an AVL tree would be used in an embedded context?
Did Silent Circle remove their warrant canary?
And this is why... I don't go to US. There has been two highly interesting conferences in NY and one in SF (for which another founder offered to give me his tickets for free). But I use a false name on Facebook, which is against my contract with an american company, which is an impersonation, and I don't want to risk it with a TSA agent.
There is no boot loader. This is the Linux kernel module interface. The boot loader used on ESX was an actual boot loader, IIRC grub.

Arguing kernel modules are derived works from the kernel is very very different from arguing user space software is derived from an OS.
I didn't realise that was possible; I've updated the post to reflect that.
How can you have a POD struct without pointers if one of your fields is a string?
Say how I personally feel, get downvoted.

HN on Saturdays.
Argentina Discovery – Buenos Aires multiethnic city a world in a city
Well since I despise sneaky corporate behavior; I'll give my
honest, brief review of Esty. I was introduced to the site
because it was the only site my sister seemed to like--a few years ago? I looked at it and was immediately impressed. It reminded me of the annual Fourth of July fair. Where once a year artisans would sell their crafts(my annual purchase was a hand tooled belt, with a copper buckle). This was in the late 70's. This company had kinda recreated that experience.
Actually, strike that last sentence. The site didn't come
close to recreating that fair, or level of craftsmanship, but
it was better than Ebay.

Jump ahead a few years. I now can't tell the crap from China
and India--from handmade local works of art, and each month it just gets worse. Good luck with your IPO--I imagine current management and slick Bankers, along with the usual list of insiders will make another killing. (I guarantee in a few years you will want the guy back who had the original vision! "What happened? Why are we loosing customers to that new site. That new site that has standards? I hope he makes you guys pay until it hurts.)
The newer scanners are much less invasive. You can turn your head and see the display, it's very basic. And I've found TSA agents are much more interested in getting you through security, than holding you up in security. I saw many things that were extremely upsetting a few years ago, but barely much of anything even noteworthy lately.

Now this FAST thing anyhow, sounds insane. I will assume it just doesn't work and isn't going to be a Problem. But really, you would want to be able to stop it or put better bounds on it.

But from what I can tell, you can only sue to stop something after it has already harmed you, not just because it could cause future harm. You have to show damages to even be heard. So, how can you show damages until after it's already built and deployed?
It's the way the patent system works. You file obscene numbers of unenforcable patents for the sake of mutually-assured destruction should a patent war come up.

Most patents have massive amounts of prior art, are obvious, or otherwise unenforcable. But if you threaten a patent lawsuit against me, either:

1. You can put me out of business

2. I have my own warchest of 1000 patents. I find 30 your're breaking. They're all bunk, but it gives enough uncertainty that I might be able to put you out of business that you don't sue.

Employees at companies have to go along with it to keep their jobs. I have a big problem with vilifying and blaming them the way this article does. Not everyone has to share your sense of ethics to be a good person.

Big companies are only slightly more to blame -- they have to do it to survive. In addition, I'd still rather see these patents with HP than with a little company in East Texas.

The problem is the patent system itself. We need reform it. The way it is set up, frivolous patents like these are (1) necessary and (2) draining the lifeblood of America.

The problem also comes in around enforcement. HP is unlikely to sue a free software project. I honestly believe that they intend to treat the patents as mostly defensive. But HP isn't doing so hot on R&D, and the odds of the patents going to a complete patent troll in the next 20 years are maybe 10%. There are dozens of companies like HP.
Also, I need to learn start learning Mandarin, like today. The opportunities missed in the tech industry by not knowing it are going to be huge in the coming years.

I talked to some Angel investor recently and he said that the language itself doesn't really matter for doing business in China – or at least, it is somewhere at the bottom of the priority list.

If you want to do business in China, it is much more important to have the right connections. Without locals, you cannot do anything. Better yet, have locals with connections to the government. Otherwise, China is simply not a viable option.
>>Simple, regular syntax. When I found myself desiring to add the name of the enclosing function to the start of every log string, an Emacs regexp find-replace was sufficient, whereas more complex languages would require use of a parser to achieve this.

It would be really wonderful to have a series of tutorials on this subject. It might be a good reason for me to learn to use Emacs, anyway ..
Ability to install alternative operating system (such as Linux) extends life expectancy of hardware. That is important for ecology, lower carbon emissions...

I can easily imagine EU to pass new law, which would require "signed bootloader bypass" switch on all newly sold laptops and workstation. Great way to milk Intel, MS, Apple and other manufactures for couple of billions euro.
GopherConIndia 2015 Videos
You can't. Freezing a hash does not make it immutable. Try it.

It requires a good knowledge and dedication to consistently return a new object (not mutate state). Further, chaining is problematic for tracing errors because so much happens on a single line. Ruby has many subtle features that can bite you in the ass.

Don't get me wrong, I LOVE RUBY, I would love these paradigms to be better suited (rbx/jruby come close). I just find if I embrace mutability, state, and OO principles in Ruby I am rewarded in quality by having other smart people who are more easily able to critique my code and better it.

The abstraction I (completely willing to admit being wrong/stupid) don't believe is worth it. I think less effort and more reward can be had using the right tool for that job. I, for what it is worth, came to my conclusion through the pain of trying.
Oh, this is very cool. I wonder how many CAT (Computer-Aided Translation) tools out there (many of which are notoriously slow) could be significantly sped up using this approach.

I'd bet most of them, although they're almost all closed-source so we will likely never know.