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

Because Python has a long experience with REPL, the experience ends up being awesome.

If you try iPython + a PYTHONSTARTUP script, it will be very hard to use anything else.

And ipdb is a very good example of using a debugger that fully benefit from that.

So it is entirely possible to have an exceptionnally good experience in a Python REPL, despite the significant whitespaces, but it does depend of the implementation.


I must be grug. Just forgot I wrote because dumb brain.


Creating the giga factories and making space x a success were as much a technical success as a human success. At this scale in the game, everything is.

We can be critical of his actions, but at this point, assuming incompetence is foolish.


No, it's not. Essentializing incompetence, implying that he's incompetent at everything, that's foolish. But the supposition that he's incapable of being incompetent at Twitter because of his successes elsewhere has already been disproven.


It's possibly not that foolish depending on how hard you believe the Peter Principle applies to billionaires. Musk didn't start Tesla, he swooped in and meddled exactly like Twitter, because he had extra money and wanted to swing it around. Is picking a good bet, one that survives your meddling, a skill or just luck? It's possible to believe the Peter Principle applies and it was entirely luck.


He came in years before the first car was shipped and, like, 15? years before they got to sustained profitability with their third-gen cars.

I'm not trying to dickride the guy, obviously a lot of people contributed, but this literally just happened and we all saw it. How are people rewriting it successfully?


Most of Tesla's current profitability is still in carbon credits trading with other manufacturers. Their own manufacturing is still not stably profitable. Where it is profitable it in part relies on continuing sales of a feature that has yet to be delivered (and may not be ever delivered).

Tesla has done a great job to shake up a complacent status quo of car manufacturers, and to especially lead the curve of EV adoption in the US. That's not nothing, yes, and is absolutely a team effort. It's also not the best run business model and there's a lot of questions still about the long-term sustainability in their cost cutting and their over-reliance on credits and promised but not delivered features. If we want to credit Elon as the sole "business guru" and the company is relying on business models that are less than stellar, it's fair to criticize Elon's role in Tesla with respect to their ongoing business model issues.

There have been times where Tesla's stock, to generate additional liquidity, has had SEC violations alleged against it and most of those were directly "great business man" Elon Musk posting SEC violations directly to social media and pretending they were honest mistakes (and having enough reasonable doubt to not get the "Martha Stewart treatment").

I don't think there's "rewriting". There's 15 years of questionable business practices that was criticized at the time, yet seem easy to sweep under the rug now that Tesla looks popular and is a darling of certain investors.


I don't care how instrumental he was to Tesla, because it doesn't have anything to do with how successful he'll be with his stated plans for Twitter, a company he desperately tried to avoid acquiring but was forced by his own mistakes.


No it's not. Musk "created" a factory as much as Columbus "Discovered" the Americas. That's about it.


The "gigafactory" in Nevada—built, owned, and operated by Panasonic—is similar in size to other Panasonic battery factories in Japan and around the world.


I disagree. I think that the assumption of incompetence makes sense if you're also assuming that a tech company like twitter is different enough from a tech company (hardware focused) like tesla or space x, that the same operating principles apply.

Intelligence comes in a lot of ways - clearly Elon Musk is incredibly intelligent, but only in some ways and not in every way.

Trying to play devils advocate here, I don't fully believe that Musk will be incompetent in handling Twitter, but I definitely think given the current evidence it's possible his understanding of how to operate Twitter is less comprehensive than how to operate a hardware driven tech company.


You made the right choice, rst is not user friendly, even for tech savvy people.

I'll take the opportunity to do a shameless plug for the amazing "Markedly Structured Text", or MyST, a markdown flavor that is both easy to write like markdown, and expressive like rst.

Basically, if you know markdown, you can write decent MyST already. In fact, any markdown is valid MyST and .md is a valid file extension for MyST.

Once you want more, the syntax offers richer construct, but still easy enough to use.

Check it out: https://myst-parser.readthedocs.io/en/latest/syntax/syntax.h...

I wanted to love asciidoc because the format rocks, but it never took off and the tooling is still lacking. MyST piggy back on markdown ecosystem, this is less of a problem.

Also, the devs behind it also have a very good track record at creating a good FOSS ecosystem.


https://myst-parser.readthedocs.io/en/latest/syntax/syntax.h... is excellent, and one of my major pain points. I usually give up and just use ` when I need to talk about backticking in markdown but that idea is much, much better

but I think https://myst-parser.readthedocs.io/en/latest/syntax/syntax.h... is misguided; AFAIK <!-- commentary --> is legal in markdown and far less likely to surprise someone, both with an abnormal comment character as well as the forced block break


The “one more backtick” syntax is a very early Markdown feature explicitly mentioned by John Gruber (originally only for inline code, of course). It might even be in the original “spec”, I don’t remember, but it dates way back and is implemented by virtually all half-decent Markdown parsers. It’s one of the least utilised feature, however, so huge kudos for MyST to clearly explain it and raise awareness.


Oh that’s lovely. Does it also support note blocks (like are used to render that page)? And are there implementations in other languages?


Yes, all admonitions (note, warning, danger) are supported, and worst case scenario, you can fallback on inlined rst if you really miss something.

But so far I never needed to.

> And are there implementations in other languages?

That's the probably the biggest limition for myst: for now it's very new and is only implemented in Python.

I supposed it's a good opportunity to learn rust by creating a parser :)


Same.

Good news though, the jupyter devs created myst (https://myst-parser.readthedocs.io/en/latest/syntax/syntax.h...), a superset of markdown that has almost all the features of rst, and can embed rst when it falls short.

And there is a plugin to use it with sphinx. It can even reside in a project that started with rst files, both format can coexist.

With this and sphinx-autoreload, writing doc is so much better.


We already learned that when the US went to war with Irak while lying about WMD, against the vote of the UN.

They did whatever they wanted, just because they wanted to, and nobody could do a thing. They could fake evidences doing so, get caught, kill thousands, spend trillions, and destroy a country with no bad consequences whatsoever.

No blue helmet peace keepers was sent at any point to block the US soldiers path.


Fun fact: because of tkinter, Python embeds a TCL interpreter:

    >>> import tkinter as tk
    >>> tk.Tcl().eval('puts {hello, world}')
    hello, world
    ''
So you could technically use TCL to query your DB if you cared.

But honestly, DB queries in real life is spread on threads, but then multiple processes, then a connection pool like pg bouncer, so you will unlikely see the difference most of the time. Not to mention the DB choice, the schema, the query quality, the DB configuration, the hardware and how complicated your request are all going to be more likely to affect the speed of request.

Still, interesting. Exploiting all those CPU in Python would cost a lot of RAM given how many processes you would have to spawn.

I would love to see the comparison using asyncio on uvloop to check the CPU are really the bottleneck though.


nmap has a serialization cost, and sharing complex data structures is hard with it.

It's also different than multiprocesses as it will likely take less RAM.

Python is explorer multiple interpreters for these reasons. Python 3.8 SharedMemory works well, it's far from transparent.


>mmap has a serialization cost

It does, though there should be optimized ways to do that if it's message passing and not object passing.


No it will not.

It will be much bigger, because:

- it can be automated. CGI still required a lot of human work.

- AI generated content requires way less skill. You had to train a lot to become good at CGI. We already see people getting Stable-Diffusion-proficient in a few hours.

- in the 90, CGI was introduced gently, through selected medias. AI content has access to the full internet right out of the box.

- producing CGI required a lot of hardware, but with SaaS, AI will be available to anybody.

- CGI was first exposed to professionals, who produced for the public. AI is already been used by hobbyists, and soon the public, directly.

- CGI was mostly about visual techs, but AI generated content can be applied to text, sound, molecules, basically any structured data.

In summary, the very nature and context in which AI generated content is taking form means the impact will be larger, stronger, and way more intense.

People are hardly capable at dealing with CGI intelligently, even after 20 years. They trust photos and videos a lot, and react strongly to them. Even when they know they are fake, like in a movie, some emotions will forge they judgement like if it were real.

AI generated content? Forget about it. People are not ready. The emotional impact it's going to have will make you feel like the cancel culture was a whisper in the wind.

I was underwhelmed by the last decade of AI dev, but 2022 is for AI what 2000 was for the dotcom revolution.

Question is, what the equivalent of domain name for AI, something cheap you can buy to sale later?


I think it's still comparable if you view it as "Generative AI is to CGI what CGI was to practical effects".

- CGI can be automated, practical effects required a lot of human work

- CGI content requires less skill. You had to train a lot to become good at sculpting / painting / makeup / carpentry / stunts / whatever to become good at practical effects. We already see people getting $MODELLING_PROGRAM proficient in a few weeks.

- producing practical effects required a lot of hardware, material and tools but with CGI you just need a powerful computer. CGI will soon be available to anybody as computers become cheaper

Your last two points are probably only true for AI generated content but there are still some barriers to people setting up their own AI models (technical know how, hardware) and there are certainly limitations on what type of content can be produced (you need a big and reliable dataset of examples).

Overall I think this will have a similar impact but probably more widely distributed in both terms of access and impact.


> CGI can be automated

Having worked in CG for several decades, this is a pretty misleading summary. CG takes a lot of manual work, and there are other reasons and benefits to using CG than how much manual work it takes. It’s often less work than practical but not always. There are certain kinds of things that can be automated (with a lot of manual setup work!) but most of what you see in movies also involves lots and lots of manual work for every single shot. It’s not unlike how machines get used to automate certain parts of practical effects work, using for example, compressors, electrical rigging, vehicles, pneumatics & hydraulics, gas & explosives, etc..

> We already see people getting $MODELLING_PROGRAM proficient in a few weeks.

This is similar to saying we already see people getting C++ proficient in a few weeks. Some people can write very useful & interesting programs within a few weeks, but nobody understands all of it by then, and nobody’s getting a high paid career on just a few weeks of noodling. It takes a long time to understand all the ins and outs, and independently it takes a long time to understand complementary computer science fundamentals. Same is true for Maya, Blender, Houdini, etc.. Someone might have something cool to show after a few weeks, but nobody is ready to make a CG movie by then, and nobody is landing the good jobs in CG. (By “nobody” I’m talking about statistical relevance, not that it has never happened.)

Another reason a few weeks is insufficient for landing good jobs is that the CG industry is highly competitive; you have to be better than the guy who’s gone to art school and played in Blender for a few years if you want that job.


Yes, I imagine all of the same caveats will be true for AI generated content as well.


Agreed, I think that would be a good bet.


True, I just think that because of all the leverages in place for AI content generation, the effects will be orders or magnitude bigger. But it's just speculation, let's get the pop corn and watch the show.


> AI generated content? Forget about it. People are not ready. The emotional impact it's going to have will make you feel like the cancel culture was a whisper in the wind.

Forget about it? People are not ready? When has that ever been a blocker? This is like a new era of 80s computing where some people will get a home computer and their dork kids will dork on it and produce some unbelievable stuff in the decades to come. I'm scared, slightly optimistic, but what is available right now as commodity, there ain't no stopping it.


Quite the opposite. It's not going to be a blocker. It's going to be an catalyst.

Brace for it, it's going to be wild.


Sub-textual thought experiment: how big can Hugging Face get?

Can they achieve a Monopoly on Art Production into the Future?

To build their moat: they build the largest supercomputer for image training, acquire the largest image training set (~10B), and then institute an IDF Unit 8200 style Garin Lotam recruitment effort of the best artistic talent on earth to feed new forms into the machine, and everyone else simply forgets they ever knew how to make art in the first place as the drawing prompt becomes as ubiquitous as the google search box ;)


It can't be automated and expect decent quality

You can at best have another AI trying to pick the best option generated by other AIs but you'll likely still have a human deciding.

We're still far from General AI.


Salts are a thing for this very reason. And some hashes like scrypt can be parametrized to take time no matter what.

There is no rainbow table entry for 0123456789+=i=i_fy82dnuf720g%2+70)(k$0@*qsijyn9&19n@1r0-l4ee) with 10000 scrypt rounds.

We are not in 2005 anymore, and we have better tools than md5, or even sha1 to do the job.


Salting won't work in this particular case. You need to match plaintext against a blacklist. Salt per entry is too expensive, salt per blacklist is exploitable.


Were it be a small company, we would try sharding salts + increasing the number of rounds of scrypt or some mix with a bloom filter.

However, this is facebook. It's not too expensive for them.


how does a salt help?

a salt for a password is when we know the username and the salt so can combine the salt and provided password to compare against the generated hash value.

in this case all we know is the phone number, how does a salt help us look up a given phone number in a set of salted / hashes if we dont know what salt to combine it with?


You shard the number into groups with a salt for each, until you reach a number of combinations that is computable for FB size on a check request, but way too long pre-generate. You can combine it with some bloom like filter to increase efficiency.


Can you more explain that as an example. I understand the words, but doesn't extend to me seeing the design of it.


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

Search: