Better HN
topnewbestaskshowjobs
Log inSign up

exceptione

3,880 karma · joined Apr 2, 2013 (13y ago) · 1,322 submissions

ff6600
Submissions

comment 2y ago · link · parent

> The UK left because of this imbalance (despite having special privileges).

The UK had a very beneficial (for the UK populace) position. Disinformation campaigns fueled by oligarchs and Russian money got the population to score an own goal. Gains for the few, destruction for the others.

But as one of those wealthy politicians said, "at least the fish are now happy".

comment 2y ago · link · parent

Nope. There was a proposal pushed by corporate lobby groups that got shot down.

The EU usually takes 3 steps forward, 1 to 2 steps backwards.

comment 2y ago · link · parent

You are distracting from the issue: when law enforcement infiltrate into criminal telegram groups (drugs, child trafficking etc), they are for once doing their fucking job by ordering the platform to give them all the details they collect, so that they can come after those criminals.

If Telegram did actually prioritize private and secure communication, they would indeed be just a data pipe and nothing could be shared with law enforcement.

comment 2y ago · link · parent

Indeed, I think the country will mess with itself. America is not a cozy, isolated community that lives a happy and simple life with mostly internal trading.

America lives of a constant influx of the best global talent and a global market for its products.

I would bet my money that American democracy would not survive when that ecosystem collapses, especially not as the American system has already transitioned into an anocracy according to some. Collapse in itself would create opportunities, but not for a simple programmer as you refer to yourself.

comment 2y ago · link · parent

> The end of Pax Americana won’t be sweet.

This.

Plus:

  - America gets soft power in return, countries keep American interests in eye too. This requires understanding the concept of win-win versus the you lose-I win mentality. 


  - Economic contraction. There is not much growth and prosperity in a world of feuding dictatorships. Incentives in those systems are opposite to global well fare. 

For American oligarchs, like for their Russian counter parts, there might be some insane short-term opportunities. Chances for the sharks, not for you though. You are fish.

comment 2y ago · link · parent

For Linux, yes, the Arch wiki mentions some. But if you want to add Windows as an option, I don't know one.

comment 2y ago · link · parent

Be careful! The source contains lots of blobs, not much is known about the author ( I only know he is from China *). This project would be a very fat target for anyone liking to get the most unfettered root access imaginable, because many system administrators will happily plug this in while installing OSes.

---

* I hate to make this remark, as this could indeed be someone happily doing his hobby. Otoh, after xz we should be more vigilant than we were already.

comment 2y ago · link · parent

Yeah, let's agree the term open source can mean anything, for example closed source.

There is no small nuance to intellectualize about here if 98% of the discussed thing is the contrary of what you claim it is. (Now, one could argue it is 90%, won't help)

comment 2y ago · link · parent

There are other places were you use types as well.

Also, if you later decide that an Age should not be int, but a string, you wont miss it in refactoring whereas in your example you don't have that facility.

comment 2y ago · link · parent

> Infrastructure used to maintain and distribute the Linux operating system kernel was infected for two years, starting in 2009, by sophisticated malware that managed to get a hold of one of the developers’ most closely guarded resources: the /etc/shadow files that stored encrypted password data for more than 550 system users, researchers said Tuesday.

> The unknown attackers behind the compromise infected at least four servers inside kernel.org, the Internet domain underpinning the sprawling Linux development and distribution network, the researchers from security firm ESET said. After obtaining the cryptographic hashes for 551 user accounts on the network, the attackers were able to convert half into plaintext passwords, likely through password-cracking techniques and the use of an advanced credential-stealing feature built into the malware. From there, the attackers used the servers to send spam and carry out other nefarious activities. The four servers were likely infected and disinfected at different times, with the last two being remediated at some point in 2011.

Should be at front.

comment 2y ago · link · parent

It is a form of strong typing because integer could be the length of your toe nail, a temperature or the seconds since the unix epoch.

Sometimes you really want to make sure someone is not going to introduce billion dollar bugs, by making the type different from the underlying representation. In Haskell that would be sth like

     newtype Temperature = Int

At other times, you just want to document in stead of forcing semantics. A contrived example:

    type AgeMin = Int
    type AgeMax = Int

    isAdmissible :: AgeMin -> AgeMax -> Bool   
    isAdmissible :: Int -> Int -> Bool          // less clear

comment 2y ago · link · parent

Impressive breadth and depth of information in just the README alone.

When this kind of stuff gets in the open like it does here, I expect rapid innovation and disruption from the crowd.

comment 2y ago · link · parent

> When it goes south, you're back to being a monkey plugging in cables and scratching your head.

That is if you rent rack space. If you rent bare metal and the bare metal has a failing disk, you file a request to replace said disk, and the data center engineer will be plugging cables, not you.

That means you have to worry about hardware failures, but you don't have the inconvenience of having to be physically present.

comment 2y ago · link · parent

What do you mean? The big bare metal providers have multiple datacenters with fat pipelines and peering. You can put those geo-separated servers in the same subnet. Europe and US is covered, it looks like Asia a black spot for Hetzner, I will give you that. I doubt that so many business have such size and global reach, that world wide latency is a priority. If it would be, the average site would not connect to 20 domains to load megabytes of javascripts, trackers and what not.

(Also, at Hetzner you can even rent their network hardware if you want to make custom solutions.

comment 2y ago · link · parent

There is no 'fin' in openkoda though? I could understand, because that will have to touch country specific bookkeeping requirements.

comment 2y ago · link · parent

Funny, I had to look him up to see what you could possible mean here.

comment 2y ago · link · parent

That is half the reason. JSON was limited to Javascript when SOAP/WSDL was king for data exchange. If I remember correctly, XML apis predates json in Javascript. IE5 and XML were really hot back then. xml.loadString() is equally simple.

Json got introduced because XMLHttpRequest was an IE-only component. Data exchange was done mostly between servers, back then the front-end was really dumb. Why xml got slowly replaced is because that for machine generated data, json proved to be sufficient. Any json library is easier to work with then their xml counterpart, exactly because of what we discuss here.

comment 2y ago · link · parent

Some additions are nice, but I have my doubts about where this is going. As usual, Google throws in tons of extra stuff. To compute the size, position and appearance of anything, engines have to deal with a growing list of instructions, that all brings conflict. We had floats, flex, grids, position, and now anchor positioning as well.

It strikes me that the more useful additions are implemented by Firefox, and the lesser ones not.

I had expected that by now we would have a super light (kernel) spec for SPAs, and the heavier spec for design heavy documents. Chrome cannot keep up with Firefox wrt CSS performance. I don't understand why Google is overloading its own camel; the web is not going to render faster with more added complexity.

comment 2y ago · link · parent

Interesting, that is a good load test indeed. If it turns out to be a regression in .net core, it would certainly make sense to file a bug on github.

comment 2y ago · link · parent

Jup, it is human ergonomics, but a mismatch for your average programming data structure.

I think that is one reason why json took of for exchanging machine readable data, xml is too expressive, and leans towards document authoring.

comment 2y ago · link · parent

Kotlin has it instead of _

    val numbers = listOf(20, 19, 7, 12)
    val multiplied = numbers.map { 3 * it }
    // [ 60, 57, 21, 36 ]

comment 2y ago · link · parent

I think in the Javascript version you have to check for null as well.

comment 2y ago · link · parent

Exactly, that is the «breaking apart» I was talking about. Xml is the more natural way for humans to express that particular use case.

comment 2y ago · link · parent

Would be interesting to learn more. It seems like you know your stuff well, but could it be that your ported code doesn't do things like it should be done in modern .net?

Like using the apis that fully utilize spans. Also, I have the feeling (but nothing tangible) that old .net and .net core do behave differently wrt async stuff too.

comment 2y ago · link · parent

A tree with properties indeed.

They vary in syntax and how they deal with scalars, objects and collections. Having to write 'myKey' is a bit unfortunate in json for example. Still, for any document larger than 20 lines yaml will fall apart easily.

Xml (dialects) mark the beginning and end of nodes explicitly, which deviates from json/yaml. Xml can represent nodes within the value, which is impossible for json/yaml. To convert such xml value to the latter, you have to break up such a node in fragments and represent them as a collection in json/yaml.

comment 2y ago · link · parent

The right question, as Avalonia is the gold standard for the cross-platform .net ecosystem.

Maybe this opinion piece might help: https://www.codeproject.com/Articles/5366945/Multiplatform-X...

His conclusions:

«Now what I mean by "better" - it (ed: Avalonia) allows considerably faster development, maintenance and support of the products. In particular:

   - It is a more powerful UI package allowing much more re-use and creating shorter code faster to achieve the same functionality. Part of the reason for that is that it is not confined to WinUI/UWP bounds - it is actually more powerful than WPF which is in turn better than WinUI or UWP. Another reason is that it has a better implementation with a lot of code re-usable across all of the platforms while Uno and MAUI essentially have completely different implementations for each of their platforms.
    
   - There are many features in Avalonia that are not implemented in Uno or MAUI, while I do not know a single feature implemented for Uno or MAUI that would not work in Avalonia. If someone knows a single feature available in Uno or MAUI but not available in Avalonia, please mention it in the comments and I will refer to it in this article.

   - Avalonia covers all the same platforms as Uno and more than MAUI does and has considerably fewer differences between behaviors on various platforms.


   - Avalonia is easier to switch to for an expert WPF developer than to Uno or to MAUI.»

comment 2y ago · link · parent

Deepspeech from Mozilla is open source. Did you know this one?

From the samples I listened, it sounds great to me?

comment 2y ago · link · parent

> The point is that the open source desktops do not even touch Windows in usability, quality, reliability and consistency.

I had a chuckle about this one. Seriously, none of MS crap comes close to a modern rolling release distro + KDE.

> Show me an open source O365 and you might have something fit for an SME or government.

Libre Office is pretty good, but its usability needs lots of work. To this day Libre Office still ships with templates that look like they were designed in 1998.

- You want a quick and dirty document or presentation that looks pretty good: MS Office is the winner.

- You want a large document with lots of figures, captions etc: Libre Office is the winner.Try to keep a larger document meticulously styled with named styles, MS Word will trip over tons of its bugs that lurks in the dark, and it will make an non-salvageable mess of figure placement, caption numbering, losing header formatting and what not.

What OSS software needs is more investment in UX. Libre Office needs a reality check here. In this respect KDE is a great outlier, as it looks great, is responsive and has tons of pro features that are discoverable.

comment 2y ago · link · parent

I am not elbow deep into Python ecosystem, but how many python code bases are fully type-hinted?

Maybe I am overlooking because I am not a pythonista, but when looking at this code [1] I see only some superficial hints. Looking at `_make_command`, I need to look inside the body to see that the first argument is expected (?) to be callable (it just ignores otherwise).

____

1. https://github.com/pyinfra-dev/pyinfra/blob/3.x/pyinfra/api/...

1
303132
45