Better HN
topnewbestaskshowjobs
Log inSign up

zeugma

464 karma · joined Jun 12, 2009 (17y ago) · 62 submissions

Submissions

comment 12y ago · link · parent

TIFF is a very versatile container format for various image-streams. It can encode multi-images(likes layers), with different compression (losseless, JPEG etc) and tiled images to read/write efficiently big images e.g. for astronomy, pathology (microscopy). It is the standard for archiving images.

comment 12y ago · link · parent

It is, it's the Free and Open Source Developers European Meeting.

comment 13y ago · link · parent

There is a C++ REPL called Cling: http://root.cern.ch/drupal/content/cling

It is made by Cern and based on Clang

comment 13y ago · link · parent

I doubt that it does in any EU country. In France it actually does not exceed 50% including VAT. (http://www.revolution-fiscale.fr/le-systeme-actuel/des-impot...)

comment 13y ago · link · parent

About evil preprocessor construct, there is a nice collection in the comment of this Jonh Regehr post : http://blog.regehr.org/archives/574

comment 13y ago · link · parent

C++ Primer was updated to C++11. http://www.amazon.com/Primer-5th-Edition-Stanley-Lippman/dp/...

The C++ FAQ is really helpful but doesn't seem to be updated to C++11 http://www.parashift.com/c++-faq/

Fortunately you can refer to Stroustrup's FAQ about C++11 http://www.stroustrup.com/C++11FAQ.html

For reference (like libc manpage, basic usage, which header to include): http://en.cppreference.com/

7.

Most Citizens of the Star Wars Galaxy are Probably Totally Illiterate(tor.com ↗)

3 points · by zeugma · 14y ago · discuss

comment 14y ago · link · parent

If you do static analysis on Step 2 (ie on the AST) then you only need the Front-end of your compiler.

Clang/LLVM is much more modular, library oriented.(which is why the Google engineer wanted to switch to it). You can just link to the needed front-end and do the static analysis without generating the LLVM bytecode.

So yes, you could install a static-analyzer without the whole compiler.

comment 14y ago · link · parent

Rust is inspired by C++ which use '::' to access names inside a namespace, here 'vec' and io are module/namespace not object, it's a static lookup.

'.' is still used for object lookup which is dynamic.

comment 14y ago · link · parent

Actually you can do it using template but it is quite convoluted. (http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.130....)

comment 14y ago · link · parent

here : http://www.cs.dartmouth.edu/reports/TR2011-705.pdf It is sad we have to dig for it, it should be the first link in the article.

comment 14y ago · link · parent

> On the other hand the fact that people from anywhere in the EU can come here to live and work here in the UK is great and the fact I can work, live and travel where I want within the EU looks like a huge increase in liberty

Unfortunately, this is not true for UK as UK is not part of Shengen. I think most(but not all) EU citizen can settle in UK and UK citizen settle in EU countries, but this is due to bilateral treaty not European one. (http://en.wikipedia.org/wiki/Schengen_Area)

comment 15y ago · link · parent

I won't take the eurovision to measure europe's culture. First it is not "European" anymore, neither politically (Swizerland) nor geographically (Algeria and Israel for example are participating). Secondly, France and Germany do not succeed very well and they participation is rather ridiculous.

comment 15y ago · link · parent

Lack of real string type. String manipulation is a pain and you have to allocate everything by yourself which result in inefficient and dangerous code.

15.

C++98 Support Costs Extra (or why we should switch to C++11 now)(marcmutz.wordpress.com ↗)

34 points · by zeugma · 15y ago · 27 comments

comment 15y ago · link · parent

On the contrary, I see more and more pdf usage. Word is just a mediocre tool for editing documents and it is not supposed to be an exchange format.

comment 15y ago · link · parent

I always sent a PDF file. You can only see that is was made by LaTeX with a trained eye(if their is not too heavy customization) or in the PDF meta-data. Designers would use pre-print tool like inDesign, which output PDF too.

PDF document is a problem with big companies portal that only want word document. I tried a few doc converter but they are not Free (as in beer and Freedom) and the result is of course really inferior. Nowadays, I would try html conversion as I think the result can be quite good and readable by most people (even without pdf reader).

Also, always have a hard copy of your CV for the interview. Once, the corporate website of a company I applied accepted pdf files, but butchered them via pdf2txt or something like that. Having the right layout to show them saved the day.

comment 15y ago · link · parent

The goal of LaTeX is to output a printable document, most of the time a pdf. I don't think sending the sources is polite nor very readable nevermind HR-compliant.

19.

New clang relase get a memory checker(lists.cs.uiuc.edu ↗)

3 points · by zeugma · 15y ago · discuss

comment 15y ago · link · parent

If you read the story further, you will see it is not really the children version of the tale.

21.

Depixelizing pixel art (SIGGRAPH 2011 paper)(johanneskopf.de ↗)

2 points · by zeugma · 15y ago · discuss

22.

What Every C Programmer Should Know About Undefined Behavior #1/3(blog.llvm.org ↗)

155 points · by zeugma · 15y ago · 18 comments

comment 15y ago · link · parent

What was the reason to do that ? Apart from rendering your own code completely unreadable ?

comment 15y ago · link · parent

Maybe that what's the author wanted to pointed out: if you have garbage collection (at least the way it's implemented in C#/Java) you have to give away scope lifetime of object. This is annoying because you want determinism for some kind of resources (file, lock, ...) and then you have to manually clean them, which is what you wanted to avoid in the first place with garbage collection.

In C++, if you declare the object on the stack, the destructor will be called when the scope is closed. Which is very handy for e.g. lock.

The thing is, garbage collection could be use together with scope lifetime (aka RAII) just let the programmer choose which is best/more convenient for him given his resources.

comment 15y ago · link · parent

Indeed. To ship in the Netherland it would cost me $120 compared to $88 for a subscription. May be finding a printer in Europe would help ?

26.

Clang Completion Source for C++ completion in Emacs(mike.struct.cn ↗)

7 points · by zeugma · 15y ago · discuss

comment 15y ago · link · parent

Isn't that strange ? I mean cable should be more easily broken than airwaves, no ? Is it because the landlines in Japan are designed to resist and the cell phone tower got power disruption ?

28.

Real cost of C++ exception vs error-code checking(lazarenko.me ↗)

71 points · by zeugma · 15y ago · 62 comments

comment 15y ago · link · parent

you should give GUD a try (M-x gdb).
123