Better HN
topnewbestaskshowjobs
Log inSign up

grumpyprole

4,485 karma · joined Jun 30, 2015 (11y ago) · 2,043 submissions

Submissions

comment 8y ago · link · parent

> whole UI/UX thing on Linux just can't be compared to macOS and Cocoa.

Beauty is in the eye of the beholder. I much prefer the look and feel of my i3/polybar setup. As a professional developer, I am not the target audience for Apple's UI.

comment 8y ago · link · parent

If JOOQ is anything like LINQ-to-SQL (and it certainly looks inspired by it), then it isn't an ORM. It's a typed query language with a one-to-one mapping to SQL database tables/views. This gives us the low-level control of SQL, but with the ability to build our own abstractions and compositions using the host language. ORM's are frameworks (bad), JOOQ is a library (good).

comment 8y ago · link · parent

> Despite the rhetoric about "freedom" the GPL is a huge disincentive for developers to participate.

The "freedom" references from GNU are with respect to the users of the software, not necessarily to any entity that may participate. It's perfectly possible for a proprietary closed-source product to leverage code from a BSD/MIT project to remove user freedoms.

comment 8y ago · link · parent

It depends largely on the ambient lighting. Dark themes are hard to read on my bright sunlit train journey and bright themes are often too much for a dimly lit room. I switch between both.

comment 8y ago · link · parent

In OOP, objects have identity and state, having a remote endpoint with both these attributes is undesirable. IIRC, RMI also encourages one to abstract over the network, which can lead to very fine-grained, brittle and possibly insecure communication. This is somewhat ironic given that Sun itself authored "The fallacies of distributed computing".

comment 8y ago · link · parent

Not to mention, that case-insensitivity requires knowledge of locale/encodings and all the associated complexity. Not every language even has the concept of case.

comment 8y ago · link · parent

How are they extending Linux? It also sounds like you are asking them to, since you want to build Windows apps from WSL! A large part of the attraction of WSL for many, is that native windows ports are not needed.

Windows will never extinguish Linux, while it remains closed and proprietary, so I wouldn't worry about that.

comment 8y ago · link · parent

Normally, I use a Kinesis, so it would be thumbs for both. But on my laptop, yes I would use pinkies for both shift and alt.

comment 8y ago · link · parent

Expensive relative to what? Certainly not expensive relative to the rest of your computer and your office chair. It's a great shame that so many of us are willing to put up with the ten dollar keyboards that come complimentary with desktop machines. The keyboard is the primary input device used for many hours every working day. We deserve better.

comment 8y ago · link · parent

I wholeheartedly recommend the excellent Kinesis Advantage 2. It's relatively expensive for a keyboard, but absolutely worth the money for anyone who uses a keyboard professionally for hours every day. It also has featureful firmware and the ability to remap keys in hardware. I wish I had purchased one years ago. My typing is faster and feels like much less effort.

comment 8y ago · link · parent

Excellent advice. I also swap control and alt on both sides. This means I can reduce the amount of chording needed and use alternate hands together.

comment 8y ago · link · parent

Fixed-length string types are appropriate for a lot of low-level systems programming and are a lot safer and secure than C's null-terminated (potentially unbounded) strings. Null-terminated strings have caused problems not just for security, but have also added significant performance costs: https://queue.acm.org/detail.cfm?id=2010365

comment 8y ago · link · parent

Since GHC was created, we now have some very good parser combinator libraries such as Parsec and uuparsing-lib. Haskell is a very good language with which to write a parser by hand. But no doubt it would be a big project to move off happy and success isn't guaranteed.

comment 8y ago · link · parent

Yes goal posts have been moved, but not by me. Some of those papers may informally use these terms for static types, but it is certainly not to describe characteristics of dynamic languages. AFAIK, there is no classification in computer science that describes dynamic languages in this way. This has come from the dynamic language communities. None of those papers demonstrate that it is acceptable to call Python "strongly typed", in fact quite the opposite, as the technology discussed is not available in Python. Well, not yet anyway...

comment 8y ago · link · parent

OCaml was a big influence on the design of Rust.

comment 8y ago · link · parent

I missed off a smiley, nothing personal was meant by it. Some of your posts have appeared abrasive too. Let's just agree to disagree.

comment 8y ago · link · parent

> He definitely didn’t accuse people of dishonest advocacy.

Have you actually read it?

"Like most marketing tactics, it’s designed to confuse, rather than enlighten, and to create an impression, rather than inform."

comment 8y ago · link · parent

That looks like a random list of papers. Which one are you claiming defines or even discusses "strong" or "weak" typing? AFAIK those terms have no real definition in type theory.

comment 8y ago · link · parent

As I said, the link I posted contains the detail. If you've read it then perhaps you'd care to comment on it instead of posting successive personal attacks. I suggest that you not take my opinions (or Harpers) so personally.

comment 8y ago · link · parent

Perhaps filepath was a bad example for Python, as it has assertions. Zenhack actually made the same point and explained it better than me. Your runtime assertions (what you call "strong dynamic types") are a feature of the libraries you are using and a few built-in primitives. Python does not really have any facilities to talk about types. Using strings as in my example, would be "weak typing" in your terminology, but as you said, this is possible in any language, even Haskell. Therefore I fail to see how strong/weak is a language property. We are therefore left with static and "dynamic types", which Robert Harper argues should be statically typed and statically unityped.

comment 8y ago · link · parent

I posted a link by Professor Robert Harper, I guess you didn't read it. This has been a discussion about terminology, so I'm not sure you can claim anybody is factually incorrect.

comment 8y ago · link · parent

Go read the link I posted by Professor Robert Harper before accusing me or anyone else of not understanding type theory. Whether you like it or not, technology does compete for mindshare. Haskell and OCaml are also free software.

comment 8y ago · link · parent

>The classification is established terminology in Computer Science

No. It is terminology used by the dynamic language communities, not by academics.

comment 8y ago · link · parent

It's not FUD if someone posts an opposing viewpoint. My point was that some of the terminology used in this community is rather disingenuous. Python has a lot of strengths, but let's also be honest about its weaknesses.

comment 8y ago · link · parent

This is about being open and honest to stakeholders about Pythons strengths and weaknesses. Sure, I won't ever get the terminology used in your community to change, but at least you will know that there are people who find it rather uncomfortable and disingenuous.

comment 8y ago · link · parent

Your classification is based on a trivial expression involving primitive types. What would most Python code do if one tried to append a SQL query to a filepath? Since both will likely be represented by strings, it will return garbage, "weak" in your definition. Whether it crashes or not in any particular implementation is not a feature of the language.

comment 8y ago · link · parent

There is no static/dynamic axis for types. A dynamic "type" as you call it, is really a runtime tag. All languages are static languages. "Dynamic" and "dynamically typed" are IMHO, marketing terms. There's nothing that "dynamic" Python can do that I cannot do in a typed language using runtime tags, string keys and variants.

comment 8y ago · link · parent

The confusion is no doubt intentional in order to make dynamic languages sound safer than they really are. There really is only one type: PyObject.

comment 8y ago · link · parent

Some large investment banks are writing millions of lines of non-trivial code in Python. Perhaps because management heard it was "strongly typed".
1
434445
69