HNHacker News
TopNewBestAskShowJobs

Svenskunganka

1,162 karma · joined March 9, 2015

submissionscomments
Svenskunganka··on Torrentz Shuts Down, Largest Torrent Meta-Search Engine Says Farewell
Torrents and copyright infringement is related, we can all agree on that. But I believe that pirating is related to a very fuzzy legal system regarding this topic and unfair treatment by the major movie studios & music labels. I'll try to explain as good as I can.

Being a european citizen, it is very frustrating knowing that pirating is illegal even though being a Netflix, HBO & Spotify customer. Pirating is a much bigger trend in EU & AUS than it is in the US, and I think that it mainly boils down to the US-based movie studios restricting and delaying access to content to non-US citizens. Some may think that this is acceptable, but I can't see how treating one customer differently from another is acceptable just because they have different nationalities. I'm paying exactly the same amount of money as the next US-citizen for the content, yet I am treated differently.

One other thing that troubles me is that there are higher quality content available via torrents than via the legal alternatives. Having invested in a 7.1 surround system and a 4K 3D Android TV, you would expect that the legal alternatives would have content available for such hardware, but they rarely do.

Personally I think it's absurd that the movie studios expect to be on the european market but treat those customers as second-hand customers, and I don't understand why the EU isn't doing anything about it. The EU and US relies on eachothers markets, yet music labels forces the Swedish-invented Spotify to restrict access to certain songs for non-US citizens.

I do acknowledge that some people are pirating because it's free, but I don't think that the general public does so. I'd be the happiest Netflix & HBO customer if I had the same content library as my fellow US friends.

Svenskunganka··on Torrentz Shuts Down, Largest Torrent Meta-Search Engine Says Farewell
Yes it is decentralized, but it relies on central authorities to work, which in turn relies on a stable, cross-border legal system - which many believes is currently not in a good state (see Freak_NL's response for example: https://news.ycombinator.com/item?id=12230903 ).

People have different views on this of course, but I think we all can agree that it needs a major overhaul to make the majority happy (the legal system that is).

Svenskunganka··on Torrentz Shuts Down, Largest Torrent Meta-Search Engine Says Farewell
Do you know how it works? Does it use the DHT or is there a central tracker/index somewhere?
Svenskunganka··on Torrentz Shuts Down, Largest Torrent Meta-Search Engine Says Farewell
I agree, but the case with torrents and trackers is such a gray area. Shouldn't routers be illegal since they help facilitate crime? If not, why should trackers?

I'm just playing with thoughts, interested in seeing what people think.

Svenskunganka··on Torrentz Shuts Down, Largest Torrent Meta-Search Engine Says Farewell
It's a tricky business running a torrent site. Unless it is fully decentralized, it can be shut down fairly easily.

Starting a torrent site using the HTTP & DNS protocols is a lost cause. HTTP can be worked around, but DNS is very problematic. I think we'll see more and more torrent sites show up that leverages IPFS[1] or ZeroNet[2], but the second the main browser vendors adds support for something like IPNS (decentralized alternative to DNS), torrent sites will have won the battle with MPAA, RIAA and other IP and DMCA enforcers. Considering the grip that the movie studios has around the vendors, it is very unlikely that it will happen.

[1] - https://ipfs.io/

[2] - https://zeronet.io/

Svenskunganka··on Torrentz Shuts Down, Largest Torrent Meta-Search Engine Says Farewell
Could be, but it doesn't seem likely considering torrents themselves are not illegal, it's what they point to that might be illegal.

But then again, I wonder why trackers are seen as illegal? They're nothing more than what a router is.

Svenskunganka··on Some news from LWN
You don't really have to make it look "current" to make it better. I think a good example is antirez blog: http://antirez.com/latest/0

It's clean, very simple and renders fine in everything, even mobile. No distracting content, proper font and font spacing.

Svenskunganka··on Crystal: Fast as C, Slick as Ruby
I meant the packages of the stdlib, not community-made packages. A great example is the things I learned about the IO module and how it plays with the other modules in the stdlib for Crystal that I could easily see a similarity in behavior and methods in the Go implementation, but not being able to fully understand before I had a go with Crystal.

The way they interact with different types, fibers and allocation on the stack vs heap, etc. Makes sense?

Edit: To give you an example of how friendly the Crystal lang & API documentation is to developers unfamilliar with the language, let's look at the Iterator: https://crystal-lang.org/api/0.18.7/Iterator.html

It comes with a great "introduction" to what it is, what it does and gives an example of the advantages it has over the Enumerable. It also explains how you can implement your own Iterator.

We can also look at the IO module for Crystal and the io package for Go: https://crystal-lang.org/api/0.18.7/IO.html https://golang.org/pkg/io/

From a beginners standpoint, you have to see that the Crystal documentation is way more friendlier.

Svenskunganka··on Crystal: Fast as C, Slick as Ruby
Ah, I see what you mean. Thank you for clarifying!
Svenskunganka··on Crystal: Fast as C, Slick as Ruby
This is known, but it's always possible to overcome these situations and its part of the language maturing. Golang has already had its run with optimizing their GC for real-time systems. Twitch uses Golang for their IRC chat, and they've taken the Golang GC on a journey which you can read about here: https://blog.twitch.tv/gos-march-to-low-latency-gc-a6fa96f06...

Crystal will at some point also be forced to optimize their GC for these cases, although it currently uses an out-of-the-box GC called Boehm-Demers-Weiser conservative garbage collector http://www.hboehm.info/gc/ which they have acknowledged they need to replace sooner or later.

Svenskunganka··on Crystal: Fast as C, Slick as Ruby
I wonder how Lua can get by, being embedded in literally every game that supports scripting, in databases and many other tools.

It's a personal preference of course.

Svenskunganka··on Crystal: Fast as C, Slick as Ruby
> In the Animal/Dog/Cat example, what happens if, in a separate module, if define a Snake class that doesn't have a `talk` method? There are several possibilities, sadly all pretty bad

The abstract class defines which methods every class that inherits from it must define by using abstract methods. If you write a class that inherits from an abstract class, and you do not define a method that the abstract class says that you absolutely must define, the compiler will raise an error for you. You can inherit from classes between modules.

> I'm asking about the errors that the language prevents, not the community's conventions.

I haven't actually tried it, definitely something I'll check out another time. I understand your concern though!

Svenskunganka··on Crystal: Fast as C, Slick as Ruby
> How am I supposed to learn the language's semantics from a lexer?

Not what I wanted to achieve, but the lexer contains some frequently used methods and is fairly simple and straight-forward, but if you want to learn the semantics why not just go to their docs? https://crystal-lang.org/docs/syntax_and_semantics/index.htm...

> Consider this use case: I spawn five fibers. Can I send the same mutable object to all five? If so, can they attempt to mutate the object without properly taking turns? (e.g., using a mutex)

Taken from the docs:

Crystal has Channels inspired by CSP[1]. They allow communicating data between fibers without sharing memory and without having to worry about locks, semaphores or other special structures.

...

Because at this moment there's only a single thread executing your code, accessing and modifying a global variable in different fibers will work just fine. However, once multiple threads (parallelism) is introduced in the language, it might break. That's why the recommended mechanism to communicate data is using channels and sending messages between them. Internally, a channel implements all the locking mechanisms to avoid data races, but from the outside you use them as communication primitives, so you (the user) don't have to use locks.

[1] - https://en.wikipedia.org/wiki/Communicating_sequential_proce...

Svenskunganka··on Crystal: Fast as C, Slick as Ruby
(0) It does not. It has a GC, and all features you'll likely use are memory-safe. You can of course use unsafe methods and raw pointers, but those are documented that they are unsafe and are usually only used for writing bindings to a C library. Macros for example are evaluated and constructed at compile-time, so no undefined behaviour can come from those. Most methods have different behaviour. For example, one method may throw an exception, another return an error, and another simply return Nil. You know if you are using `hello!` `hello?` or `hello`, so no undefined behaviour there.

(1) Not at all, look at the source implementation of their language implementation. For example, the lexer: https://github.com/crystal-lang/crystal/blob/master/src/comp... Seems pretty clear to me.

(2) Not entirely sure what you mean since that is such a broad case, but as stated, Crystal stdlib is mostly safe.

Svenskunganka··on Crystal: Fast as C, Slick as Ruby
There's some benches between various languages, including Crystal as well, for those interested https://github.com/kostya/benchmarks

EDIT: There's also this: https://github.com/nsf/pnoise

Svenskunganka··on Crystal: Fast as C, Slick as Ruby
I'd like to put out there that Crystal is absolutely awesome. The language itself is Crystal clear, but the language documentation and API documentation - oh my!

I had never worked with compiled languages before I tried Crystal, but had always had a huge interest in getting into that. When I wanted to learn the compiled ecosystem I looked at languages like Go and Rust, but the learning curve for those was a bit overwhelming for a newbie. A while later I found Crystal, and much thanks to the simple syntax of the language I learned a ton of new things about compiled languages very quickly. The absolutely best part of the language is that it is written in plain Crystal, and I've been looking at their own implementations for various things a lot - something I've never done before, having worked mostly with Node, Lua and PHP before.

Nowadays I can delve into Go documentation, packages are clear to me and I just understand how things should and should not be implemented to achieve a good efficiency and performance level. The Little Go Book makes sense, the I/O package is simple and this is probably all thanks to the syntax of Crystal, the amazing language & standard library documentation but most importantly the source of Crystal being written in Crystal.

I'm currently working on building a business using Go, because I absolutely need Windows target support - something which Crystal does not yet have. But the second it gets that, I'm moving back. Don't get me wrong, Go is really great and nice to work with - but Crystal is my mentor. Please note that I have not worked with Ruby before, so the whole language was new to me.

To summarize; even if you only wish to learn, Crystal is in my personal opinion the best choice to go with.

Svenskunganka··on A Swede Returns to Silicon Valley from China
> All told, I'm getting really sick of the Euro-lectures-Americans schtick.

What do you mean? I can't help but thinking that your statement is somewhat not related to Silicon Valley and tech, but rather something political (e.g Europeans disliking Trump) or some military/intelligence incident. Am I wrong? Either way, nationalism is only good to some degree.

Svenskunganka··on Ask HN: What is the most underrated GitHub repo you found lately?
GitHub does have something similar, called showcases: https://github.com/showcases
Svenskunganka··on Huge no. of files for Angular 2
IIRC the Angular2 production builds are the largest among all the frameworks. If you add the router it sits just shy of a meg - and that's just the dependencies. Not sure if they've started working on bringing the size down yet, but there are 1KB alternatives[1] for those who cares about their users.

[1] - http://monkberry.js.org/

Svenskunganka··on The gender wage gap in Silicon Valley – based on AngelList data
> At that point I made a decision to change this by enforcing a new hiring rule. Next couple of new employees are going to be women up until we balance our team

Most of us can agree that this is a bad decision, but I've always wondered how people can end up with such tunnel vision. Men in IT has always been overrepresented, so it's not surprising that the majority of teams are mostly men. But what I wonder is why this person thinks that hiring women only will change this trend? It is in fact gender discrimination, but I believe that inspiring women to work in the IT field is the key to solve the problem. I don't think anyone wants special treatment due to their gender, but rather evaluated by their skills and experiences.

Svenskunganka··on Why I’m Suing the US Government
Ah, thank you for clarifying! I'm not a US citizen so I don't know much about the US-specific rights and laws.
Svenskunganka··on Why I’m Suing the US Government
But if this suit is successful, it would mean that Section 1201 violates your First Amendment rights which in turn means that EULA also violates your First Amendment rights.
Svenskunganka··on Interviewing my mother, a mainframe COBOL programmer
Yeah you're probably right, that was just me asking the question to myself more or less.

I've been raised to not ask what people make, that it's considered rude - so I have no clue what she makes.

Svenskunganka··on Interviewing my mother, a mainframe COBOL programmer
That's not her ISFP, she got much nicer colors! That's an image I found of an ISFP.
Svenskunganka··on Interviewing my mother, a mainframe COBOL programmer
There! I've added those to the post at the bottom, with one more quite funny story that I didn't knew about myself. Thank you all for asking questions, there are many questions that I couldn't come up with myself that I'm very happy to get answers from!
Svenskunganka··on Interviewing my mother, a mainframe COBOL programmer
Definitely not! I'm mostly quoting what she said, but IBM has a lot of nice tech, but you have to understand that these are very old versions of IMS and the volume of data they have does not make the case better. Hierarchical databases are not always slow, but once you want to find stuff at the very bottom of the hierarchy, it'll start take some time.
Svenskunganka··on Interviewing my mother, a mainframe COBOL programmer
Yeah, sorry about that! I'll add some direct Q&A at the bottom of the post!
Svenskunganka··on Interviewing my mother, a mainframe COBOL programmer
You are right, I apologize, I'll ask her about how her days looks like and her best/worst/strangest parts. I'll add that directly to the post and reply to you when it's done!

EDIT: I've added some Q&A at the bottom, will add more as more questions come in.

Svenskunganka··on Interviewing my mother, a mainframe COBOL programmer
Lack of new talent is indeed the biggest problem they are facing, but they've acknowledged that they've gotta upgrade these old systems before it's too late - instead of hoping for new talent to show up. Nordea in question has bought a new system that they want to gradually migrate to, but all their mainframe programmers, - including my mother - are all saying it's not going to work. The system is too large.
Svenskunganka··on Oracle and the fall of Java EE
Would be really fun and informative writing a post about her work! I'm gonna ask her tomorrow! :)
← PreviousPage 5 of 6Next →