Better HN
topnewbestaskshowjobs
Log inSign up

BiteCode_dev

24,628 karma · joined Oct 21, 2019 (7y ago) · 5,512 submissions

I write to save you time and effort when dealing with Python:

https://www.bitecode.dev/

Email: contact at bitecode.dev

Submissions

comment 4y ago · link · parent

I'm not vegan, so I never had a trouble with b12. As a vegetarian though, I do find that the omega 3/6 balance is harder to get right than when I ate meat.

On the other hand, most meat eaters I know have heavy deficient in many key nutrients because the average western diet is terrible, meat or not.

All in all, I think we have to put it in the context of trying to be vegetarian in a society that is optimized for meat eaters. It we go more plant base, I think there are plenty of solutions that will suddenly become more common, such as yeast, algae, etc.

Currently, it's logistically less convenient, and often way less tasty than just eat cheese or eggs for me. But that's because we made it that way:

- it's available everywhere

- the economy is based on it

- we are used to the taste, and our flora has adapted to it

It doesn't mean it can't go fine if we organize for it.

comment 4y ago · link · parent

I think it's important to think of us as a specie. We share the responsibility of this, since we consume the meat that drives this, and maintain an economic system that gives the incentive such behavior.

comment 4y ago · link · parent

Thank you for the tip.

comment 4y ago · link · parent

Cattle do eat grains as a supplement to grazing, a drought ration, or in lot feeding.

And since lands with grass is limited by space, and seasonality, we also do grow a lot of food for them.

E.G: UK stats for 2015/16 of soy imports (3.1 million tonnes) break down:

    - 1.1 million tonnes for livestock
    - 1.42 million tones for human food
    - 0.58 for non-foo products
That 35% of the imported soy, just for the livestock food.

comment 4y ago · link · parent

I agree, but you won't get 10% of our current meat production with free range meat.

In fact, we are cutting forest to meet demands for lands to grow cattle because it's still not enough.

If suddenly all meat would come from free range animal, the debate would be different, and I would use different arguments.

But I would actually be very pleased if we already just did that.

It's more realistic than expecting everyone to decide my diet is for them too, and it would already do a lot of good.

comment 4y ago · link · parent

How do you deal with copy/pasting text from the terminal?

Last time I tried textual, my users couldn't put anything in the clipboard from their mouse selection.

comment 4y ago · link · parent

Still, the way energy is circulating in the food chain, you need a lot more land and water for raising X calories of cattle than for the same calories of plants.

Not to mention transportation, anti-biotics, cold chain management, packaging, transmissible diseases, waste management, etc. are all a much higher concern for animal based food. In fact, even pesticides are worse on cattle, because any non food product tends to concentrate in the animal after a life of consuming it.

Meat is a luxury, like plane transportation.

3188.

Shadow: Rent a beasty machine accessible from anywere(shadow.tech ↗)

11 points · by BiteCode_dev · 4y ago · 9 comments

comment 4y ago · link · parent

In the same way python and js are basically the same.

comment 4y ago · link · parent

I don't need evidence since from the beginning I'm insisting that it's my own assumption.

That's how assumptions work.

And I'm not focused at all on the IP theft, only on the backdooring.

People just started to focus on IP and the USA after the fact, because americans think the USA and money are the center of the world and see it everywhere even when they are not the main point of the conversation, but just examples.

comment 4y ago · link · parent

Well, let's count how many people the USA killed with 2 wars in Irak, one in Afghanistan, one in Vietnam and countless operations in South America. Or how they mostly put non white people in a privatized prison system that then exploit them. Or how their police is so peaceful and close to the population the entire country had a debate about de-funding it.

Sure, China is worse, but it does make a useful mirror. Like Russia was a useful one during the cold war.

comment 4y ago · link · parent

Yes, cancer is worse than diabetes.

Not the point.

The point of my comment is: I assume any gov to have such backdoor if they can.

comment 4y ago · link · parent

My original comment doesn't focus on the stealing IP part, only on the backdooring part.

comment 4y ago · link · parent

I never said I had evidence, I said it was fair play to speculate all gov do the same, given they lack of morale and fire power.

Which it is.

comment 4y ago · link · parent

It's just different use cases. Backdoors are more useful for targetted operations or specific data exfiltration, while plugging yourself to back bones is more useful for mass surveillance.

I don't even see why it's controversial to hold this opinion. Reading some comments, people seems to feel offended we could think that from the USA.

If anything, the USA are, with Russia and China, among the countries anybody in Europe like me would suspect the most about pulling things like this. The CIA and NSA have a terrible reputation, and the track record to support it.

We are talking about a country that went to war while lying about WMD against the UN vote, made money with south american cocaine while organizing coup after coup, elected Bush and Trump yet punished Chelsea Manning. A country that is still under the temporary 9/11 Patriot act, it used to mass spy on its entire population.

Of course I'm assuming the worse from them.

And yes, it's fair.

Actually, even if I were proven to be completely wrong in 10 years, it still would have been fair.

But I'm not even assuming that only from the US, but basically from any gov, including mine. Because history taught us that's what power does.

It's sane to be suspicious of people in power. Necessary for democracy, even.

comment 4y ago · link · parent

Yeah, I read those kind of comments before.

But then again, we got a PRISM, XKeyscore or NSO Pegasus coming out of the box every other year. So I stand by "fair play" to qualify my assumptions.

comment 4y ago · link · parent

I heard your type of argument about the US mass spying before Snowden, and surprise, we were not conspirationists after all.

So call that educated magical speculation.

comment 4y ago · link · parent

It's fair play to act like any gov is doing this.

E.G: Microsoft being American (and them being part of PRISM), I just assume the OS has a backdoor for the US gov. Now with Windows 10 heavy telemetry, it's even easier.

I work for a client doing chips for credit cards. Did you know they are now full blown computers that can run a light version of Java (Java Card) ? The company is building their own hardware and software, and just to get to a conference room, you need biometric access + badge + pin code. Pretty sure they send data to my country agencies in some way despite having to trick the banking system to do so for them.

Same from any software, server/cloud hosting or hardware. If it comes from a specific country, this country is most probably using it for intelligence. It doesn't even need to be on a network now, because there is so much interactivity with all devices. And eventually, one will be.

comment 4y ago · link · parent

Python will never have block expression, given how limited lambda is already, so that's not a concern.

comment 4y ago · link · parent

It's mostly useful when a function generates values then return them as a dict or when things are parts in different chained calculations before being included in the dict to save lookups.

comment 4y ago · link · parent

Nope.

comment 4y ago · link · parent

I kinda dig the new mapping syntax:

    { a:, b: } #=> { a: 1, b: 2 }
JS does it { a, b } and I find it very convenient, because if you code well, you usually have related things with the same name and repeating the name twice is just boilerplate.

Because of the set syntax in Python, the JS syntax can't work, but the ruby one would be nice.

Since Python keys can be anything, but usually are strings (and hence are quoted), I would probably invert the ":" though:

   { :a, :b }

comment 4y ago · link · parent

It's actually fantastic to receive such email. You can answer:

"We are happy to provide you with support regarding this issue for $5000/day"

Then if they accept, proceed to do nothing for 10 days, then reply you find none of your code is impacted and they are safe then bill them $50k.

comment 4y ago · link · parent

And that's also why everybody use JSON to configure CI, and use YAML for REST API.

comment 4y ago · link · parent

Who cares about cigarettes being dangerous? People already smoking knows that.

What's the new risk?

comment 4y ago · link · parent

Guess what was not removed?

    1 : 1,0
    2: 01
    3: 1.0
    4: 1O
    5: 0b1
    6: 0x1
    7: 0i1
    8: hey,
    8.0: oh,
    version: [3.1, "3.1", 3.10, "3.10"]

Gives you:

    {
    "1": "1,0", 
    "2": 1, 
    "3": 1.0, 
    "4": "1O", 
    "5": 1, 
    "6": 1, 
    "7": "0i1", 
    "8": "oh,", 
    "version": [
        3.1, 
        "3.1", 
        3.1, 
        "3.10"
    ]
    }
YAML turns raw literals into strings, except when the string matches a certain format. Then it may turn it into other things, like int or float, and you better know all the rules by heart and be attentive. And not introduce any typo, which of course no human ever does.

comment 4y ago · link · parent

This will destroy the trust people may have in any author's claim as well...

comment 4y ago · link · parent

Rich is the low level part, for list select or viewports, you need the high level lib from the same author: textual (https://github.com/willmcgugan/textual).
1
106107108
184