Better HN
topnewbestaskshowjobs
Log inSign up

dependenttypes

1,649 karma · joined Jan 1, 2019 (7y ago) · 1,251 submissions

Submissions

comment 6y ago · link · parent

"non for profit with a proven track record" is not how I would describe mozilla.

> His personal choices to support legislation that will deny basic human rights from the LGBTQ community is a BIG clue.

Marriage is not a human right.

comment 6y ago · link · parent

Sure, there are non-corrupt unions in some other countries, the question is however how much % of them are not corrupt.

comment 6y ago · link · parent

You are lucky to be living in Sweden then. My experience from other EU countries is that unions are leeches that once in a while defend "high-ranking" union members that did something bad from being fired. (although admittedly it is not nearly as bad as what GP described)

comment 6y ago · link · parent

Chances are that you benefit from open source code that I wrote. Where is my money?

comment 6y ago · link · parent

If you do not want to implement a separate interpreter you can do multiple compilation passes instead.

comment 6y ago · link · parent

> so straight-up interpreting the core language at compile time is not enough. You need meta-typed named values to transport types in, and meta-functions to pass them to.

Can you please explain what you mean by this?

comment 6y ago · link · parent

A program that requires 2^256 time units and 2^256 memory units is not really any better compared to unbounded computations.

comment 6y ago · link · parent

It should be noted that gcc and clang both execute certain functions at compile-time at their higher optimization levels.

In addition C++ has constexpr which marks an expression to be evaluated at compile-time.

comment 6y ago · link · parent

> One issue not yet mentioned with Turing complete language at compile is that it makes tooling and IDE integration much more difficult

How so?

> When you need to run an unbounded program

How is a program that provably terminates but takes 2 years to finish any better for compile-time computation? You want timeouts in either case.

comment 6y ago · link · parent

> browser prefetching, link previews

Both of them are pretty bad. I do not see GET actions breaking anything that is not trash.

comment 6y ago · link · parent

I do not contribute to wikipedia because I dislike the politics there but I often browse it and see content in technical articles that helped me in the past magically disappearing, or wiki articles getting deleted along with their history because the moderators were too clueless about a certain topic.

comment 6y ago · link · parent

That would make sense if people were countries.

comment 6y ago · link · parent

Not sure what you mean by this.

comment 6y ago · link · parent

> to imply that the native communities... can't be trusted to know how to use money to improve their communities?

I am not implying that though. Please do not put words in my mouth.

> but the idea that ...

This is not what I said.

comment 6y ago · link · parent

I think that in some countries at least the moment that an archeological site is discovered it becomes property of the government.

comment 6y ago · link · parent

I think that these should be designated as world heritage sites, rather than as a property of a specific group that is free to destroy it at any time.

Anyway, it is not like there leaders of communities have never been corrupt.

comment 6y ago · link · parent

If you are interested in an offline foss tool I would suggest logisim.

comment 6y ago · link · parent

> I will probably get downvoted a lot

Because this is not relevant with the topic at all?

comment 6y ago · link · parent

> And in many cases, proprietary/commercial software really does outperform the equivalent FOSS/Libre solution

And in most cases, it does not. Why are we teaching people to reach out for the suboptimal tools in these situations?

comment 6y ago · link · parent

> for work

Please no. It is already difficult to find unis whose undergraduate degrees are not filled with things like java and enterprise-grade programming.

Regardless, universities are not for teaching you to use specific products. This is what manuals are for.

comment 6y ago · link · parent

Sudo is an actual security measure though. You can be allowed to run "sudo service" but not "sudo apt" for example. Far from being a training wheel.

comment 6y ago · link · parent

Given

> >Plus, there's still a lot of damage you can do without root access.

> That's not really true. An unprivileged user

We can see that "unprivileged user" equals to anything that is not root in your post. Considering that definition www-data is an unprivileged user which can delete everything under /var/www/.

So no, what you are saying is not really true.

comment 6y ago · link · parent

> alias sudo=su -c

This will not work. sudo cp aaa bbb will work but su -c cp aaa bbb will complain that the user aaa does not exist, you need to quote them instead, like su -c "cp aaa bbb".

It would make more sense to make it a script

    #!/bin/sh
    su -c "$@"

comment 6y ago · link · parent

> The advantage of restricting their sudo use is to make it harder for them to accidentally mess something up, not protect against a malicious user.

What makes you think that?

comment 6y ago · link · parent

> I big fat "update the system" (or don't) button with my user-installed packages totally separate

And have to update each software package manually as in windows/macos? (even worse, have a backdoor updater build-in on packages)

> I should be able to blanket-update my user-facing software without any risk whatsoever that a kernel update will get thrown in with that

But why? Any and all security updates should be installed as soon as possible, regardless if it is a kernel update or a browser update.

comment 6y ago · link · parent

> Disk space was limited, memory was small, CPU cycles were few

With that logic DOS/Windows and even Mac OS (X) should be even worse regarding that then, after all both Mac OS and DOS are older than Linux. Not to mention that servers always had better cpus/more ram compared to personal computers.

> Unix (and hence Linux)

Mac OS X is officially recognised as a Unix. Just one of the registrations: https://www.opengroup.org/openbrand/register/brand3581.htm

> installing popular software system-wide

This is exactly what windows does. Most of the times the installers need admin privileges.

> see Snaps and Flatpak

Nix (which was mentioned by the person that you are replying to) is an even better solution. In fact you can run it on top of existing distros too. Also, package managers for programming languages (such as Haskell's cabal and even Python's pip I think) have Nix support now.

An alternative is to use appimage which is just a single executable per software.

comment 6y ago · link · parent

> An unprivileged user shouldn't be able to take down a production system

How about deleting everything under /var/www/?

comment 6y ago · link · parent

> theft

You can't steal data unless if you intentionally delete the original after copying, but then that is not really theft as any proper organisation will have backups.

comment 6y ago · link · parent

Sudo in this instance is an easy way to allow the user to call service without giving them root access, thus a security measure. It has nothing to do with making things more visible to the user.

comment 6y ago · link · parent

Sudo has nothing to do with training wheels.
1
171819
42