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

Sometimes in the middle of the sentence, I write True or None, out of habit.


This is illegal in Europe, since you can't add somebody to a list without their consent.

As usual, I know it's trendy to say on HN the EU is killing innovation with all the regulations, and there is truth to that, but there is also great customer protection, which seems constantly violated in the US.

So yes, in the US, companies can flourish, but it seems the consumers are second-class citizens compared to companies.

That's why it's nice to have both: eventually, EU regulations leak out to the rest of the world, and the US innovations reach us.

We pay the price by having a weaker economy, they pay the price by having less dignity in their life, but there is eventually balance.


If your "innovation" is at risk from consumer protection regulations I question whether it's a good innovation.


No. Regulations are required so companies produce value rather than exploits. There's no stopping the exploits, especially in an environment where $$$ === speech, but regulation is required for companies to produce value for customers.


There are many examples of successful companies that fall into that category.

Sometimes an innovation needs critical mass to work - social networks for example. LinkedIn famously got big by being extremely aggressive on how they mined your contacts. You'd get sued to the moon and back in the EU for this behaviour.

LinkedIn is big now, it has established itself and no longer needs to be that aggressive. Any European player that tried to enter the market with a less aggressive stance had no chance - they never reached that critical mass.


And we are all so grateful that LinkedIn's aggressive innovation was allowed to flourish.


Bayer would have never invented heroin, if there had not been a market for that and there is a market for that because its a great product. The greatest actually, surpassing all other products, including human society and its the purest form of capitalism. All other products and businesses are just pre-cursors for this one.

https://en.wikipedia.org/wiki/Heroin#History


A good example is the US "health care" system. It's a meat grinder that exploits everyone and sort of pretends to do what it's supposed to through regulation.


Since the people making the innovations and regulations are different, I fear there’s no way to implement regulation that doesn’t lead to suboptimal results.

And to be clear, when I say suboptimal results I mean misery and death in large quantities.


Yes, but the innovators' incentives don't always align with the needs of the people the regulations should protect.

Regulation are a necessary balance, otherwise the innovators become so powerful they eventually concentrate all the power and privilege and make weaker people pay for it.

Chlorofluorocarbons were an innovation for some times, then we needed regulation to save our ozone layer. Industrial wouldn't have stopped using it.

It's a fine line, constantly moving, an nobody will never be perfectly happy about it.


> We pay the price by having a weaker economy, they pay the price by having less dignity in their life, but there is eventually balance.

It doesn't need to be black or white.

A country can have decent consumer protections without e.g. a tax policy that is hostile to startups. But many EU countries are seemingly uninterested in the latter — presumably because there are no votes in it.


From reading all these messages, I'm curious if an American couldn't try sending a GDPR deletion request by email to some of these organisations. Sure, it only technically applies to European citizens, but it applies to them anywhere in the world — do they really have it on record that you're not one? And of course, if they do a Home Depot style block-all-EU-ip-addresses thing they probably wouldn't care. But in those cases they still break the law, they're just reasonably sure that it will never be enforced against them.

I would imagine the potential legal risk for some orgs would be enough to make them comply, especially those with a European presence (and surely a university like Brown must have both at least one legal entity and enough alumni in the EU for them to count). The worst they could do is say no.

it technically applies to anyone resident in the EEA and UK, as well as citizens of the EEA and the UK abroad


IPython is huge: 15,5 Mo without any extras.

Python is 150mo. Hard to justify that 10% of the lines of code, source of bugs and maintenance only go to the shell.


I am curious about your suffixes.

I mean, I understand the post fine, but I have never seen the units (Mo, mo) before and am wondering where they came from.

I would guess mo is megabytes(megaoctets?) and Mo is gigabytes(is ipython really 15GB? yikes)


I think I remember seeing something about MB=Mo in french, the casing is probably safe to ignore in the gp as ipython is definitely not 15gb



yeah sorry mb, french comming out


OT, but I love your newsletter!

Didn’t notice your username until you wrote “French”


That's lovely to hear.

It's great hearing it in general, but given the HN community is picky, it feels even better.


Sure, the statistical method matters, but I think it's missing the forest for the tree.

Any metric will differ: bpm, sleep phases, body temp, etc.

Because those devices are not super accurate, and the context you wear them in doesn't allow them to be anyway.

If you were to do a respiratory polygraph with proper medical equipment you'll find different values from your Apple Watch or Oura ring for the times you wake up. But you'll also notice a gap between getting the values at home and in a hospital, because in the hospital the nurses will check your equipment setup.

Those devices are great to give you a big picture, follow general trends and understand your own body. That's it.


Note that French does have a tense for gossip.

You can say: julie aurait couché avec pierre hier, meaning julie allegedly selpt with pierre yesterday.

But it's not a cultural thing to use it outside of tv or books.


Now that you say this, the exact same thing is used in Dutch to indicate something is a rumour.

Ze zouden met elkaar naar bed zijn geweest.


French learner here: I read that as "Julie would have slept with Pierre yesterday." I take it there's some mood subtlety I'm missing?


Context. Or even the lack thereof. In this case the use of the conditional implies an unstated condition, the "if I'm right about it" condition.

This is more idiomatic than grammatical. It's the same in Spanish. In English we don't have this sort of idiom, so that phrase doesn't translate very well.


How would that be phrased in Spanish? Are you talking about the future tense in constructions like "Será que...?" or "Estará volviendo" to say "he must be returning"?


Julia habría dormido con Pedro anoche.

As explained, mood is implied. This is a common pattern in news reports, etc., not quite colloquial


Yeah, it's very common in news because it's a very concise way to indicate the possibility of doubt because it's just "gossip" (as the title here would have it).


Yes we do, “…will have slept…”


Merci.


What you say is grammatically correct. But if you want to find out whether it implies gossip or past conditional, you need to look at the context.


Il paraît que quelqu'un voudrait faire croire que ce genre de phrase n'est employé que dans des œuvres littéraires et télévisuelles. :)


Ce quoi on dirait n'est pas vrai du tout.


"On diraît" est utilisé par les enfants de 6 ans pour parler de jouer un rôle, mais pas vraiment par les adultes pour reporter un commérage.


BS (Baliverne Saugrenue)!

La tournure correcte, "voudrait" n'est en pratique que très peu utilisée pour le témoignage indirect au quotidien.

"Il paraît qu'on a voulu te faire croire que ce genre de phrase n'est employée que dans des œuvres littéraires et télévisuelles" est beaucoup plus réaliste.

Indicatif + participe passé, ou imparfait. Le conditionnel est surtout utilisé pour l'hypothétique non lié aux ragots et encore, par des gens comme dans ce thread qui se soucient de leur language.

Par contre, au journal de 20h: "on dit dans les milieux autorisés qu'un accord secret aurait été signé" est tout à fait courant.


And it was very condescending as well, like explaining to you that the sky is blue while you were debatting of the weather implications of the cloud shapes.


Oh! I am blind, and due to my disability, am treated in a condescending way on a regular basis, so I didn't even notice. But now that you point it out... I can see what you mean. However, being used to being treated like a small child by random (supposedly well-meaning) strangers is so normal to me, I failed to recognize the pattern...


Haven'y tested, is it blocking youtube ads?


Every companies have linux servers with crazy uptimes.

My server never crash, my linux desktop do.

I assume they don't put BSD on their client's laptop.


If you need a stable desktop put z/OS on it, you normally don't reboot those til the end of the systems lifetime.


> If you need a stable desktop put z/OS on it

You mean use a mainframe remotely ?


Now that you say it, that would probably the simpler way.

Or use MVS TK5 ;)

https://www.prince-webdesign.nl/index.php/software/mvs-3-8j-...


TypedDict features are nice, but the syntax to declare it is aweful


Have an optional one is nice for python. Would suck to be forced to use it all the time.


Yes. I like to use type annotations on functions because it's documentation. If you use good names then it makes docstrings redundant. I'm thinking something like this:

    def bounding_box(points: list[Point]) -> Box:
        ...
A decent IDE will be able to quickly jump to definition of those Box and Point etc. if you need it. This is much better than having a docstring and having to look stuff up manually. The fact you can run a static type checker like mypy is a bonus!

I also really like being able to document the imperative code like `def do_thing() -> None`. Of course, it's completely up to the programmer to follow the rule of not doing side effects in routines that return something.

But having to do it everywhere? Ugh. I don't think people realise how powerful duck typing is for doing polymorphic code. I can write something like:

    def mean(things):
        return sum(things)/len(things)
And I don't care what concrete type you pass me as long as it supports `sum` and `len`. What am I going to do, define an ABC or typing.Protocol called `ListLike` or something? Hell no, I've got better things to do.

But of course learning when to define static types vs when not to comes down to experience. Python treats you like an adult. I feel like a lot of people who want static typing everywhere want it as training wheels for other devs they don't trust to make the right judgement calls.


You picked a poor example for `mean` because there's a very easy answer: collections.abc.Sequence – typing.Sequence in earlier versions – an object that supports __getitem__ and __len__. You can check the collections.abc documentation[1] for the available protocols; you might be surprised about how much they cover already. I often use Sequence/Iterable or Mapping as parameter types instead of concrete types like list or dict.

> I feel like a lot of people who want static typing everywhere want it as training wheels for other devs they don't trust to make the right judgement calls.

Now, I want it because it makes my life a lot easier. It finds many classes of errors before runtime and improves auto-completion in my editor. For most programs, it's not a lot of effort. The frustrating part is interfacing with untyped libraries while using strict type-checking, but thankfully, more and more libraries are adopting typing. The type system itself is fine: most things you want to express are doable, but it's not at the same level of complexity as Typescript. It's certainly a better type system than Go's for example.

[1] https://docs.python.org/3/library/collections.abc.html


Hmph, I knew someone would point out that `Sequence` exists or whatever... The point was really that this could be a new type that isn't fully captured by something built in.

As for `collections.abc.Sequence`, using an ABC sucks because then you have to define a class and inherit from it. I don't want to do that. I just want to pass something that conforms to the duck type. Are these now also defined as structural types/Protocols?


> But having to do it everywhere? Ugh. I don't think people realise how powerful duck typing is for doing polymorphic code.

Duck typing is indeed powerful, but it does not need to be a runtime check.

> What am I going to do, define an ABC or typing.Protocol called `ListLike` or something?

Yes, how am I going to know what types I can pass to mean instead? I would go to the extreme of saying that a lot of python code should be type annotated (if annotated at all) with protocols instead of concrete or base classes.

Of course until type checking is properly integrated in the interpreter this is all kind of pointless.


> Yes, how am I going to know what types I can pass to mean instead?

Oh, if I'm writing it for you (ie. I'm writing a library) then I'll put documentation (probably as type annotations, as I said in the first half of my comment). But a lot of code I write is just for me, or is going to be part of a completely self-contained project and it would be obvious from context what to pass. Like I said, it's a judgement call that Python expects you to be able to make.


if only there was some way for this structural documentation to also cause incorrect programs to be rejected


As an undergrad, Python was my favorite language. Now it's one of my least favorite because of dynamic typing and the poor dependency management.

Python dicts, when used as composite types or records, are a literal hellscape. Grepping through the code to find out where stringly-keyed fields get written takes way more time than thinking about types ever would. These should be structs.

Static typing has so many advantages:

- It lowers the software defect rate. All type errors are caught for free at compile time instead of runtime. This makes the software strong and rigid instead of brittle, and it removes an entire category of tests you would have to write and maintain.

- Static typing makes code maintainable for other people, including future you. It's self-documenting. You know precisely what things are in the immediate scope.

- Static typing makes bug-free automated refactoring with tools possible. There is no greater pleasure than mutating code via its AST.

Static typing is not hard, either. Most typed languages don't require type declarations except in structs and function declarations - that's really not a lot of effort.


a type system is useless if you have no guarantees whether it will be used by any code you use. And if any code that declares types can violate them at will.

Optional is equivalent to no type system at all, in my opinion.


Just because a type system is optional doesn't mean it doesn't do anything, it just means that you can control how much checking you get, both in terms of the code that is typechecked and how strictly it is checked. Avoiding some type errors through type checking is much better than not having any type checking. Or put another way, optional seat belts are much better than not seat belts at all.


except in the real world, seat belts are mandatory. Because not wearing them is always a net negative.

giving me some confidence is completely useless on a large scale, especially because the type system could literally be lying even when it does give me something when it is optional and unenforced (an external linter does not count as enforcement, because it is not exhaustive). I still have to write tests for everything to check types, or run some external type checker which is guaranteed to not be able to catch all errors because the language semantics don't even allow for it.

giving me full confidence is not. In typed languages, if the compiler (not some external tool) says there are no type errors, then there are no type errors. I'm not "reasonably confident". I'm sure.


Most people using strong typesystems care less about safety of imported code and more about usability of their own codebase.


i also care about usability of the dependencies for myself, the dev. If the dependency doesn't provide type information, I can miss bugs in my own code.


I guess you could just write the program in Python, then have ChatGPT automatically translate it into a strongly-typed language.


That misses the primary reasons many people use Python: the ecosystem and network effects. I would not use Python if it weren't the only language my colleagues know (many of them not computer scientists by training) and if it didn't have the best (or second/third best) libraries for almost everything.


What is ChatGPT written in?

Because it would be hilarious if ChatGPT was itself written in Python.


I have no inside knowledge. But given the performance and scale chatgpt runs at (and the caliber of the team), I think it’s safe to assume a lot of their production code is written in C++ / cuda.


Python is really popular for both training and inference, and in both cases it uses native-compiled libs under the hood to ameliorate performance problems. I mean, maybe they’re chasing the last few % now, but it looks to me like most of their R&D is focused on their models and their interactive capabilities.


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

Search: