Better HN
topnewbestaskshowjobs
Log inSign up

giomasce

1,209 karma · joined Feb 10, 2016 (10y ago) · 426 submissions

Mathematician, computer scientist, programmer. Currently Wine hacker @CodeWeavers and developer @Debian.
Submissions

comment 7y ago · link · parent

Or to use Tor, or to use the Telegram bot...

comment 7y ago · link · parent

Very true! I am completely ok with saying that GPG is not modern cryptography, but it gives me an important asset that I do not want to lose: I have a nice key with many signatures, that means that it is relatively easy for people to check whether my signatures are mine and whether they can send me an encrypted something.

As far as I know, OpenPGP's web of trust is not cryptographically broken: it is a bunch of public key signatures over other keys, and modern signing algorithms and hasing functions are supported and used. So I think that any tool that want to present itself as "GPG done better" should at least enable me to leverage the web of trust that is already in place. Otherwise, it might be a very nice tool, but for me is a very nice tool for doing something else.

comment 7y ago · link · parent

How does a software running under SGX know that it is in a "real" processor enclave, and not in an enclave emulated around it which allows the emulator to actually peek inside and know what the software is doing? Virtual machines are already a thing, and if the virtual machine emulates the SGX interface it can very well support the extraction of memory encryption keys too...

comment 7y ago · link · parent

It seems that the author is only aware of the existence of general-purpose distributions. They did not list any distribution with, say, different approach to packaging, or for use in HPC, security, NAS, embedded, you name it. Also, for some reason they cannot avoid listing more or less all well established general-purpose distributions, while that is really the list between which you are supposed to choose one or two if you care about not trying many similar things. It seems that the only criterion to be on this list is to be well known. Same for the DEs.

comment 7y ago · link · parent

To me the takeaway is that backup system should be designed with the storage system, when the storage system is still empty of valuable data. If you change the backup system, you should treat that as a change of the whole storage system, so first you would run the former backup, archive that securely, set up the new system, check it and only then release the former backup as not critical anymore.

comment 7y ago · link · parent

Another article along the lines of "I personally prefer to use a syntax in a certain case, therefore everybody should use the same syntax in every case, and really I do not understand why the language creators even allowed for the other syntax".

No, your are not smarter than everybody else. You just have different tastes, and you are not even covering all possible use cases (I would say that most people find "x > 0" more legible than "0 < x").

A lot of "Don't do" or "X considered harmful" article writers should really be a bit more careful before generalizing from "I like" to "everybody should" so quickly.

comment 8y ago · link · parent

Different systems can have very different logical foundations, so converting proofs from a system to another can be very complicated in general. Even when converting is possible, the converted proof might be very anti-idiomatic in the target system, in more or less the same way one automatically converting Haskell to C is likely to produce very anti-idiomatic C. Also, communities do not necessarily compete for this list.

Keeping this in mind, there still is something:

* OpenTheory (http://www.gilith.com/opentheory/) provides some kind of lingua franca between systems of the HOL family, that are rather similar.

* Mario Carneiro wrote an article (https://arxiv.org/abs/1412.8091) on automatic conversion from OpenTheory to Metamath. I am not aware of an actual implementation.

* Although it is not the same things, some systems have tools that can feed a subproof to an ATP (automated theorem proved) and reconstruct a valid proof to it. That simplifies proof writing.

I did not a comprehensive review, so the list may be lacking.

comment 8y ago · link · parent

That's exactly why I say that different viewpoints give different concept of easiness. To me there are a lot of way to find minima (or, at least, critical points) of a functional: the direct method in CV, mountain pass theorems, etc. Most of them just need to know very general information about your space and functional and are actually even simple to visualize.

comment 8y ago · link · parent

It's funny how different backgrounds bring you to having different ideas of what is easy and hard. As a mathematician, to me the easy problem is finding the minimum of the functional (where "easy" means "we can at least try", certainly not "trivial"; some minimum problems are actually relatively easy, some others are very difficult and open), while proving existence of PDEs is exactly why calculus of variations (and many other theories) were invented in the first place.

comment 8y ago · link · parent

Very nice. It does not work under Firefox in Debian unstable, though (the UI works, but there are no stars). It works with Chromium.

comment 8y ago · link · parent

In theory yes, but at the moment my C compiler is very tied to the x86 platform (there is no separated code generation module, emit calls are directly in the code). Since the compiler is very simple, though, it should not be difficult factor out the handful of machine code gadgets that need to be implemented and add support for other back ends, I think. Or you might also other consider other ways, like using the toolchain in OP's repository.

If you want to have some brainstorming on #bootstrappable at freenode, there are often interesting discussions on these things.

comment 8y ago · link · parent

Yes, but if you want to rebuild the trust chain you cannot restart from an untrusted compiler. The idea is to bootstrap a trusted compiler from nothing (i.e., from little enough so that you can check it directly), and then use the trusted compiler for everything else.

comment 8y ago · link · parent

I would not say that, in its current form, that code is understandable by 70% of programmers, unless you define that word "programmer" in a very restrictive sense.

comment 8y ago · link · parent

Because when you cross compile you have to trust your compiler. https://en.wikipedia.org/wiki/Backdoor_(computing)#Compiler_...

comment 8y ago · link · parent

I am also doing something like that here:

https://gitlab.com/giomasce/asmc

My philosophy is of having a very simple and custom language (which I called G) for which it is easier to write a compiler in (x86) Assembly, then write a C compiler in G that is good enough to compile tcc. Then tcc is known to be able to compile gcc 4.7.4 (the last version which does not require a C++ compiler).

My C compiler is starting to have a shape, and in theory (if I find the time to work on it) it should not be far from supporting all that tcc needs.

The README in the linked page contains more information.

I'll look at your code too!

comment 8y ago · link · parent

Maybe you want to learn. Maybe you want to retain your current job because you like it even if it pay less then you could achieve, and you still would like to develop your other skills. Or maybe you want to stay close to your family, or in a place where they speak your mother tongue. Or maybe you just want to spend carefully your money even if you have plenty.

comment 8y ago · link · parent

That is not the official catholic position. That is just a random webpage written by a self-proclaming catholic editor to promote their books. Do not try too hard to harvest for official catholic positions on matters that are not the core faith ones (and history of the Universe most certainly is not): there are more than a billion catholics around the world, coming from any social status and literary level. There cannot possibly be a position common to all of them on nearly anything, except maybe core faith matters.

That said, you are right in your conclusion, because it is true that (nearly all) catholics are "creationist", in that they believe that God created the universe and everything in there. But many of them also believe in evolution via natural selection, in the very same way you believe it and as shown by the proofs and scientific thinking that our society has accumulated. There is no hex editing by God: it is still true that evolution happens under the guidance of God, because it happens under the laws he created. But (actually, just because of that) without the need of touching anything. On the other hand, it is also true that he may do some hex editing if he wished to, but many catholics agree that there is no need to believe that this has actually happened.

comment 8y ago · link · parent

That is true for other plant types as well: see for example https://en.wikipedia.org/wiki/Vajont_Dam and https://en.wikipedia.org/wiki/Fukushima_Daiichi_nuclear_disa....

comment 8y ago · link · parent

You also notice that when you go hiking on the mountains: it takes a lot of struggle to lose the weight that you gain with very little food. If you bring ham sandwiches, your net gain is probably positive...

comment 8y ago · link · parent

I do not know much about engineering this sort of things, but it seems to me that working against gravity is easier than working against elastic force (as you propose), because the force of gravity is independent of the amount of energy stored, while the elastic force depends on the amount on energy stored (when the air is already pressurized it is much harder to push in some new one). And in general I believe that it is more difficult to build a motor or a generator that are efficient independently of the force they have to work against/with.

Just random thoughts, though...

comment 8y ago · link · parent

* I do not have precise references, but I have read somewhere that RISC-V actually has a very good code density, often better than x86 itself.

* Well, only a few of the 8192 combinations are actually meaningful. It is clear that most implementations will converge on few configurations, leaving the others for specialized domains.

comment 8y ago · link · parent

It is not really something negative (because it will have to be seen in the future), but to me the biggest point about RISC-V is whether it will deliver its promise of eventually giving birth to completely open and high quality CPUs. The experiments so far are interesting and the people and firms working on it seems (to me) to be trustworthy, but the implementations so far are still lacking: the HiFive Unleashed board has a lot or proprietary IP inside and I am told that it has some stability problems. I understand and agree that things take time, but in the end we will have to see if a good and open ecosystem develops around RISC-V or not.

353.

Infinite bottles of beer on the wall [pdf](homes.sice.indiana.edu ↗)

1 points · by giomasce · 8y ago · discuss

comment 8y ago · link · parent

Lardo di Colonnata is delicious and I love it (spoiler: I am from Tuscany), but you just take a thin slice of it on your bread. You would never fill your stomach with it, even if you have money to throw away, because it is very salty, spicy and of course fat. I can feel nausea only thinking about eating on that alone. Even if ibex is as good as pig, I really do not envy Otzi's last meal.

comment 8y ago · link · parent

Wonderful, thanks to everyone that helped making some pressing on the MEPs, from Wikipedia to the last of the tweeters!

comment 8y ago · link · parent

You are right. Sometimes the most sticking facts in my head are those that I rediscovered by myself, because that helped me to see their actual importance, which might have not been that apparent while hearing about them in classes. There are teaching theories in which the student is not supposed to learn about something, but they are guided to rediscover it by their tutors.

comment 8y ago · link · parent

I agree with you, but this is not what GGP is saying. GGP is saying another true fact (i.e., that derivative of a linear function is that same function), which a different thing than stating, as the article says, that the differentiation operator is linear. On a manifold there is no concept of a linear function, so you cannot say that the derivative of a linear function is the same function, but the differentiation operator is still defined and linear.

comment 8y ago · link · parent

It is common in this context to say "linear" to also mean "affine", because after all affine functions are not much more complicated than linear functions.

comment 8y ago · link · parent

You cannot speak of boundedness of operators if you don't specify the domain and codomain spaces. The derivation operator is for example bounded between C^1(R) and C^0(R), or between C^\infty(R) and C^\infty(R). Your example correctly proves that it is not bounded between C^0(R) and C^0(R).

comment 8y ago · link · parent

You are right, but what you are saying has nothing to do with the author's point: what he is saying is that the differentiation operator itself is linear, which is a meaningful and true fact even in spaces where you have no idea of what a linear function is.
1
1112131415