Better HN
topnewbestaskshowjobs
Log inSign up

shellac

902 karma · joined Sep 26, 2012 (14y ago) · 254 submissions

Submissions

comment 6y ago · link · parent

Those are structs, though. This work is about providing similar performance advantages for objects (in certain conditions).

comment 6y ago · link · parent

> What this does on top of that is then to cover the corner case where an object would be safe for SRA, except something requires the object to have the same layout as on the heap.

I'm a little surprised that see such noticeable performance improvements. Obviously benchmarks etc etc, but I didn't expect these cases to be quite so common.

comment 6y ago · link · parent

You'll find the detail in https://github.com/microsoft/openjdk-proposals/blob/master/s...

This is about stack allocation of objects where safe (i.e. when you can prove they don't escape the local scope) for Hotspot, something that already exists in J9 (IBM's JVM) I think.

There is equivalent work for .net core here: https://github.com/dotnet/runtime/blob/master/docs/design/co...

(So the title is somewhat accurate, but you have to do some digging)

comment 6y ago · link · parent

On G1 you used to be able to use `-XX:+UseStringDeduplication`, which gives you back something like the string sharing used pre-whatever it was (8?).

comment 6y ago · link · parent

Working fine on Safari 13.1 on my mac.

comment 6y ago · link · parent

I think the operative phrase is 'a CDN company'.

URLs are names for things (companies, mailboxes, pictures of cats), but they're also (encoded) directions to get representations of those named things.

CloudFlare is concerned with the mechanics mostly, the latter. Things like Wikidata, knowledge bases, schema.org are interested in the former perspective.

comment 6y ago · link · parent

> In 1992 Tim Berners-Lee created three things, giving birth to what we consider the Internet. The HTTP protocol, HTML, and the URL.

What we call the web, surely? I appreciate we conflate the two, but in this context I think that's what was meant.

And it's really the URL (URI, IRI, URN...) that makes the web. An amazing thing.

comment 6y ago · link · parent

This is very old news now, but still worth repeating.

Use URI

comment 7y ago · link · parent

Does the Netherlands not have the equivalent of https://crimesurvey.co.uk/?

comment 7y ago · link · parent

The article is a curates egg. The d-notice stuff is interesting, although mostly well known I thought (?).

The Assange and anti-semitism parts are evidence light re-heats of Canary-level reports with added "it's the spooks". Like almost all his partners Assange fell out with the Guardian pretty badly. If MI5 operatives were being paid to do this, well I hope they enjoyed the free holiday.

I especially enjoyed the statistic that "0.06% of the Labour membership has been investigated for anti-Semitic comments or posts."

comment 7y ago · link · parent

I think it was aimed at getting him to stop excusing antisemites, which is an embarrassment. It's unclear what you think those links demonstrate, other than many writers thought that too.

"So, @georgegalloway was right" is one of nature's warning signs.

comment 7y ago · link · parent

Yep, those fences are awful. You need to essentially walk through a car park and keep going to find TNMOC.

But it is wonderful. Far better than next door, to be honest.

comment 7y ago · link · parent

OpenJDK BigDecimal::doubleValue() goes via a string in certain situations https://github.com/openjdk/jdk/blob/master/src/java.base/sha...

comment 7y ago · link · parent

The UK used to prescribe heroin for addicts, which I understand inspired the Swiss treatment of addicts. Rolling that back as part of the war on addiction seems to have been counterproductive in terms of overall health.

comment 7y ago · link · parent

He also guided the evolution of java from 1997 until 2006, so from 1.1 to 1.6, a very significant period in java's development.

He's also one of the team behind Dart. Hrm.

comment 7y ago · link · parent

Swift probably inherits that from NeXT/OpenSTEP/Cocoa which was very unusual at the time in its degree of unicode support. For example it used something like unicode equivalence in string comparisons.

(You'd see objective-c benchmarks suffer because of this)

comment 7y ago · link · parent

Obviously its purpose was to support Java, but a number of languages - most prominently Scala, Kotlin, Clojure, Groovy and Ruby - run on the JVM. With perhaps the exception of Kotlin, these are not especially Java-like.

There is an interesting degree of independence. A lot of Java semantics is not baked into the JVM, and in the case of invokedynamic there was for a time a significant JVM feature that java didn't use.

The JVM is a pretty decent target for languages with garbage collection, objects (of some form), and methods / functions. Those facilities are useful for most languages these days, and provide a large degree of interoperability. I don't have to really thing about ruby calling java and back again, no calling conventions or issues with garbage.

It will be interesting to see whether WASM will support those kinds of features.

comment 7y ago · link · parent

In this article ‘graft’ means corruption or similar, rather than ‘hard work’. Slightly confusing.

comment 8y ago · link · parent

I did try that once, and found it quite a challenge. It feels like all the controls go well beyond '11' for the intended (bass line) use.

comment 8y ago · link · parent

Although weirdly preempted by an Indian record 'Ten Ragas To A Disco Beat' in 1982:

https://www.youtube.com/watch?v=sB4RYBpwV0A

This is what "the TB-303 bass synthesizer uses [the artist] to reproduce itself" means - you really couldn't use these tools without producing this music.

comment 8y ago · link · parent

You might be interested in the Fortress language (RIP), whose input allowed, and was canonical rendered using, mathematical notation.

So, for example, xˆy could be written as x superscript y. SUM[i<-1:n, j<-1:p, prime j] a[i] xˆj was more elegant as a big sigma with the ranges at the bottom, etc.

http://www.ccs.neu.edu/home/samth/fortress-spec.pdf

comment 8y ago · link · parent

    Startup Security Utility -> Secure Boot -> No Security
https://support.apple.com/en-us/HT208198

comment 8y ago · link · parent

Suppose you're told that somebody has halved an apple and put the two pieces in separate boxes. You are given a box, and the other is sent to a friend on the other side of the planet, who phones you when it arrives.

You both open the boxes and describe what you see. "Oh my half has the stalk", "oh, mine doesn't". "I see 5 pips", "so do I". There are a bunch correlated (and anti-correlated) observations about the two halves.

Nothing surprising about this.

The quantum equivalent seems to work the same way at first glance. However on closer inspection there are some weird correlations that suggest that:

* The apple wasn't cut in advance, but the two halves were created and put in the box just before they were opened.

* Or maybe the apple was cut in advance, but somehow the person cutting knew what observations I would make ('I have the stalk').

* Or maybe the boxes were never separated but remained paired in 5-d space and only on opening did the apple split.

* Or maybe I messaged the apple-cutter back-in-time to say what I would do.

* Or something else.

My box is so remote from the other relativity (and practicality) surely means I'm causally independent of the other box. And I got to chose my observations freely, nothing influenced me. And yet we know one - or both - of these can't be true.

The mention of free-will in the paper is a bit cheeky, really.

IIRC in the literature 'parameter-independence' and 'outcome-independence'have been to used to name the sort of factors that feel bad to violate (did I have a free choice about what to observe?) verses supposedly more innocuous quantum magic.

comment 8y ago · link · parent

> P2P is banned in the French academic network. I expect the same in neighboring countries

There's no Janet policy (UK academic network) against P2P, although there are institutional policies in place (typically for student residential networks).

To be honest it would be difficult to have a policy that wouldn't impinge on some of the more unusual protocols used in research.

comment 8y ago · link · parent

My understanding is that Graal is doing whole-application compilation, so the dependent jars will be compiled.

Reflection is an issue that they have a work around for. There's a good article illustrating various issues [1] in the case of netty written by one of the graal team. (There you'll see an example of a reflection configuration file)

[1] https://medium.com/graalvm/instant-netty-startup-using-graal...

comment 8y ago · link · parent

On my machine it's an order of magnitude larger than `true`.

    /usr/bin/time -f "\nmaxRSS\t%MkB" true
    
    maxRSS 1276kB
I'm not sure what to make of that.

comment 8y ago · link · parent

This is the answer I wanted :-)

comment 8y ago · link · parent

You mean a python implementation on truffle? Or ruby on something truffle-like on RPython?

comment 8y ago · link · parent

Yes, in the words of the ICO:

> A personal data breach means a breach of security leading to the accidental or unlawful destruction, loss, alteration, unauthorised disclosure of, or access to, personal data. This includes breaches that are the result of both accidental and deliberate causes.

https://ico.org.uk/for-organisations/guide-to-the-general-da...

Most of the breaches I'm familiar with are accidental - people putting their research on thumb drives and losing them, etc etc.

Whether the fox gets into the chicken shed, or you let the chicken out of the safety of the shed, it's a breach of the chicken's security.

comment 8y ago · link · parent

You've got that completely the wrong way around. An erasing compiler has full access to the type (obviously - it's doing the erasing) and so can verify whether you're putting the correct types in or out of a collection.

Where erasure can cause issues is at runtime. For example:

    X isa List<Int>
Even if X is indeed a list of ints that information isn't held at runtime, so the test can't be supported.

Having said that in some respects this is a C# / Java ecumenical matter. Haskell, for example, doesn't bake types into output code so I suppose it erases even more that java, but it supports very rich polymorphic behaviour.

1
56789