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

Can vouch for it. I found my current job through SO Careers, and now that we're trying to hire more people, we're finding a good number of our better candidates coming through our SO Careers posting.


> I'm wondering what part of the twelve step compilation process was found to be easier than simply installing Python on the target machine?

That part is something that you can control.

Giving instructions for someone non-technical to install Python and run a script with it, and then helping them figure out how to interpret those instructions, is a heck of a lot more complicated.

And yeah, you can diddle around with cx_freeze and then having to spend some time with InnoSetup or WiX to build an installer, and then do the same on OS X but putting everything into an app bundle inside of a disk image instead, and finally on Linux trying to figure out how to bundle something up to play nicely with all of the major distros and packaging systems, and get something to work, though it doesn't support cross compilation so you now need to set up and maintain three different build machines, which is definitely no simpler than the solution described.

All of these solutions have their ups and downs. But being able to relatively easily (modulo installing a linker and a few libraries) cross compile from Rust to a static executable for any of the major desktop platforms is pretty nice, after you've dealt with enough of these funky build and packaging systems or trying to walk people through figuring out how to add Python to their path on Windows.


Not inconveniencing non-technical users cannot be underlined enough. I'd rather write this in C++ which I haven't touched in ten years than explaining my parents over the phone how to install Python or even just a screen sharing solution so that I can do it. I'm still traumatized from trying to get my dad to visit 192.168.1.1 in his browser.


Oh my dad wouldn't stand for that. If something happens, like malware, it would be my fault for making him put some "dodgy coding" in the internet and now every result in Google redirects to Adult Friend Finder and I am obliged to admit my wrongdoing and fix the problem - even though it's the address to his router portal...


There are multiple ways of making exes on Windows from Python. It's not too much work either.


> Giving instructions for someone non-technical to install Python and run a script with it, and then helping them figure out how to interpret those instructions, is a heck of a lot more complicated.

Training someone to accept binary file and run it without question is just dangerous.


Have you been using windows in the past 5 years?

Accepting random binaries from the net and running them is the main software distribution model.


I am talking about scenario that "a friend" gives you binary to run. It is different from downloading software from a trusted source.


This is not a random friend giving you a binary. This is where you asked a trusted friend to build you a binary, and he delivered it.


Someone could simulate your trusted friend, that's my point.


Big difference between "run a binary from me" and "run a binary from anyone"


Not really. It rather easy to assume someone's identity online and then make target person to run the binary without thinking twice, especially if such practice is already established.


> It rather easy to assume someone's identity online

So you just tell you friend "Only run a binary when I physically come over to your house with a USB drive" or "Only when I call you on the phone"


"I don't see how you can have a humane prison not be a criminal university."

By having it promote positive improvement and rehabilitation rather than purely punishment.

Here is what a humane prison looks like:

http://www.bbc.com/news/magazine-35813470 http://content.time.com/time/photogallery/0,29307,1989083,00... https://en.wikipedia.org/wiki/Halden_Prison


"A society will be judged on the basis of how it treats its weakest members" ~Pope John Paul II

By treating prisoners humanely, a society is showing how it treats those who are at the bottom rungs of it. It is a reflection on the society itself.


A lot of people call those prisons "dorms" and they say that prisoners live in better conditions than a lot of people outside of prison.

And yet, they don't make the jump to the idea that maybe people shouldn't be living in worse conditions.


Definitely, I am a big believer in Housing First and affordable housing by allowing high density development, as it is a viable path forward for cities and it defends suburbs from pressure to redevelop much more destructive low density redevelopment.


Ain't gonna happen.

It's a long chain of logic, but fractional reserve banking, at the levels we're seeing, prevents it.

Most of our money supply is created through debt. As a result, housing is bought through debt rather than owned. The competition for better homes drives prices astronomical. The only way to actually get affordable housing is to either move people where there is no competition (e.g. desert of Arizona), or to reduce reserve limits.

Fractional reserve banking generates trillions for big banks, and the electorate doesn't get it. It's not going away.


I implore you to take some time and read at least one or two credible papers on the subject, because your understanding of fractional reserve banking is frankly too misinformed to unpack in the space of a forum comment. Suffice it to say I've certainly never seen any indication that removing easy availability of credit results in positive outcomes for the classes who already lack in capital. I'll include some links for you to get started at the bottom.

What can be addressed is the concept of affordable housing. Housing, to a certain degree follows a pretty tight supply and demand curve; put simply if you want affordable housing, pressure your local government to green light permits to build affordable housing[2].

[0]https://en.wikipedia.org/wiki/Fractional-reserve_banking [1]https://en.wikipedia.org/wiki/Credit_theory_of_money [2]http://www.wsj.com/articles/u-s-cities-see-apartment-rents-f...


I'm getting off-topic here but can you share some resources on how low density developments are much more destructive? I'm usually very pro low density housing (and also very anti high density housing) so I'd like to have some new perspectives on this. Thanks.


Consider this: My local road takes up ~40,000 square metres of space all in (road, front yards, houses, back yards). That houses 660 families. Near the local train station they'll be housing that same amount in <2,000 square metres of high density housing.

So to handle twice the population, we could either free up ~2,000 square metres, or re-develop the entire road two have twice the density, leading to the loss of most of the single dwelling houses and private gardens.

It's not so much that low density is bad, as that not having high density takes choice away once there's no more space and you have to start increasing density anyway, often in all kinds of suboptimal ways.


Why can't we consider expanding to new non-developed areas in this scenario?

The main reason I'm anti high density areas is it's unhealthy: people are stressed, there's no sense of community, commerce space is scarce and extremely expensive to rent so { banks, supermarkets, estate agents } take all of them making any new commercial idea almost impossible to put through thus less employment too. I don't know much about this though, it's just my thoughts after living in very different areas and cities and how I feel about it.


> Why can't we consider expanding to new non-developed areas in this scenario?

Because a lot of people want to keep relatively untouched nature too.

> people are stressed

I don't see any evidence that this is caused by high density living.

> there's no sense of community

Most suburban areas, in my experience, have little sense of community. Maybe small villages are different, but in the suburban areas I've lived, at most I knew my immediate neighbours. People often tend to drive too and from the places where they are involved in community activities. If anything, I feel more connected to communities that form separate from the residential areas, and there tend to be more of them in high density city centres.

> commerce space is scarce

Is it? Near me, the densest areas have plenty of available commercial units cheaply available.

More importantly: Building densely allow for far more flexibility with the rest of the space.


>people are stressed

You ever asked us?

>there's no sense of community

Says who? Ronald Reagan?

>commerce space is scarce and extremely expensive to rent so { banks, supermarkets, estate agents } take all of them making any new commercial idea almost impossible to put through thus less employment too

I guess I'll go tell all the shops and such in Davis Square that they don't exist.


Maybe city planners should borrow some ideas from CS, namely how to handle destructive operations while maintaining O(1) average cost.

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


Not many here in Norway say that because here it is demonstrably untrue. Pretty much the only people who have to live in significantly worse conditions are illegal immigrants begging on the streets and sleeping rough.


That's not the DNC, that's the New York Board of Elections. The DNC doesn't run the actual voting of the primaries, that's done by the local election commissions, just like for the general elections. This varies by state, it's generally the state parties that decide how primaries are run in their state, not the DNC.


If you are your own company, thus working as a contractor, that's different than hiring an employee to work in an existing company. There are lot of obligations that companies have for each employee in terms of taxes, health insurance, and the like, and in the US they can differ from state to state. If you hire an independent contractor, however, all of those obligations fall to the contractor themself, and the contractor is likely only dealing with one state's laws, so they don't have that complexity.


That's probably it.

I just checked my papers now and it does say "consultant".

Is there a difference (legally, in the US) between contractor and consultant?


Consultant isn't a legal definition there is a difference between if they are paying you for services rendered (b2b) or employing you.

Basically unless there is a requirement for reverse VAT charges which isn't applicable to the US there is nothing a company needs to do when hiring a contractor other than pay the invoice, on the other hand there are tons of regulatory and legal requirements that they need to meet when they offer you employment.


This is a little different than codec support, though as other replies indicate, that can be done too. This is just demuxing the stream in one format, re-muxing it in a different format, and feeding it into <video> to actually do the decoding and playback.

On the other hand, something like https://github.com/brion/ogv.js/ is actually doing all of the decoding and playback in JavaScript/asm.js, using C libraries compiled with Emscripten.

Anyhow, yes, it probably would be possible to package up extensions that would apply one of these automatically to <video> tags with unsupported codecs or container formats. It's just a simple matter of programming.


> with the eventual goal of being pure Rust

No, being pure Rust is not the goal. It aims to use Rust as much as possible for the parts that Rust is good at. But core crypto algorithms generally need to be written in assembler, to avoid various timing attacks that could be introduced by optimization. And for things that would require large amounts of `unsafe` in Rust, there's less reason to port that to Rust, and leaving it in C can be more clear.

See the style guidelines from the project:

https://github.com/briansmith/ring/blob/master/STYLE.md#unsa...

The thing that are most appropriate for Rust are parsing, protocol implementation, higher level code that uses core crypto primitives, and providing a safe API to client code. But the core crypto primitives themselves will remain written in C and/or assembler, as appropriate.


> to avoid various timing attacks that could be introduced by optimization

Assembler only goes so far. Until you figure out how the processor's front end will decode the machine code and run the underlying RISC program, or how the hypervisor will schedule your program on some shared machines (e.g. in EC2) you're susceptible to a different class of side-channel attacks.


This is true but not relevant to the discussion: whatever side channel problems you'd have in pure assembly, you're practically certain to have more of them if you implement crypto in a high-level language with an aggressive optimizer.


Note I never disagreed with GGP's premise - I'm only pointing out that you can go further than assembler.


Is there any way to write programs that bypass the processor's front end for most the processors in use? If not, it what sense is it true that "you can go further than assembler"?


You don't have much choice with commodity hardware - but you could perform crypto on hardware/chips where the behavior is completely specified.

Note that this is not very practical, and impractical crypto is almost as good as no crypto.


This is often, though not always, the case with deeply embedded processors of the kind BearSSL seems to be designed for. There's generally some way to get predictable cycle-exact performance on them because it matters for some embedded applications.


> Since the most painful area is still the missing Cocoa implementation, hackers are welcome to explore the following possibility

I wonder why they suggest trying to rebuild Cocoa on top of Qt, rather than starting with the existing GNUstep?


The W3C HTML specs are pretty much irrelevant for anyone wanting to write a web browser, or author content designed to be consumed by web browsers.


There is pretty bleeding-edge support for compiling to both asm.js and WebAssembly in Rust that recently landed: https://users.rust-lang.org/t/compiling-to-the-web-with-rust...

So, at the very least there's support for C, C++, and Rust at the moment, though of course since the standards aren't yet finalized and the toolchains are evolving how well it works at any given moment may vary. I'm sure there's work going on for other languages to compile down to WASM, just not sure of the status of any other languages at the moment.


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

Search: