Better HN
topnewbestaskshowjobs
Log inSign up

_54qb

317 karma · joined Jul 14, 2017 (9y ago) · 133 submissions

Submissions

comment 6y ago · link · parent

EDIT: Just to be very sincere and transparent. The content of this post has been removed to avoid further discussion. I do not think my kind of views are welcome in this community.

comment 6y ago · link · parent

I still can feel very lost when refactoring a complex clojure system as opposed to something like Rust, because you have very little information about all the places in your codebase where a certain assumption was made.

You can go crazy and spec everything, in fact that can help, but:

- In practise, nobody does it

- Specs come with no guarantees. They could even be wrong.

- The official implementation stubbornly insists on not checking return types, so half of your annotation may just be glorified documentation (although you can use third party libs like orchestra)

Just imagine: Add a new required field to a spec, and get a convenient list of source code locations that you need to review. That's the promise of a statically checked system. It's not a silver bullet, but not having this leads to what I like calling "refactor anxiety" (i.e.: did I handle all cases?)

I still love clojure no matter what. I think in practise you can express so much, so elegantly, and with far less code, that your project size is always sorta manageable.

comment 6y ago · link · parent

For those who migt've missed the reference: https://m.youtube.com/watch?v=o0Wvn-9BXVc

comment 6y ago · link · parent

> He doesn't force anybody to use the Epic Store. Unless you want to play Fortinite (which is made and published by Epic Games) or games that have an exclusivity contract with the Epic Store.

So you're not forced, except when you are... I think the GP meant people is forced to use their store to play certain games. Games not developed by Epic, which were meant to be released in other stores and operating systems. You can choose not to play those games. Many people do in fact just that. But that was not the point.

Of course Tim Sweeney does not force random people at gunpoint to use their store. That's never going to be the case because there's laws forbidding him!

comment 6y ago · link · parent

Specter is always on my clojure toolbox. Not only it makes transforming arbitrarily nested data painless, it also is usually more efficient than the average hand-rolled code!

A great example of why macros in Lisp are powerful, and how they empower you as a user even if you never write one.

comment 6y ago · link · parent

Fair enough. But that was not my rationale, it was just a made-up corporate rationale that is not too far from what I can observe in reality. Take, for example, lobbyists in right-to-repair hearings. They use arguments like this: "If we let users repair their smartphones, they might hurt themselves, so it must not be allowed and instead always performed by a skilled technician". The implication always being, that if users hurt themselves, they will sue.

> Anyway I guess people can also buy their own computers if they want to play outside the sandbox.

My point was, precisely, that we might get to some point where this is no longer possible. Imagine they stopped selling what we today call "PC", and instead everything is closer to smartphones or tablets. There would be no way to setup a development environment on the machine. There's no sudo access, no compiler toolchain...

comment 6y ago · link · parent

While impressive technology, I still get that eerie feeling of my computer's ownership being slowly taken away from me. The problem is not Github codespaces offering us an alternative to traditional dev environments, the problem may be 10 years from now, when someone says: "All the coding is done on the web nowadays, why should we allow users to install compilers and dev tools on their machine? They may use those for hacking and compromising the security of our systems. They may hurt themselves in the process and sue us! Better not take risks". I'm afraid to go into a future where this is normal...

comment 6y ago · link · parent

Worth mentioning that, apparently, this is the programming language that will power DFINITY, an ethereum-like network for distributed computing.

comment 6y ago · link · parent

I find the name of the NPS_0487a3ac_throttle cookie suspicious enough, but the article does not comment on it. Is this a common practice? Throttling the website for users who uninstalled your application?

comment 6y ago · link · parent

Genuinely curious. You insist a VCS is not how the industry operates. But then how do those AAA devs manage synchronizing changes across a team of several hundreds of people? I imagine there must be some equivalent to VCS that better fits the gamedev indurstry. Or are people just throwing flash drives around the office?

comment 6y ago · link · parent

To be fair, S-expressions are not a made up format and in fact predate most other formats you mention.

comment 6y ago · link · parent

What should they do? Static analysis would be nice, but it's probably too complex to adopt in that kind of codebase.

In the end, the only viable option is to forbid this behaviour, and document a rationale so nobody will enable it back again.

Perhaps they could make this warning bigger, but other than that...

comment 6y ago · link · parent

I stand corrected. I did not know numba and assumed it was similar to numpy and others, which do wrap C.

I still stand by my comment, though. We need to discuss technology by its own merits. Of course I'd also choose Python for an ML project any time of the day! But that's because Python won the popularity contest a long time ago. When discussing technology I think it's worth trying to see past that.

Exposing a C FFI may be flexible in the ways you mention (i.e. You can call the function from many languages). But I think we miss a lot on explorability. Let me elaborate a bit more with an example: Most people is not reallistically able to drill down on some implementation details when using neural network libraries like TensorFlow (which is not the whole field of AI, just an example!). At some point, if a feature is missing, you have to leave Python, learn a new language, and get a whole dev environment setup started. At that point, you're not using Python anymore, so I don't think it should count as a Python merit that you can do it.

That being said, I don't know Nim enough to validate whether using it for this would be a good idea.

comment 6y ago · link · parent

The "python is performant because you call into C" argument implies that whenever any fundamentally new algorithm is developed you need to do it in C. This is actually gatekeeping things like machine learning to the few that can build and maintain the C code for libraries like TensorFlow.

Python is the ultimate glue code scripting language, but you can't build a performant algorithm without an efficient C implementation underneath. With languages like Nim taking performance seriously, people could build a complete implementation of such algorithms from the ground up.

This doesn't just mean the core implementation would be easier to maintain. There's a huge gap between people who use the python libraries and people who build the efficient code that runs underneath. This clear division between those two worlds is what makes it difficult from people to jump from one side to the other, and that's why I'm calling this gatekeeping.

Not necessarily Nim, but using a performant, simple high level language for this sort of tasks would blur this divide. In practice, this means AI researchers in universities could dive into the code that's actually doing the work, not just play with the toy buttons and levers Google and Amazon left for them to play with.

comment 6y ago · link · parent

I, for one, think the HTML API (as in, the interface presented to the programmer, not talking about any other API meaning here) couldn't be worse.

How many attributes do you need to enable to place two pictures side by side in vanilla CSS? Is that composable, would the same set of flags work for two paragraphs? What about two tables?

HTML/CSS was never designed for the web we have ended up with, and I don't see how flexbox and any newer standard is making developers lives anything but miserable.

comment 6y ago · link · parent

Since when are linux users "famously considered cheapstakes"? I was under the impression it's quite the opposite!

Of course, all generalizations are just that. But if anything, the linux gaming community has many passionate people more than willing to pay for games on their platform.

Most game developers don't port/build for linux due to the lower market share. A way simpler explanation that obeys basic market rules.

OTOH I know more than a fair share of people who exclusive pirate all the games they play on Windows. I also don't know many people who bought a license to windows itsellf.

comment 6y ago · link · parent

Yes, auto-updates are built into snap. Also, the "solutions" to disable it are pretty much workarounds [1]. All this looks like just what made me stop using windows 10.

[1]: https://askubuntu.com/questions/930593/how-to-disable-autore...

comment 6y ago · link · parent

(Answering a bit late, sorry I missed your reply!)

I still don't get it... How do you know when to activate the trap handler if you're not checking every time? It's not enough to wait for an error condition (e.g. an invalid pointer). If it's an array of integers, and I sneak in a string in there, what's stopping the JITed version from treating that pointer as an integer?

comment 6y ago · link · parent

But DeepSpeech has already been trained with millions of data samples!

I'd feel way better about it if they went for a slightly worse DeepSpeech based implementation, but kept it working in the free software spirit they have been known about for many years.

Also, for desktop devices inference on DeepSpeech is cheap enough, so they could even go the extra mile and work on some Wasm magic to get offline recognition.

That's the kind of work I'd expect from Mozilla! Not wiring up your data collection to the Google Cloud APIs and call it a day! I'm genuinely disappointed with them...

comment 6y ago · link · parent

Wow, that's extremely accurate! Disabling the tab bar has also went this exact route (when you use a tiling wm with tabs, some people like to disable browser and terminal tabs as it's redundant)

I managed to do it with a combination of two extensions, some about:config flags and userChrome.css some years ago, but it may already be broken by now.

Mozilla keeps trying to get to the mainstream market while ignoring its dedicated users... The only times I got people to switch over to firefox was because things like ublock support on android. Nobody I've talked to has ever been interested in their side products (Pocket, that file transfer thing...), and something tells me this new voice engine is going to go the same route.

OTOH it's nice Mozilla is working on improving their voice dataset (which powers the DeepSpeech model, iirc). And again kind of sad they use Google Cloud while they could have their own version...

comment 6y ago · link · parent

Genuine curiosity: How can it check the types at the call side quickly? Let's say I have a function that averages an array of floats. Does the JIT have to check each of the array's inputs to have the right type? That looks like it could become a serious overhead.

comment 6y ago · link · parent

But the opposite could be argued as well? Taking on a new disruptive problem is a huge risk, and big corps are generally risk averse...

comment 6y ago · link · parent

Not trying to take merit away from VSCode, but emacs and tramp mode also do that. And not just with remote machines over ssh, docker containers work as well. Also docker containers over an ssh connection (or whatever crazy combination you may need).

You get latency-free editing because the file is edited locally and sent to the server on save. Simple implementation but highly effective.

comment 6y ago · link · parent

Your 15/30ms is close to the timings of 30 vs a 60fps videogames. While testing for a single frame you'd probably get very mixed results, most people can distinguish the pattern of when the framerate drops from one to the other. That looks more close to me to the audio example, since it's a constant stream of visual information.

comment 6y ago · link · parent

To be fair, there's a great use case for migrating COBOL to python. But I don't think banks would trust an automatic conversion done using ML...

comment 6y ago · link · parent

This was very apparent when reading the generated stories [1].

Especially the shoggoth cat dialogue, I found that one really creepy. The fragment below comes straight out from the uncanny valley:

Human: Those memes sound funny. But you didn’t include any puns. So tell me, what is your favorite cat pun?

AI: Well, the best pun for me was the one he searched for the third time: “You didn’t eat all my fish, did you?” You see, the word “fish” can be replaced with the word “cats” to make the sentence read “Did you eat all my cats?”

[1]: https://www.gwern.net/GPT-3

comment 6y ago · link · parent

As a spec user in production, I must say it's very nice usability-wise and can help alleviate most of the issues coming from a lack of a type system.

But god it's slow... Some static analysis support would also be hugely appreciated. Not being able to check everything doesn't meen you shouldn't attempt to check something! Many specs are type predicates anyway.

comment 6y ago · link · parent

I've had a reviewer in a (scientific) journal tell me some paper is relevant, and thus I need to cite it, because it "appears on their top google results".

People should be educated on the huge bias introduced by personalized services like google.

comment 6y ago · link · parent

I used FreeOffice for a while, but strangely enough, I saw it struggle with medium-size documents. At some point, there were several seconds of input lag.

Apart from that issue, their goal is MS Office compatibility, and they deliver quite well. Even more obscure features like review mode and highlighting of changes worked without issues, and I was able to exchange documents with MS Office users.

comment 6y ago · link · parent

Sometimes the views you see here are extremely biased. It's normal, we use computers all day, we are experts. We learn and adapt.

For some people, a computer is just another tool they've been recently forced to use in order to live in society (in many countries, you cannot longer reallistically do your taxes without a computer for instance).

As programmers, and especially those who work in UI/UX design, we owe some respect to those people, because those who take the extra effort to learn a radically new technology at an elderly age, are completely, utterly confused when companies decide to move stuff around just for the sake of it (or as a result of A/B testing?).

And yes, sometimes the only way I've been able to teach people how to operate a computer is by literally describing the UI and the icons. In my experience, finding a good way to teach via fundamentals to someome who doesn't care is extremely difficult. And believe me that I've tried it many times.

OTOH, note that none of my points apply to early education (school). In that case, I completely agree we need to teach the fundamentals, not UI.

12345