skysight-inc/HackerNews huggingface dataset:
It's far from impossible. I would even say it's extremely trivial to add a C++ style delete keyword but then you'd lose memory safety because of the potential use after free bugs and it wouldn't even increase performance because the problem with garbage collectors is the stop the world pause, lack of off heap allocations for very large data and the needed value types to fully take advantage of that feature.

If you want manual memory allocation then you should instead look at sun.misc.Unsafe.

http://www.docjar.com/html/api/sun/misc/Unsafe.java.html

public native long allocateMemory(long bytes);

public native void freeMemory(long address);

Of course you still have to calculate the field offsets and all that stuff manually because it's not a part of the java language but you only asked about the JVM.
Shameless software plug
> Predictable runtime behavior (zero cost abstractions and no garbage collector).

I see a lot of people considering Rust/Go because they are looking for something much more modern than C++ and at the same time not running on JVM due to the above
You and me both. I could have written that. Kind of did my own:

What the academic publishing industry calls "theft" the world calls "research": Why Sci-Hub is so popular

https://www.reddit.com/r/dredmorbius/comments/4p2rwk/what_th...
Setting up a Bing Ads campaign for mobile app marketing
To go further on this though, wildcards usually only allow one "level" of wildcarding. so if you had a wildcard cert for *.internal.domain.com no one could use it to impersonate www.domain.com (which is good, you should consider a cert that every developer has on their machine not trustworthy)
It's a great post.

https://plus.google.com/+johncbaez999/posts/Wto5MmfCP9o
Yes and no - if I add it to my dns system, then my computer should use that as a basis. That is the entire point of DNS.

The problem here is that Chrome works around that system, which causes pains for others.
...with our petrodollars
Are you implying that this ^ 40-year old piece of code is somehow suitable for modern use?

A "pointer-per-block" alone will cost you 8 bytes of overhead on 64-bit machines. Both this and the 'while' loop in 'alloc' can be optimized away with rudimentary slab allocation. There's no threading support, etc.
So what if I want to test a website under development from my phone? .test is more correct.
Secret State a Journey into the Heart of North Korea
Roger Waters
With the X they had the opportunity to make the phone the same thickness as the camera and fill the gap with extra battery - just to see if folk would prefer the flat back and extra battery life over the sticking out camera. Sadly they missed the opportunity.
Show HN: 5 line gems – submit yours in any language
I like. Inventing (invention of) words, phrases is one of my favorite things. https://en.wikipedia.org/wiki/Sniglet
It's the Xiaomi Mi 12.5". It's a great subnotebook, Arch working flawlessly since all parts are from Intel but sometimes I need a bigger screen thinking that 14" of a Thinkpad X1 might be the sweet spot.
Probably artificial/decorative... hence being randomly stuck on a balcony
Codd's 12 rules
Yeah, this was in the context of anime.

I'm very ignorant of Japanese or Korean dramas/live-action programs.
In a way yes, it's trying to avoid the initial redirect. But not in order to save you from the potential latency of the initial redirect:

> These sites do not depend on the issuing of the HSTS response header to enforce the policy, instead the browser is aleady aware that the host requires the use of SSL/TLS before any connection or communication even takes place. This removes the opportunity an attacker has to intercept and tamper with redirects that take place over HTTP.

Read this: https://scotthelme.co.uk/hsts-preloading/

> Also, wouldn't bundling (tens of) thousands of domains start to add up, and slow down first page load for regular browser use?

Why would it? Checking in a data structure if the domain the user requested should be loaded over HTTPS can be done in a perfectly efficient way. A hash table would give you O(1) lookup times on average and there's other things you can use to mitigate the worst case lookup of O(n).
Did you not miss the part where I referred to my 'localized' version of Firefox or Chrome (i.e. US English)? For example: https://www.mozilla.org/en-US/firefox/organizations/all/

Again, I cannot read Mandarin or Turkish, and likely never ever will. It seems to me that it'd be much more likely that a site, even if run by Chinese or Turks, caters to American customers, should invest in a certificate trusted by a US CA, and similarly for every market they expect to do business in.

And likewise, I don't know why localized versions of browsers for the Chinese market would include trusted certs from Turkey or Brazil.

Seems like its a lot easier to force multinational companies, who already are going to have to invest in huge amounts of research and technology to deal with foreign taxes, currencies, bank accounts, etc., to add to their burden the responsibility for obtaining certs from their customers' local CAs, instead of having every single CA on Earth be trusted by all releases of browsers.
That doesn't solve the fundamental problem of stop the world pauses. If you had 10 threads sharing the same gc heap that allocate as much garbage as they want and 1 thread that has it's own heap that doesn't allocate anything only the 10 threads would be stopped by the garbage collector and you would have reached your goal.

If those 11 threads would share the same heap and 1 thread still doesn't use the gc because it's using manual memory management then you'd still suffer from stop the world pauses.

What you want is isolated heaps like erlang does, not manual memory management. I'm still wondering why we have no other programming languages with multiple heaps. You could probably achieve something similar with D and use of memory mapped files to efficiently share memory without copying bewteen processes. Alternatively you could call into C to spawn OS threads that don't suffer from stop the world pauses. But those two options are a hack. You're not supposed to use D like that.

I chose D as an example because it's a programming language with both a garbage collector and manual memory management that still suffers from stop the world pauses.
Isn't that what almost every game does during loading screens?
What Kay, to this day, did not get, unlike Jobs, is the power of networking, both physical and human. What made the iPhone greater than the Dynabook ever would have been is the App Store,

Interesting phrasing, considering that the iPhone did not come with the App Store. In fact, Apple's was the third software distribution platform to be released for iOS, after Installer.app and Cydia.

Meanwhile, Alan Kay was working in Croquet[1] - a project that allows the creation of multi-user collaborative software with live-editing and automatic distribution and replication - since at least 2001.

[1] https://en.wikipedia.org/wiki/Croquet_Project
haha, nice trick. So the certs for *.mydomain.com will keep working, yes?
CRISP-DM – Step-by-step data mining guide [pdf]
Streisand Effect helps Sci-Hub to acquire almost all scholarly literature
This sounds like a really useful thing to do. How do you set something like this up in a dev environment?
Russian YouTube Serves Putin II
That doesn't really have anything to do with GP, right?

I feel like this is a maybe-true comment on the link in general, but not the post you're replying to: entitlement/general nastiness towards open source maintainers is very common, as is the misconception about their degrees of commitment to their projects. That's true whether or not a project switches to a paid model, and whether or not maintainers post what you refer to as "lectures".
See the other comments here. It's overly simplistic, so not particularly efficient.
What do you mean by "data-driven"? What algorithm are you using to produce the palettes?
This thread is history book material, once again. Coming generations will roll on the floor laughing that we actually used pictures of dead people for money.
"Leaked"
Given the way that they seem to crash in sync, it would appear that they offer very little in the way of diversification.
> An optimization that most memory allocators use...

Got any evidence to support this claim? I call b/s, especially on the "most" part.

Balanced trees introduce an extra per-node overhead, they tend to thrash the cache and are generally inferior to a simple array of double-linked lists indexed by the block size range.

* An AVL tree doesn't have the per-node overhead, but it is very cache-unfriendly.
Show HN: (isnuts) Write python tests as comments
blogger.com (blogspot.com) is (or at least used to be) pretty horrible in the UX department for end users. (It was slow, it used too much AJAX, it was too easy to accidentally navigate to a different post.)
Finding UX in the Trash
What Your Identity Sells for on the Dark Web
I remember reading a while back that Steve Jobs hated the button on the iphone. The button was added as a compromise.

It may be, that this is the real vision of Steve Jobs. But that being said, I doubt if Steve Jobs will fully like the iphone X as I am reminded of the iPhone5 ad about size being a "dazzling display of common sense"(https://youtu.be/O99m7lebirE). So iphone X's design is just lacking in common sense?

FYI: I personally have a 5S, Nexus 7 2012 & laptop. I feel a mobile bigger than SE is impractical and its better to get a Samsung Note.
Dear Alan: Your views & ideas expressed in this interview are spot-on. Gives us food for thought for the next 50 years. Thank you!
I can understand your preference for the X201 (r/thinkpad is full of folks like you and my first Thinkpad was a X20 or so) but the screen resolution would kill me. It's 2017 and text, bash, vim or I mean just anything on a 120dpi or less screen is just a terrible idea.
Just hook an old Quantum Fireball or something similar up to the power, they spin up with no controller connected.
Of course it makes no sense - from a consumer perspective.
They charge for anything they can get away with. Remember when they charged for SMS? SMS cost carriers nothing.
https://www.wired.com/2008/12/text-messages-c/
It's rather ridiculous to call people who use sci-hub pirates as the entire purpose of sci-hub is to make paper that should be publicly available for free exactly that. How hypocritical that many studies are funded by tax-payers, yet people need to pay arbitrary fees to access these papers. If anything sci-hub might lead to enhanced quality of papers, unlike the misguided conclusions of the author of this paper.
This is incredible, thanks for sharing this!
You can do mostly lockless. The fast path is what matters the most, the difficult part is not wasting too much memory for the sake of not hitting the slow path.
Alas, for JS function.caller on a getter isn't standard but will work everywhere and should do it.
>But the original argument is the reverse of that: they weren't arguing that local computing power was unnecessary..

It was literally the justification given for killing projects to develop home computers.
While not a bank account, let's not be smug about our country: http://m.telegraaf.nl/binnenland/article/24095858/man-in-pro... . (For the non Dutch speakers, Amsterdam guy had several houses rented in his name, some of which were used for mj plantations, and various other expenses incurred in gis name).

Identity theft is not just because of ssn or other unique semi secret numbers. It's part of it, yes, but the root cause is a combination of culture and lack of inventive (ie, identity theft is just not a big enough problem for actors to care).
DNS was always a system for fetching information from SRI's NIC official master database. It was never supposed to be itself a source of truth for everything related to a domain.
So... the men who couldn't vote weren't oppressed?

Or... women are oppressed today because your great-grandmother didn't have the right to vote?

Color me unconvinced. If the best argument you have is to go back 100 years, it shows that you know that women aren't oppressed by men today.

See, I've looked into this. Pretty much every talking point (i.e. slogan repeated ad nauseaum) is either half of the truth, or an outright lie.

And there are massive parallels between certain ideologies. The idea that people are "oppressed" as a class is originally Marxist, and has been co-opted by other ideologies. Who (wink wink) aren't Marxist. Despite sharing ideologies, coordinating protests together, etc.

I don't follow your ideology for the same reason I'm not a Marxist. Both are lies.
I switched to Thinkpad/Arch this year and so far it's been great. Neatest laptop design I've had, paired with a great setup for development.

Best of all, they're not too pricey for the specs.
Oh now I see how I've misread that, sorry!
The application acknowledges that a general purpose allocator can't be tuned to it's specific needs and therefore implements it's own very restrictive, specialised, simple and fast allocators.

The most simple and therefore fastest possible memory allocator usually is just a continguous byte array and an offset. On allocation you check if there is enough memory left and if not you request another very large block of memory from the general purpose allocator. Otherwise you merely return the current offset and increment the offset by the size of the allocation. Of course the restriction here is that you can only delete all allocations at once or none at all.

Generational garbage collectors go one step further. They are capable of detecting whether the object is alive or dead and thus make it possible to keep them and move them into an different memory area. Unfortunately the garbage collector has to stop all mutator threads otherwise the mark and sweep phase, copying phase and compation phase would not work. There do exist some concurrent garbage collectors but they are not widely used.
Bodega apologizes for offending everyone
All Dogecoins in circulation are not worth $91m. For that to be the case, there’d have to be people willing to buy all 111 million Dogecoins for $0.000796 each, which is not the case at all. People are only willing to pay this price for a tiny fraction of all Dogecoins in existence; as we go beyond that, the bid price starts approaching zero.
At a normal viewing distance I cannot see individual pixels, its only a 12" panel and at 1280x800 is quite serviceable (I wouldn't mind a 1440x900 panel though)

It might just be my poor eyesight, but the resolution has never bothered me.
In practice we're talking about large, wealthy multinational corporations. I'm not convinced a moral argument is appropriate when one side of the transaction has no morals, in the traditional sense.
AMD Ryzen Mobile APU Benchmarks Leaked, Up to 90% Faster Than Bristol Ridge
We can imagine but it does not exist. These large companies still have the time and opportunity to provide a better product. If these corporations have so tilted the playing field that supporting organizations that pirate is the only way to encourage them to change, so be it.
Retro Arcade Racing Game – Programming from Scratch (Quick and Simple C++)
I don't know of the formal way of solving such problems, but I have worked with them in the past.

Since the numbers are not large, I would suggest just brute force every possible combination and give each one a score based on your needs. You can then just select the higher ranked ones.

An example of assigning scores for this problem could be:
Select any 16 talks and assign them randomly to the 4x4 time slots, and assign the 60 viewers to these as well. Now calculate the score as:
+1 per vote these talks received per viewer that gets to attend them
-10 for every overlapping vote
-20 for a presenter not being able to attend a talk they are interested in

Sum up these numbers to get a score for this combination.

The actual numbers would depend on how important each criteria is to you. Calculate the scores for all combinations and pick the highest ranked ones. You can then be certain that the solutions you pick are mathematically the best ones. Implementing ranked preferences is also very easy this way.

If the numbers could get large and performance is an issue, then a genetic algorithm would be a good bet. It's like a better/more optimised way of moving through the solution space than plain brute forcing. You essentially select 50 good combinations, calculate scores for each and then eliminate the weakest ones while keeping the best ones and merge their good parts to create a new generation of solutions. And you do this till the solution converges. There are libraries in most programming languages that do much of this work for you.

Unless I am completely misunderstanding the problem statement, this is not a big project - the algorithm itself could be done in less than a weekend - maybe a few hours even. But yes, brute forcing or using genetic algorithms may not be the best way of solving this problem because of performance concerns.
You talking about Facebook?
As does the popular Laravel Valet (https://laravel.com/docs/5.5/valet) service in the PHP world.
And then there's "Somewhere" in NY:

http://www.nytimes.com/2009/02/21/nyregion/21about.html
https://www.youtube.com/watch?v=WL436Qddigw
Can you clarify? There are sites with print-your-own support and produce good binding on quality paper at good prices. Why cannot commercial publishers do this?
Or so the readers claim. What lessons, specifically, can we derive from the Book of Five Rings that apply to modern business?

If you or anyone else can elaborate on that in the context of The Book of Five Rings specifically, I would be fascinated to hear about it.
> " 'pizza' with copious amounts of sugary ketchup (don't ask)."

Only in Rio.
> Publishers add value in their role as gatekeepers and filters. They provide an objective, systematic evaluation of research that others can rely on. That evaluation is expensive.

Except it needn't be. Reddit-like voting and commenting site for scientists would work just as well to vet papers and provide valuable feedback to authors with nearly zero overhead.
Anxiety coping mechanisms
Thanks. We will fix it. Thanks for the feedback. Let us know if you want a free account for your startup.
for a basic C/C++ programmer , how difficult would it be learn GPU programming to port my pthread / OPENMP code to a GPU for performance gain?
> Sure, if you spent a million dollars buying CPUs and destroying them, that would create value.

Can you read what you've just written and see how mad it's become?

The converse of what you've said is that making CPUs destroys value, and by implication Moore's law and the whole process of technological improvement is destroying value.

This is even worse than the Bastiat "broken window fallacy": http://bastiat.org/en/twisatwins.html
HTTP can work if your "local" means strictly "on localhost domain". These days local can also mean that you are running a VM and accessing something that's running there (docker-machine for example). In that case you wouldn't be able to use localhost very trivially (you can do port forwarding, but that's pretty annoying). So you then need to access non-localhost domain for local stuff and browsers don't like this.

https://sites.google.com/a/chromium.org/dev/Home/chromium-se...
And why are flies found in the country significantly harder to swat than those you find in the city?
How about a laptop with 9:16 instead!

I lusted over A4 displays in the 90s
> In order to initialize this heap, a section of memory must be provided. In this repository, that memory is supplied by malloc (yes, allocating a heap via heap). In an OS setting some pages would need to be mapped and supplied to the heap (one scenario).

brk/sbrk is a bit of a pain but would it really be more complicated to use mmap?
I'm sorry, but no amount of "ultimate efficient exercise" rhetoric makes running by itself a sufficient workout regime.

You also need to do some kind of strength training. A push, a pull, a spinal compression and a spinal tension. Eg pushups, rows, squats, pullups.

Otherwise your core will be weak and you will be missing key stabilizing muscles that prevent injury when you are in an unusual position, like picking up a suitcase or changing a tire. Which is exactly what causes back pain.
Noooooo, I like Tcl.
Nobody has to take a number for a queue to form. Imagine people camping in front of apple stores for the new iPhone. Nobody is taking numbers yet the first to arrive also is the first customer that gets an iPhone.

I don't know why I picked such a complicated example.

Did you ever go to the grocery store and had to wait for the people in front of you? That's also queue and yet nobody is taking numbers.
Symmetry and clean lines are nice but they aren't the only thing. It's never bad to let an object be what it is.

I don't mind that phone's notch because it just shows what it is. If the phone is a screen you just look at, then a clean, unbroken rectangle makes sense.

But the phone X is also an object that looks back at you. And listens to you and talks with you. The sensor array acknowledges that in a visceral, plain way.

In fact, hiding it would be a little weird... like the one-way mirror of an interrogation room. You know they're watching you but you don't know exactly who, how, and when. It a little off-putting to hide it and conversely, a little reassuring to make it obvious. And it's just nice and natural to have something to look at or talk to when you want the phone to see you or hear you.
In my experience flies have much harder time avoiding a finger flick.
More importantly, it's implemented in terms of malloc in the first place:

> In this repository, that memory is supplied by malloc
What you need is schedule optimization tool - https://developers.google.com/optimization/
I didn't say that generally. My main point was clearly that I don't want to live in a shared space. I'm otherwise happy to place nice with others! (There is plenty of evidence online that I do, in fact, play nicely with others.) Anyway, it's pretty clear to me that you're going to misinterpret anything I say in the worst possible light, so I think we should stop this thread.
Why would you trust a novel currency over the collective interests that stand behind the USD or Euro? Currencies backed by powerful democratic governments, huge corporations, advanced military industrial complex, research, educational, and financial institutions, and basically all the people that live in those countries aside from a miniscule fraction that prefer cryptocurrency, a currency that must be converted into USD/Euro if you want to do things like buy milk or put gas in your car.

Do you reasonably think that if those currencies collapse, you will be just fine with a stockpile of bitcoin? If bitcoin collapses though, the USD will not even notice a ripple.

I'm not saying that bitcoin or other cryptocurrencies are not currently a lucrative investment, but I am far from convinced that crypto offers more stability and is a safer bet that dollars or euros
Aside from not being a good allocator, it's implemented on top of an existing malloc so it doesn't actually work.
Conway Is Killing You and Little Is Helping
> A government can basically make anything it wants illegal, and once cryptocurrencies become large enough, there will be tons of additional regulations and control.

Only totalitarian states have this power in practice. In a democracy, where e.g. 75% of people use Bitcoin, the government can’t criminalize it — if it were able to, that government wouldn’t be democratically elected. A democratic government does not have an opinion separate from the people; indeed that’s the whole idea of democracy.

If only a small fraction of people are using Bitcoin, it will not pose a threat to government, and it will have no incentive to criminalize its use. Only when a large part of people are using Bitcoin can it pose a problem to government, and once we reach that point the opposition to make it illegal will be too great.
It's funny what becomes refreshing after so many fly-by-night résumé repos.