Better HN
topnewbestaskshowjobs
Log inSign up

sametmax

16,803 karma · joined May 21, 2012 (14y ago) · 4,248 submissions

French blogger about Python and porn, which strangely go well together (http://sametmax.com [NSFW] [FR])

Phone + not being an english native speaker can result in serious comment injury.

Submissions

comment 3y ago · link · parent

Another one you can't use: entry points.

In theory, they would be the perfect plugin system, but in practice, they are so slow if all your stack add a couple of them, Python start up takes seconds.

And this is why we are all using the .pth hack.

comment 3y ago · link · parent

No it's not. Half of reddit is back like nothing happened.

And the rest will follow.

Like every outrage on the internet, it's a tantrum, not a protest.

Because a real protest costs a lot to the people protesting, and you quickly see through virtual signaling once the bill comes due.

comment 3y ago · link · parent

I often wish they make this game a TV show or even a series of movies, because the scenario, beyond the fact it's amazingly good, has potential for a lot of new arcs, thanks to the very concept of the game.

Characters scream for a bigger screen, with colorful personalities and back stories, plus they got a design made to scale to awesomeness.

And with the world building, you got a solid base plus endless possibilities.

I enjoyed the game very much, but let's face it, it's too old for most new gamers to appreciate.

comment 3y ago · link · parent

Personnally, I didn't commit because the gem ecosystem was hit or miss, and the culture was about getting things pretty instead of robust (e.g: nice docs but monkey patching everywhere).

Plus on the long run, parskng ruby is difficult for my brain because of optional parenthesis.

Enventuly I sticked to python. I know people critize python packaging a lot, but it was the least of evils in 2010, much better than the competition.

comment 3y ago · link · parent

I think lagging behind is better than a wrong correction.

comment 3y ago · link · parent

I assume they mean a sticly footer.

comment 3y ago · link · parent

You can train GPT 2 on whatever you want, it will give you the wrong answer for everything.

The real magic arrived with GPT3, which is proprietary, so it's fair to assume your audience understands this and imply it.

comment 3y ago · link · parent

For a moment I though you were talking about Michelin stars, and I got confused.

comment 3y ago · link · parent

Unlike mine, obviously. I'm very serious.

comment 3y ago · link · parent

Also, the common people has awful taste, and is terrible at understanding a situation from another point of view.

This is why trip advisor is so useless, at least in France.

Between the vocal unhappy outliers and the happy idiots that think those french fries coming out of the freezer were delicious, the noise/signal ratio is abysmal.

comment 3y ago · link · parent

Yes but in that case, they at least answer to you and you can have a human to human discussion.

comment 3y ago · link · parent

Indeed. I tend to force myself to write the following:

- It will be easy => I will guide you through it

- This will make your life easy => It will make your life easier / It will help you

- To do X, simply do Y => The most common way to get to X is first to do Y

comment 3y ago · link · parent

The problem is a lot of it is not publicly available. E.G: I asked chat gpt to help me install Python on Ubuntu 22.04, and it failed miserably.

Why? Because 22.04 is recent and many pitfalls it comes with haven't been much documented yet.

And it also don't know what is never written, but implicitly known if you deal with a lot of beginners. E.G: people get utterly confused with *args and **kwargs in Python, because it can be used at 2 different places, and depending of those places, it does completely different things. The latter is well documented, but that the brain of people cannot grok it is not.

So chatgpt will explain the same things as most of the doc, without realizing that what it needs to do is to warn humans that they are going to be confused and how to avoid it.

Humanity has a lot of implicit knowledge.*

comment 3y ago · link · parent

Like "otherwordly", obviously.

Never use "otherwordly" ph'nglui technical documentation, ngnah ymg' risk s̵͖͕͓̒̾̾ǘ̵̢̺͓͊́m̵̟͙̓̒̚m̴͉̠͖̈́͊͠o̸̞̺̻̾́̀n̵͖̻͓̓̔i̴̢͚͕̿̕͝n̴͇̞͎͒̀̚g̵̢̟͙̾̚͝ z̴̪̠̟̾̿͘a̸͇̞͙̔͌͛l̵̢̟̘͆̒g̴͓͔̀́̿ö̵̪̠́͑̓.̴̢͙̪́͝͠

comment 3y ago · link · parent

And it's not going to improve with ChatGPT around:

https://substack.com/profile/135747695-nobody-has-time-for-p...

Also the problem goes both way. I often see people trying to learn React with little grasp of JS, or Django like it's a language, and not something based on Python.

comment 3y ago · link · parent

It's a more and more popular opinion:

- Why not tell people to "simply" use pyenv, poetry or anaconda (https://bitecode.substack.com/p/why-not-tell-people-to-simpl...)

- Don’t use the word ‘simply’ (https://jameshfisher.com/2017/02/22/dont-use-simply/)

- Stop using ‘simply’ in tech instructions (https://www.parkersoftware.com/blog/stop-using-simply-in-tec...)

- Don’t say “simply” in your documentation (https://www.knowledgeowl.com/blog/posts/dont-say-simply-jim-...)

And I strongly agree. It can be so discouraging to fail at something you should "simply" do.

But to be fair to the technical writers, it's easy to write that way without noticing, even after proof reading. This should be automatized by writing tools.

Also, while it's mildly irritating, there are worse things in life.

Yet as the first link about the python ecosystems notes, it usually hides a bigger problem: many devs are too good to be helpful.

47.

How to solve the “chat GPT used by candidates” problem(twitter.com ↗)

7 points · by sametmax · 3y ago · 3 comments

comment 3y ago · link · parent

15% is a lot.

If you could lose one month of your salary unless you said one public good thing about your boss in a slideshow, would you do it?

A lot of people do much more than that for less.

comment 3y ago · link · parent

If it's not open source, it's not free enough to make a difference.

comment 3y ago · link · parent

You can see the trend of prompts getting more and more formal. One day we will have some programming language for llm.

51.

Why not tell people to “simply” use pyenv, poetry or anaconda(bitecode.substack.com ↗)

183 points · by sametmax · 3y ago · 226 comments

comment 4y ago · link · parent

aiprompt.io is a very basic web site that give you SD prompts generated by GPT-2.

No category, no parameters. Just get a random new prompt, every time.

The model has been trained on many existing prompts and the resulting pictures have been so far unexpectedly good both on my local SD install and midjourney.

Since crafting prompt is hard and inspiration can elude us, it's a simple yet effective to get the ball rolling.

53.

Surprisingly good prompt inspiration for Stable Diffusion(aiprompt.io ↗)

7 points · by sametmax · 4y ago · 3 comments

comment 5y ago · link · parent

This is immature right now, but it needs users to grow because I think pyflow has it right: it ships a pre-build binary of Python instead of compiling it like pyenv. This makes the result way more reliable, both for a installation success and env congruency.

Just like pyenv, it needs no admin rights, and isolate the python completely from the system. It guaranties that pip, venv and tkinter.

Basically, it removes 90% of the problems you can get when installing Python.

comment 5y ago · link · parent

Depends. Nuitka, the Python compiler, takes the python code, translate it to C, then compile it. Not only does it result in a stand alone python program, but it can be up to 4 times faster. Of course, it does compile the python code as well, so it's not just a matter of implementation, but rustpython allows to compile it all to wasm, which, while not binary, is pretty fast.

comment 6y ago · link · parent

China is in competition with a lot of countries, and in a race for power.

And it is a bloody dictature.

That's not the point. The point is: why does the US has to formulate systematically its antagonist positions as a War?

Given they have the biggest army in the world, this is the best way to have the most violent resolution of this antagonism.

comment 6y ago · link · parent

There are many countries that do such things, but the US selectively chose who are the ennemy du jour, and most are not tagged as such. In fact, some of them are friends with the US.

What's more, I recall the US in the last 2 decades:

- went to a war by lying about WMD and against the entire world (at least the world represented by the UN) will, killing thousands

- deployed mass surveillance of its own people, introduced bypasses to Habeas corpus and legalized torture using the Patriot Act

- elected a man that is at the center of so many Clinton-size scandals in a row it became the new normal

Now, I don't even begin to claim I have a superior country, mine has done many terrible things.

But let's not pretend the US (or any other superpower's) behavior has anything to do with morality. It's either naive or dishonest.

However, labelling everything with "war" is, indeed, a very American thing to do.

comment 6y ago · link · parent

Why does everything has to be a war with the US?

comment 6y ago · link · parent

> Don't trust all purpose glue

I'm a Python dev, damn it.

12345
142