skysight-inc/HackerNews huggingface dataset:
Thanks for your reply. My passion is actually coding. Although I'm still a noob, I find it very interesting and I really want to be a good programmer.

However, I'm pretty slow at translating my thoughts to code. Not only because I have much to learn, but also because I don't master the tools that we programmers use to write our thoughts. I mean, sometimes I have the code on my mind, or I know what should I (for example, debugging a particular function), but I'm so slow at doing it.

A friend of mine has used Intellij IDEA since he was a teen and he can do incredible things. He can refactor a class in seconds. He can find extremely fast a particular bug by debugging step by step. I also know people (older than me, by the way) that master vim, and they say that thanks to it they have experimented a huge productivity boost.

I'm afraid that if I invest time on understanding Vim, I will be investing to much time on the tool itself (which is not the end, but the mean), instead of focusing on learning algorithms and programming skills. But I really don't know.

Also, this could also influence my decision on which computer should I buy. With Vim/Emacs it's ok to have a light notebook (portable, with great battery, but no powerful), while if I choose the Jetbrains way, I should definitely buy a powerful computer.

(by the way, sorry for my English, I'm not good at languages)
It would weight like a similarly-sized coffee-table book, you'd need a cart to drag it around.

But yeah, overall Apple should give us more options. It was fine before with dedicated lineups - Air for battery-life and portability, Pro for ultimate power. The current lineup makes both segments pay more while giving them stuff they don't need.
P(A|B) = P(B|A) * P(A) / P(B)
The drain pipe is as close to the center as possible. When you tilt a cylinder half full of water, the point at the center remains at the same height. Considering the cups are slightly wider at the top than the bottom, it can hold more liquid when tilted, so the height at the center would be a bit lower.
Me too. Just noticed it!
You can smoke things other than pot...
> With the increasing popularity of Electron based apps, average power consumption is probably even increasing.

I can only hope OS vendors (both mobile and desktop) will one day be driven to actually incentivise frugal use of resources. We are currently suffering a massive tragedy of the commons for RAM, cpu and even disk I/O (see Spotify, recently).

I would be absolutely thrilled if, just for example, App Store margins were calculated based on median resource usage. Or if apps got a clear UI annotation indicating resource use. Or something... anything. Like a carbon tax, but for software :)

Currently it's the Wild West out there, the cpu tuna is being massively overfished and we don't put the blame with the right parties so why would anyone stop. We the consumers end up paying for all this.

Edit: and if google could do the same with search ranking I would convert to any religion you asked me to.
Ask HN: What web framework do you use? Why did you choose it?
Merry Christmas!
> "You pop it into a headset which has eye sensors on it, which enables the next iPhone to have a higher apparent frame rate and polygon count than a PC with a Nvidia 1080 card in it."

Interesting. Ive said that the touch bar was the first step in a new paradigm. Maybe the next step is connect your iPhone as the display. That would explain why Apple stopped investing in displays.
The slide deck is slightly less confusing.

https://marketplace.codevalley.com/use-it/
I live in Mississauga and commute every day to downtown Toronto and I am always on LTE. Which carrier are you using? Wind?
> There's no solid IDE with Golang

Hmmm, I'm using it with WebStorm and the Golang support is pretty decent. Autocompletion, automatic help/function lookup, debugging, etc.

What are you looking for that's missing in a Golang IDE?
Raw text editor (with syntax highlighting) is definitely not the thing of the
past. For me, it's my main operation mode, even though I write code for living
for a few years already.

For you at this point, sticking to text editor and command line tools may be
the better option. You are exposed to how compilers are called and how things
are being built, so you know it's nothing magic. I've seen people who started
with IDEs for Java and never learned that there are operations beside F5 [run]
and F9 [compile], e.g. that Java program can be packed up to a JAR and run
from there, or that some source files can be generated before compilation.
We should be able to crack a smile in response to light-hearted comments like that at Christmas :)
This reminds me of when Sarkozy (ostensibly after some post-dinner drinks) offered Merkel access to French nuclear weapons. The offer was politely declined. http://www.spiegel.de/international/europe/a-506124.html

The US has nukes stationed in Germany too and some are even meant to be hooked up to German Tornados, should they ever be used in anger.

However, that hardly qualifies as them being controlled by Germany. And therefore they, aswell, don't get a place on that list.
Weekly digest 16 – x64dbg
Merry Christmas everyone!
All these years I've wanted a lightweight 15" (or 17") MacBook/Air but Apple insists on segmenting the larger laptops at more expensive prices. Apple won't even offer a 15" MBP without the dGPUs now.

Apple should simply offer two lines of laptop:

11"/13"/15" MacBooks optimized for thinness

13"/15"/17" MacBook Pros optimized for power
exactly what I thought, this is a new gen expert system
How, then, is randomness handled?
> Loosely speaking it's like how the math that physics uses doesn't have mutable variables

I'm curious, can you elaborate on this? If you view time as discrete dimension, mutable state is clearly not necessary. But since we cannot travel through time (yet), nature seems quite mutable in practice. For example, when microwaving food, it is extremely hard to put it back to the same temperature gradients.

Similarly with functional programming: if you adhere to it purely, provenance of every state can be traced back. If not, state changes are non-trivial to reverse.
So it seems like modelling physical phenomena with immutable states is a choice of perspective rather than a law of physics that can be empirically tested.
The vast majority of admins don't even know that they're admins. They bought or received a cheap Netgear router, plugged it in, and never touched it again, except to maybe turn it off and on again when the internet was slow/down.

If you're an admin who cares about their infrastructure, you're not using a bargain-basement Netgear router, and if you are, you'll have gone through every single menu and seen the auto-update option.
In American Towns, Private Profits from Public Works
Given the speed with which one can whip heavy cream, I have a hard time seeing the use of canned stuff. Whipping your own gives you a container and a couple of blender paddles to clean, and that apart takes maybe a minute more. I have to think that it tastes a lot better, too.

(I should add that before I met my wife, it would never have occurred to me to do this. On the other hand, I'm not sure I ever bought the canned stuff, either.)
I think you have a point here - all too often there is a creeping escalation of the use of such powers.
> A friend of mine has used Intellij IDEA since he was a teen and he can do incredible things. He can refactor a class in seconds.

Not really. He can only extract some variables from a class, move methods
around, and rename things. That's all. That's still just text editing.

> He can find extremely fast a particular bug by debugging step by step.

He'll probably be hopelessly lost when he starts writing anything
network-related, when stepping through code is not an option due to timeouts.

> I'm afraid that if I invest time on understanding Vim, I will be investing
to much time on the tool itself (which is not the end, but the mean),
instead of focusing on learning algorithms and programming skills.

Then don't. Stay with your Sublime. Don't masturbate over tools, since they
cannot make your code better by an order of magnitude. When you're comfortable
with the programming language of your choice, you'll know that you're ready to
learn tooling.
What if the MOON gets BIGGER?
I am 100% sure this article is wrong. There's too much stuff that would need to be shrunk into the bezel for this to be possible. Apple has a hard enough time fitting a decent battery in as it is, and already killed the headphone jack for more space. Making a competitive phone after losing the majority of usable internal space while adding new sensors would be impossible.
I'm not sure there's an objective truth in programming language comparison. There's just the right tool for the right job. I love ruby because it's a joy to write, that doesn't mean you can or should use it for everything.
Merry Christmas to all!

http://bit.ly/2hebBbl
I have an iPhone. Can someone explain to me why you would want "nightly builds" of your phone operating system (or any other software) if you are not a developer? I guess I don't understand why Cyanogen tried to turn into a company.

I'm scared of updating my phone because I'm afraid of what will break next. As an example: for a long while using find in PDFs was broken in Safari.
And it's law...

I submitted the Wikipedia article about it today, and it got 3 points.

Instead of discussing this, there's a lively discussion on the front page about the US retaliating militarily against Russia for supposed election hacking and plenty of "hackers" engaging in cold war style saber-rattling.
I don't think you understand the term "popular vote". In a popular vote system, every vote is of equal worth, no matter where you live.
> The practical implications may be modest for now, though. Security specialist Bruce Schneier, for one, does not see any urgent need for better random numbers. Schneier helped create the widely used Fortuna pseudorandom-number generator, and says there are already many adequate sources. "In my world no one's worried about this," he said. "These systems already work" to provide secure communications when attention is paid to all of the other implementation details. "We have lots of problems; this isn't one of them."

Is this true? It seems to me that /dev/random could use some serious speedup.
If a language will have N number of features I'd rather have some behind pragmas than not. Let's say by some measure GHC Haskell and C++ have the same number of features. C++ will always be N factorial, unless I read the entire source code to see that certain features are not being used. In Haskell I can look at the top line and easily see that many features are not being used.

An interesting alternative (one which a C++ compoler could employ) is to allow pragmatic that disable features. E.g. I could quickly see that a C++ file is not using macros. This is the wrong default though. Features should be opt-in rather than opt-out to encourage a minimal use of features.
Except it is not cleaner. It is just more familiar to you because most languages in use in the past 40 years have been influenced by Algol family of languages for their syntax.

Now the author is being modest here:

First, `for` is defined out of simpler function `while`. You can do the same for the for loop in C of course, but only as a function call and to pass arbitrary body you would need to use a function pointer, which I argue is overwhelmingly more confusing. You may have different opinions merits of of baking non-orthagonal features into the compiler, but surely you'll appreciate the clarity here.

Second, `do` notation is not used which would make it look more like Algol family of languages with semicolons to delimit (if "statements" (really, monadic expressions) are on the same line otherwise line feed is enough.) and less `>>=` would appear.

Third, giving type annotations which can always be inferred unless you are using advanced extensions such as Generalised Algebraic Data Types (GADTs), which are not used here. Also less characters do not mean cleaner. For example the `loop`'s type annotation produces a `State` monad with `Int` as the state. This means that `loop` will not be connecting the Internet, it will not be throwing an exception [0], etc. Even in the narrow effect of manipulating state it guarantees it will only simulate mutation of a single variable of type `Int`. All of that guaranteed from a single line is a remarkable manifestation of clarity.

[0] I don't account for undefined and the problem of strictness, that's a discussion for another day.
There is something important to be said about the effect of having a really clear sense of purpose. I think this is seriously underrated.

But I think it's also the case that part of how we discover purposes to orient towards is thinking about areas of our lives and envisioning how they could be different.

(Also I'm not sure why you're comparing the Big Five list with these lists)
Don't know how much you know about Consumer Reports, but I don't think they can't be pressured.
MANIFESTO 15 Our comment on the current state of web business
I wonder if the mind can be distinguished philosophically from identity. It's an important concept in many spiritual practices, to understand and realize that the mind is not the self.
If you don't know what I was referring to, then why where you so sure that "it doesn't violate relativity" then?

The statement was made about the infinite size of the Universe and the OP (along the way) was talking about the observable Universe. He is mixing the extent of the Universe with the spatial dimensions of the Universe (so, the better word here is actually space). It is still an open debate if the dimensions of the Universe (space) are infinite (although what we knows seems to point that way), but the extent of the Universe is not infinite, if it was, that would violate relativity (or the standard model as I explained along the thread).
HTML 2 Text
I meant: "to refuse to serve"
Is this site for real? Nothing but clickbait titles.
> Or Photoshop

Consistent 20-30% processor usage no matter what the processor when not in focus and no files open.
Came for the tech news, stayed for the feels.

Merry Christmas!
On macOS, you can hold the command key and drag the clock off the menu bar.
Getting tired of people pointing out that "it was never accurate, it doesn't know if you're going to open a game in 20 minutes" as if it's some sort of massive revelation and justifies this move just to make up for their design problems with their latest laptop because the shaped battery didn't work out in time to ship.
Hadn't heard of Gogland, thanks it sounds interesting.
For BBW Admirers How to Invite a Curvy Single Woman Out
Share the Air
> if it runs on the GPU

It will struggle to function at all seen as no Apple machine ships with a decent CUDA card.
For some reason Americans have bought into the idea that government is always inefficient, taxes are bad, and private industry is better. One way or the other the water isn't free and it has to be paid for. This comes in the form of taxes or higher bills. You can pay local government or a corporation. It seems obvious to me that locally controlled waterworks without a profit incentive is the way to go but my countrymen don't seem to agree.
I use pseudonyms, but it's mostly to keep accounts separate for logistical reasons. My accounts associated with gaming and hobbies have different names than my accounts where I talk about politics and news, and so on. I don't really want to mix those spheres of my life. Of course someone could connect the dots, and I avoid anything that could be truly troublesome. But this provides a useful 'soft' barrier.
Yeah, I am put off by his zen shtick too.It bothered me a little since so many people I respect swear by the altar of Tim Ferris™ and I decided to listen to some of his stuff but I couldn't shake off the snake-oil salesman vibe.He just comes off as a relentless self-promoting machine whose main 'product' is himself and his public image.I assume it's a taste thing and his stuff might be useful for other people.
My Imperfect World
How fast do you need to read from /dev/urandom, and what throughput are you limited at now?

Replace 'you' with the collective 'our applications' if you wish..
Most people don't want to update nightly. What they want is to use the first build that fixes the bug that they particularly hate, or includes the new feature that they particularly want.

Otherwise, they wait for Milestone releases.
That reminds me of Unix FDs and the distinction between whether your user has permission to write a file, and whether an open file is actually open-for-writing. I was thankful to find out about fcntl(2) + F_GETFL, and get out of a 'dummy write' train of thought.
> PC competitors never ever hit the target

Start looking at proper business models maybe.
How I’d Fix the Internet
Why not? If programming were poorly paid scut work, that would be true. But since it's a very highly compensated ticket to the middle class---surely many will do it without love.

Look at the games industry: worse pay, worse hours---those people must love their vocation.
This makes sense for iPad or the 12" MacBook but not for MacBook pros. I invest a lot of money in a MacBook Pro for work and it makes sense the apps I'm using needs more RAM, CPU and graphics card usage.

If the thinness of current MacBook pros prevent them on displaying remaining battery time, then making the MacBook pros thinner was not a good decision. You can make the regular MacBooks thinner but not the MacBook pros -- unless Apple finds another battery material that outputs significantly more power per cubic cm
I'm pretty sure that is a mirror

https://www.ruby-lang.org/en/community/ruby-core/ suggests that the main repo is a self-hosted SVN
Why do functional programmers homeschool their kids?
House Report, Evidence Redacted, Ties Snowden to Russian Agencies
I guess neither direction is especially intuitive because structural typing makes the relationship a bit strange. In both cases, it's easy to show a contradiction. `interface{}` can't substitute `int` in `[]int` and `int` can't substitute `interface{}` in `[]interface{}`.
> I don't get what customers gain from .07 nineteenth of an inch less of thickness

It is difficult to make thin, light and functional laptops. This results in fewer doing it, with those that do being able to command a margin for it.

It also amortises your product R&D. Minitiarisation continues, delivering not only more computing power but more in smaller form factors.

By focussing on thin and light, they can keep tweaking with decisions they had to make when putting a computer in a phone and then a watch and will need to face putting it into a contact lens, et cetera.
For example, a random number is passed as a parameter, so that the function can be kept pure.
Thanks for your nice feedback.

3. About "parallel query processing"....

I mean, each thread (index server) is responsible for only one shard/segment/partition. You need a local broker (1 per PC/node) to read client queries and dispatch them to all index server threads.
Each thread processes the query on its own partition and sends back the results to the broker.
The broker collects and merges the results and sends the query answer to the client. The client can be another global broker controlling serveral multicores PCs.
Most of this is implemented in the the TurboPFor inverted index demo.

9. What about "global terms dictionary" ? Or 'global
document-id-->numeric-id' dictionary ?

I think, term dictionaries are not a problem, you can have one lexicon per PC/node (common to all local partitions) accessed from all index server threads.

10. What about gpu/fpga/asic,you know of any paper/way that can be used for a search-engine and provides enough value compared to just adding more cpu/ram ?

For maximum performance, you must have the whole index in the GPU own memory, otherwise the memory transfer will be the bottleneck. All query processing like decoding and intersections must be done on the GPU.
For anyone who thinks the leaks did not contain anything, here are the 50 most damaging Wikileaks:

http://www.mostdamagingwikileaks.com/
Using Many Social Media Sites Tied to Depression
Expose them to what? All the computers I developed on were generally supposed to replicate the hardware on the sub itself. Everything is self-contained on a sub. (maybe they have Ethernet going between computers, and never wifi because that could generate findable "noise" by sensors in ships or other subs, but not to the internet at large) This is by necessity as subs don't get access to the internet when they're underwater for 6-9 months or so, except in VERY limited cases where they can connect to a satellite for a very brief period of time and get something like 1kb of download.
YOLOLOLOLO420'S WONDERFUL SETUP
Existence of God
If it's my call, Rails since 2005 because it was easier than Java and much quicker to deliver. It still is.

If it's customers call, I used Node (as sw architect), Django, Flask, Web2py. All of them are less opinionated than Rails, which IMHO is bad because any project can be different and it costs time to get on board.
How is it remotely related, other than that both scenarios relate to having a partial understanding due to a limited viewpoint?
Please do not plagiarise people's comments.
Yes, this is all well known. It's called "nuclear sharing" and it involves 6 bases at 5 European countries hosting US bombs. Estimated number of weapons by base:

Kleine Brogel (Belgium):	10~20

Büchel (Germany):	>=20

Volkel	(Netherlands): 10~20

Aviano (Italy):	50

Ghedi (Italy):	20~40

Incirlik (Turkey):	50~90

https://en.wikipedia.org/wiki/Nuclear_sharing
It's sad to see such immense effort to "extract" and "preserve" entropy, when anyone interested could have all the quality random numbers they need from simple and well auditable electric circuit. Somehow this is not in anyone's interest, just let's all use PRNG.
The Brain as a Universal Learning Machine
IANAL either, not even an American, but I know there's a very objective process for the US legislative to change the constitution, which is hard by design.

The Gp's criticism is based on the unstated assumption that they'll try to bypass that process.
A Merry Christmas and Happy Hanukkah and general good holidays to everybody.
I find it more interesting that this program has a bug even though there are just two pieces of code, not more than 10 characters apart that modify only one shared mutable integer.
I wish we knew the Hacker News equivalent for the army people of US and Russia who are in charge of the launch codes. I would post this link there.
Amazing. If most of the human race were wiped out by a meteorite then we need more of such engineering minds to get us back to the advanced civilisation we are :)
...but is hidden behind a login.
> Why not?

That's not the question. The question is: why? Why is programming such a special field of endeavor that those who approach it may only virtuously do so by vocation, rather than profession? The only other field I know of where that's true is the priesthood. We are not priests. Nor should we be.
How Ed Schultz Transformed from MSNBC Lefty to the American Face of Moscow Media
For a more practical example, when a Type 2 suffers an industrial accident like a reactor meltdown, it would be indistinguishable from a supernova. If it happens within 1000 light years of us, we'd be just as dead.

We can only take comfort that such an event would wipe out their own civilization, and they have adequate safeties in place as a result.

Oh, and hopefully there isn't a galactic wide cold-war-esque standoff on the possession and use of supernova-creating bombs.
Tobias I think it's extremely cool, nice work.

I am curious, how would the final quality of the result be affected by:

- Changing the shape to say, a square. Or maybe a circle is optimal given a limited number of points.

- Inreasing the number of endpoints. There must be some limit to this. For example, even giving an infinite number of endpoints would not look like a photo, but how much better could it look?