News for hackers. Stuff that matters.

lambda_cube

Re:Are Go maps sensitive to data races? on Monday December 07, 2015 @07:30AM (#10688996)
CoC? Code of Conduct? Churches of Christ? Call of Cthulhu?
Re:Are Go maps sensitive to data races? on Monday December 07, 2015 @07:25AM (#10688974)
> no languages with mutable state that I know of offer concurrent integer and concurrent structs

Java does for integer http://docs.oracle.com/javase/8/docs/api/java/util/concurren...

You can find similar classes in the java.util.concurrent.atomic package. http://docs.oracle.com/javase/8/docs/api/java/util/concurren...

I'm not sure what requirements you have for a concurrent struct, but Java has classes to atomically manipulate int and long fields of a class.

I'm not arguing your general point (in fact, I agree with it), I'm just supplying some extra information of a language that you apparently don't know.

Re:What's That Programming Language? on Tuesday September 03, 2013 @12:45PM (#6321981)
It probably does, it's just an unintuitive interface. Read the explanation on the page by clicking the question mark (or read my explanation here on HN in response to the now deleted comment).
Re:What's That Programming Language? on Tuesday September 03, 2013 @12:31PM (#6321882)
I know, I had trouble with that as well, but then I read the explanations you get if you click the question mark in the upper right corner. I will try my own explanation here.

Type your answer in the box, if you type 2 or more characters, there will be an auto complete list of matches.

If nothing happens when you choose an answer, then it's wrong.

When you choose the right answer, it will immediately switch to the next question.

If you don't know the answer you can click Forfeit or press Esc. To get rid of the correct answer that pops up when you do so and go to the next question, you have to press Esc (I didn't find a way to go to the next answer just by clicking with the mouse).

No, they are different companies. Also, Nokia bought Scalado last year: http://www.scalado.com/display/en/2012-06-14+Nokia+to+acquir...
Re:Firefox 23 is available on Tuesday August 06, 2013 @12:08PM (#6167371)
If you hover that button with your mouse pointer you can read the following explanation:

Send three "heap-minimize" notifications in a row. Each notification triggers a global garbage collection followed by a cycle collection, and causes the process to reduce memory usage in other ways, e.g. by flushing various caches.

Re:Firefox 23 is available on Tuesday August 06, 2013 @11:52AM (#6167277)
If you view the page with Firefox version <= 22, that paragraph is blinking, very easy to notice :-) (annoyingly easy!)
Re:Firefox 23 is available on Tuesday August 06, 2013 @11:46AM (#6167233)
That was supposed to be switched on by default in Firefox 22, but Mozilla noticed some issue with it. The feature is there in FF22, but you have to switch it on yourself. If you you want to know more about the issues, you can read what Brendan Eich had to say:

https://brendaneich.com/2013/06/the-cookie-clearinghouse/

Re:Firefox 23 is available on Tuesday August 06, 2013 @10:18AM (#6166686)
I know that the release notes still says Firefox Beta when I submit this, but my browser just updated itself to version 23. The beta release notes usually are pretty accurate when it comes which features will be in the next stable version.

I believe the new baseline compiler is included in this release as described here:

https://blog.mozilla.org/javascript/2013/04/05/the-baseline-...

If that is the case it's the most interesting new feature for me, but I'm a compiler guy :-)

Re:The new Python Cookbook is out on Wednesday May 29, 2013 @09:41AM (#5786184)
Well, what kind of book has a collection of recipes? A cookbook, right? :-)

I haven't used any edition of the Python cookbook, but I've used the Perl cookbook and it's just like you described. I have also heard and read that the O'Reilly cookbooks are known (famous even?) for being the kind of books that you described.

Re:Why I'm switching back to Firefox on Monday March 11, 2013 @07:24AM (#5356015)
I don't think it's regional. I'm in Sweden and if I visit the Flash install page with IE I get Chrome as pre-selected and if I visit with Firefox I get the McAfee add-on. (And when I'm using Linux, as usual, there are no extra applications installed.)
I don't think you should have to do neither convincing the IT department nor refunding them. One part of their organization chose to order the Java applet solution from you and another part of their organization chose to uninstall Java. The fact that they ordered a solution that they can't use isn't your fault. If they want you to use your time to work out a solution with the IT department how the applet can be used securely I think they need to pay you for that time (charge per hour for that, if the IT department is stubborn they have to pay more).
Re:Flash 11 released on Tuesday October 04, 2011 @05:56AM (#3070155)
I noticed I got the Swedish URL. I tried to find an international or English URL, but I couldn't find it, I hope you get English text anyway.

When I just visit that page it suggests that I download version 10.3.183.10, but if I choose to download for another OS or browser version 11 is available for Windows, Mac OS X and Linux. 64 bit version for Linux is finally stable.

You can also have a look here: http://www.adobe.com/software/flash/about/ where version 11 is listed as the current version.

Version 11 isn't available from the Adobe Yum repository yet, I will probably wait for that before I try it.

Re:Intel reportedly plans to back off MeeGo OS on Friday September 02, 2011 @10:24AM (#2954197)
They (as in Intel) don't say that, it was a rumour from "industry sources". Intel say that ``it remains committed to MeeGo''.
Re:How To Ask Questions The Smart Way on Monday August 22, 2011 @06:58AM (#2912057)
In the section "Be precise and informative about your problem" of the article there is a link to Simon Tatham's (PuTTY author) "How to Report Bugs Effectively": http://www.chiark.greenend.org.uk/~sgtatham/bugs.html

I've seen several open source projects link to that document as well, so it might be what you are looking for.

Re:Why We Start Indexing from 0 in Computer Science on Sunday August 21, 2011 @11:36AM (#2909386)
> The note is really about the best way to specify a range/sequence of integers, not why we start from 0 as an index.

Dijkstra deals with what index start with as well, but it comes out as a consequence of which bounds to choose for a range, so it's rather short.

From the article:

When dealing with a sequence of length N, the elements of which we wish to distinguish by subscript, the next vexing question is what subscript value to assign to its starting element. Adhering to convention a) yields, when starting with subscript 1, the subscript range 1 ≤ i < N+1; starting with 0, however, gives the nicer range 0 ≤ i < N.

Re:Java 7 on Thursday August 18, 2011 @10:27AM (#2899270)
It didn't. Several people point this out in the comments.
Re:Python GIL removal question on Friday August 12, 2011 @03:46PM (#2878921)
Ok, the PyPy FAQ says: "Yes, PyPy has a GIL. Removing the GIL is very hard. The first problem is that our garbage collectors are not re-entrant."

Is it really necessary for the GC to be re-entrant to run the interpreter in parallel? Couldn't you have the interpreter running in parallel and then when there is a need to run the GC you have a global GC lock that prevents all threads from running - a stop the world GC. The application runs for a longer time than the GC, right? So it would be a win and a step in the right direction? I believe the early Java mark and sweep GC was like that, and then later Sun developed several different kinds of concurrent and parallel GCs.

> Official PyPy Status Blog

Oh I read that every time they write something. :) But I started reading it in late 2010 and I haven't gone back to the archives, I guess it's time to do that. Thanks for the links.

Re:Python GIL removal question on Friday August 12, 2011 @03:25PM (#2878828)
Yes, you are right that the OS can schedule two Python threads to run at the same time, it's just that one of them will only run a few instructions and then block, just not any Python instructions. I hadn't really thought that through thoroughly, thanks for pointing it out.

Ah, I see now what you meant with constant locking. I interpreted your words as "constant" as in happening all the time as would be the case with fine grained locks instead of one long-lasting, global lock.

Re:Python GIL removal question on Friday August 12, 2011 @02:49PM (#2878663)
He's not saying that. He's saying that the GIL isn't a limitation to certain kinds of application, the kinds that Python usually is used for. The kinds of applications where the GIL would be a limitation, Python also has another limitation: slow performance, and performance is usually the reason to run things in parallel.

With PyPy the performance will get better, and they also have a GC, so that hinder is removed. I don't really know if PyPy has a GIL, I would guess that they don't.

Re:Python GIL removal question on Friday August 12, 2011 @02:39PM (#2878604)
> I dont' understand. Isn't this going to happen if you have multiple threads running even if the GIL is blocking them from running?

I don't think it would. If there is a GIL (Global Interpreter Lock) only one thread of the process can be scheduled to run at any time. As the poster (Sturla) says, Python threads are native OS threads so they should be scheduled by the OS kernel (right?). A good scheduler would use affinity scheduling and schedule all threads of the Python program on the same processor/core every time to get benefits from cached data and code. I believe modern kernels (Linux, MacOS, Solaris, probably Windows as well) use this kind of affinity scheduling, so if we're lucky the Python process gets scheduled on the same processor every time and there will be no need any cache synchronization.

> I'm not a hardware expert, but I'm not sure how constant locking would prevent cache synchronization just because they weren't truly running in parallel.

I'm not sure if you misunderstood the mail. The constant locking would only be used if they were running in parallel.

Anyway, if you have a GIL you don't need that kind of locking described in the mail. You only need to do explicit locking on shared data structures when you read or update the contents of those data structures. If you have reference counting, threads that run in parallel and no GIL you would have to lock even if you are just assigning a reference to such a data structure to a new variable. If you have a GIL you are certain that only one thread at a time are updating the reference count. That is indeed what the GIL is, one coarse lock for all data (and the interpreter) instead of fine grained locks for every data structure.

(I don't know Python very well, I just answer from general knowledge of computer architecture and language implementation. But I've read about the Python GIL several times, since it's the most discussed GIL of any language.)

Re:Does Windows still rely on MS-DOS? - Super User on Saturday August 06, 2011 @09:58PM (#2855464)
It's a joke, he/she is playing ignorant for humorous purposes. I smiled. :)
Re:Yahoo Store now C++ (comments by pg from 2003) on Saturday August 06, 2011 @04:04PM (#2854787)
Hi Paul. Since you are, maybe you can shed some light on how the rewrite actually happened? Was it the comb-over syndrome that raganwald described in a sibbling comment to yours or was it a more conscious decision?

Older »