Hacker Newsnew | past | comments | ask | show | jobs | submit | joewalker's commentslogin

It's used for things like pop-up menus, (i.e. things that can't be done with HTML) and was recently used in some obscure parts of the UI e.g. certificate viewer (however I'm not even sure that's still XUL any more)

I think it's safer to say: It's almost all HTML these days. XUL is very much deprecated.

As we killed XBL, our XUL components because web components. https://briangrinstead.com/blog/firefox-webcomponents/


When the decision was made to use Mercurial, Git for Windows wasn't a viable option. If you wanted to develop on Windows, the choices were Mercurial or SVN.

Edit: I work for Mozilla, although I didn't in 2006 when I think the decision was made.


Firefox, Chrome and Safari all dropped support for FTP. I suspect the Register is referring to the domain name of the server rather than the protocol:

https://ftp.mozilla.org/pub/firefox/releases/108.0/

Clearly the domain name is there for historical reasons.


I don't know if http://grepcode.com/file/repository.grepcode.com/java/root/j... is representative of all the implementations of bitCount in Java, but it's probably obvious that it's not going to use the popcnt opcode instruction.

I think the point is that Rust makes it much easier to use that opcode instruction. It's possible but hard with GCC using __builtin_popcount(), but, I'd guess totally impossible in Java due to lack of a JVM instruction for the same.


That's just the placeholder implementation that will work on any platform and even with the interpreter.

If you look at the openjdk9 sources you will notice that it is annotated as intrinsic candidate[0]. But earlier versions also have intrinsics for that[1], it's just not annotated as such.

[0] http://hg.openjdk.java.net/jdk9/jdk9/jdk/file/23721aa1d87f/s... [1] https://gist.github.com/apangin/7a9b7062a4bd0cd41fcc#file-ho...


> obvious that it's not going to use the popcnt opcode instruction ... I'd guess totally impossible in Java

I don't understand why you would guess at what Java can do when you can find out for certain?

    public class Test {
      
      private static int bitCount(int a) {
        return Integer.bitCount(a);
      }
      
      public static void main(String[] args) {
        while (true) {
          bitCount(14);
        }
      }
      
    }
Compiles bitCount to

    0x000000011e637980: sub    rsp,0x18
    0x000000011e637987: mov    QWORD PTR [rsp+0x10],rbp  ;*synchronization entry
                                                  ; - Test::bitCount@-1 (line 4)

    0x000000011e63798c: popcnt eax,esi            ;*invokestatic bitCount
                                                  ; - Test::bitCount@1 (line 4)

    0x000000011e637990: add    rsp,0x10
    0x000000011e637994: pop    rbp
    0x000000011e637995: test   DWORD PTR [rip+0xfffffffff10ed665],eax        # 0x000000010f725000
                                                  ;   {poll_return}
    0x000000011e63799b: ret 
There's your popcnt instruction. No need to guess.


There are methods in Java which have special vm implementations to take advantage of instructions like this. They methods have an ordinary Java code version for the interpreter and on jit compilation are replaced with the other version. For a complete list of these types of functions see http://hg.openjdk.java.net/jdk8/jdk8/hotspot/file/87ee5ee275...


JIT-compiler might recognize this call and replace it with popcnt instruction. I'm not sure if it does that, though.


WeakReferences are elsewhere e.g. [1]

My understanding of SoftReferences is that they sound like they're going to be useful in implementing caches, but then cacheing is hard, and generic solutions like a SoftHashMap end up being toys. While they're are probably cases where SoftReferences are useful, they're not common, hence they're not elsewhere.

Phantom references are partly due to problems with the way finalize is implemented in Java, and partly due to difficulties writing low level code in a higher level language, hence they're slightly Java specific anyway.

[1]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...

https://community.oracle.com/blogs/enicholas/2006/05/04/unde...


In Our Time (BBC R4) did a recent episode called "P vs NP" [1] which talked about graph isomorphism, and might serve as an introduction to this.

There's an MP3 download at the link. I don't think it's UK only.

[1]: http://www.bbc.co.uk/programmes/b06mtms8


Copyright law with fonts is strange. 'Looking like' isn't a copyright vilation, but if you take copy a font and tweak it slightly then it probably is.

https://en.wikipedia.org/wiki/Adobe_Systems,_Inc._v._Souther....

https://en.wikipedia.org/wiki/Intellectual_property_protecti...

There's a similar situation with clothing, IIRC, which explains the prevalence of brand logos.

IANAL, obviously.


To be fair on NICE, from the same page:

"NICE currently does not recommend that homeopathy should be used in the treatment of any health condition"

"Some homeopathic remedies may contain substances that are not safe, or that interfere with the action of other medicines"

"there is no evidence that homeopathy is effective as a treatment for any health condition"

"Some people who use homeopathy may see an improvement in their health condition due to a phenomenon known as the placebo effect"

I'm not sure what the phrase 'NHS homeopathic hospitals' means. Does it mean more than what is implied by the paragraph following the one you quoted, that some people that work for the NHS also work privately on alternative medicine like homoeopathy.

I'd also be interested to know more about the £4m per year.

The page on mindfulness has a very different tone [1] to the one on homeopathy.

[1]: http://www.nhs.uk/conditions/stress-anxiety-depression/pages...


I'm the author of the blog post. I've updated it to add that Mihai died recently.


I made a small donation, and I wanted to say thank you to everyone involved.

Some years ago I stopped using Firebug. I made a brief jump to Chrome but somehow I felt more at home in Firefox, and now I no longer needed FB to do my job.

Pretty much every single workday I have entered something or other into the console. I hop around Alt-Apple-K/Apple-Shift-I/etc. I inspect my elements. I loved it when recently an event listener list popped into the DOM view. I have followed your checkboxes and your changes and it has by and large been very much for the good.

Free software makes me feel good. Mozilla Firefox is one of my favorite pieces of software and I develop against it and use it and make a living with it. Kudos.


We moved the button and a number of the tabs in Firefox devtools to be more like the order in Firebug and Chrome devtools. Here's a screenshot from current Nightly: https://i.imgur.com/EmVIZYO.png


Nice. I am running the aurora release on this machine so it is still on the left. I cant wait to have button sanity. Thank you for your efforts.

http://i.imgur.com/W9Z5jBJ.png


New devtools are much improved however would it be possible to remove the dotted lines whilst inspecting an element (toggled option would be fine), just seems to get in the way of things.


Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: