Even if Rust were to die off tomorrow I’d be happy I invested my time in getting familiar with it as I’ve learned quite a bit about memory management and ways to reason about it.
303 karma · joined August 26, 2022
Even if Rust were to die off tomorrow I’d be happy I invested my time in getting familiar with it as I’ve learned quite a bit about memory management and ways to reason about it.
Because you're compiling...
And if you need to do the same in Julia, you should also pre-compile or some other method like https://github.com/dmolina/DaemonMode.jl (their demo shows loading a database, with subsequent loads after the first one taking roughly ~0.2% of the first)
But 1.7 seconds at first startup isn't even enough time to articulate a serious thought, much less write any good code.
I struggle to believe it's a dent in anyones workflow.
>and you can't quickly run a script
What is wrong with the following to run a script?
$ julia myscript.jl
If you have specific needs that demand, after hitting return, the few seconds of delay for the vast majority of scripts is an issue, you can pre-compile it ahead of time or simply use something like https://github.com/dmolina/DaemonMode.jl
Julia has issues as with all languages but "not being able to quickly run a script" is by far one of the easiest to work around.
> and you can't quickly run a script or REPL for development.
REPL- I disagree. Of course you can - that's how many of use Julia.
> And now Julia has competition from Mojo.
...maybe. The code-samples we've seen from Mojo look very similar to Python, obviously. And that is specifically why a lot of poeple love Julia.
The problems people are more and more interested in (machine learning, etc) are at their base mathematical problems. These languages are all tools to translate mathematics into computer instructions. The code should then ideally look as close to that math as possible. Spamming np.linalg, sp.sparse, and so forth over and over again is just ugly, and the entire Python workflow overly encourages object oriented design for concepts that are mathematically functions. And, well, should be functions. If you're working in these or related fields at all and write any code with Julia, it's hard to not fall in love.
Mojo may make Python faster. But it will still be, roughly, Python.
And considering that the Python 2 -> Python 3 transition has still not completed, I think it's premature to conclude Mojo's python upgrades will get anywhere.
https://www.macrotrends.net/countries/USA/united-states/crim...
Thats my entire point. You’re talking about something that simply does not exist. But when nearly all of the online discourse acts as if we are less safe now, it’s easy to believe that is true. Even being aware of the statistics sometimes I feel that way.
Sensationalist media has always been a thing. Yet, at the exact same time geopolitical opponents were given a direct input to the media consumed by the average American, sentiment becomes much more negative.
Demand from consumers who interact with the internet.
Consumers who, on the internet, ONLY see upvoted comments about masa shootings and see anything talking about the more deadly issue of heart disease/obesity downvoted and mocked.
I.e. they are 100%, without a doubt, doing just that
The best kind of misinformation is misinformation that is true but not representative of the real situation. Have you checked our heart disease deaths? It is *factually* an issue many orders of magnitude more important to the average American. And yet…zero discussion seems to happen about it online?
And why wouldn’t there be foreign influence? It’s quite an easy checklist:
* do Russia and China have the technical capability to make social media accounts and post in English?: Yes, obviously.
* do Russia and China have any motive to drive fearful divisive narratives in the US?: Yes - we are their primary geopolitical opponent
With both of these true, to assume they’re not doing it for some reason out of kindness requires a lot of mental gymnastics.
Are you sure it’s not voluntary consumption of our media by members of your own nation?
If you're writing code that is fundamentally based on mathematical principles and models, even if you aren't personally using mathematics every day, its going to feel a lot better in Julia. That is: Julia looks a lot more like mathematics than Python.
__
Longer version:
Obviously some people are mostly writing websites or GUIs or whatever in Python and won't see the beauty in this.
But if the problems you are working on have, at their base, a mathematical foundation (even if you don't actively practice the math), it's much more beautiful IMO. So, simulation, data analysis/science and machine learning, statistics, etc...
Once you get used to using it for that though you'll realize it's actually quite nice for a lot of other things as well and the "mathematical mindset" it somewhat pushes results in cleaner solutions for other problems too. Just in general the syntax and patterns are nice.
Here are some quick things using randomness in Julia that would be a bit slower and more verbose in Python:
Generate a random number:
> rand()
Pick a random message:
> rand(["First message", "Hello", "Foo"])
Generate a random 3x3 matrix of booleans
> rand(Bool, (3,3))
Define a function and run it elementwise on a random matrix of bools:
> myprint(x)= x > 0 ? "Happy" : "Sad"
> B=and(Bool, (3,3))
> myprint.(B)
Returns:
> 3×3 Matrix{String}:
> "Happy" "Happy" "Sad"
> "Sad" "Happy" "Happy"
> "Sad" "Happy" "Happy"
And many many more nice features...but the Julia design meaning functions like rand() just apply how you expect regardless of the input type are quite nice. rand(list of stirngs) *should* give me a random string and rand(range of numbers) *should* give me a random number in that range! No one would write an academic paper and define a new rand function for each input because well...it's clear what the user wants - rand of something.
But I never seem to use tab groups as much as I am theoretically excited to :/
https://github.com/dmolina/DaemonMode.jl
> portable
Neither is python - it just relies on universal availability. Over time…
> Multiple dispatch, it's system of abstract inheritance and lack of static analysis and tooling makes it very difficult to write correct code. It's even hard to read Julia code due to dispatch labyrinths, macros that obfuscate IDEs, and lack of good IDE tooling.
There is support for solving some of this but it’s obscure and needs more attention.
Overall I think the growth will continue, specific fields having best of any language software packages (DifferentialEquations.jl,…) written in Julia starts to create somewhat of a network effect.
And imo the packages being written in Julia are quite specialized, unlike much of the famed “Python ecosystem”, half of which is wrapper to C++ functions and another big chunk being HTTP calls to external APIs..
If you don’t want arbitrary code running on your system, you can’t use tools that require running arbitrary code.
You need to do all of these things you’re talking about and then be able to quantify stability, robustness, and performance in a way that satisfies human requirements. A black box neural network isn’t going to do that, and you’re throwing away 300 years of enlightenment physics by making some data engorged LLM spit out something that “sort of works” while giving us no idea why or for how long.
Control theory is a deeply studied and rich field outside of computer science and ML. There’s a reason we use it and a reason we study it.
Using anything remotely similar to an LLM for this task is just absolutely naive (and in any sort of crucial application would never be approved anyways).
It’s actually a matter of human safety here. And no — ChatGPT spitting out a nice sounding explanation of why some controller will work is not enough. There needs to be a mathematical model that we can understand and a solid justification for the control decisions. Which uh…at the point where you’re reviewing all of this stuff for safety , you’re just doing the job anyways…
You guys are talking about probably one of the few fields where an ML takeover isn’t very feasible. (Partly because for a vast portion of control problems, we’re already about as good as you can get).
Adding a black box to your flight home for Christmas with no mathematical guarantee of robustness or insight into what it thinks is actually going on to go from 98%-> 99% efficiency is…..not a strong use case for LLMs to say the least
and with a $1M house should have a sizeable 401k specifically so they’re not relying literally on the housing market to retire. Any number of events could cause the same scenario you mentioned.. so I’m pretty much any realistic scenario for most people, tax deferred investments dwarf the small boost you get from buying a slightly cheaper house.
And having more $250k houses now means it’s easier for everyone else to build up a retirement plan.
So then it sounds like he’s not in very a strong position to declare the stores as an unmitigated failure…
Also- why even bother with Amazon and trying to return packages etc if you have no easy way of getting your password? If this is too much of a hassle just use in person stores..
I’ve had drop off at mail shops locations be unexpectedly closed which is objectively worse than having a bad but possible return experience…..and never once claimed that “mail shops are an unmitigated failure”
So then why attempt to go to a store that’s entirely based on using the app?
The store concept is based around your account - and you didn’t know your account details. The app can help avoid this, but you also refused to use the app.
How is this any different than someone who refuses to use their password to sign in to Amazon.com and complains about not being able to submit a return?
Or going to a store and not having your credit card but being annoyed that you can’t use your credit card?
I won’t weigh into the politics of the situation, but anyone who has their head on straight can see by now that “full self driving” isn’t becoming a reality any time soon. Even if the technology works out somehow, the politics of thing will take decades.
More interesting to me is the lessons the engineers learn there and take with them to other efforts, where success is more possible.
The students who will do this already do this though, just with different source material I suppose.
> Maybe the education system will finally learn that asking students to merely recite information that can be found by anyone, anywhere
I think we’ll see an increased amount of face to face assignments like exams or essays written in class only, where students can’t use these tools. It solves the problem entirely and is arguably better - but increases education cost.
Why? If there is 75% confidence a students report was generated using ChatGPT, then that’s enough to sit down with the student and discuss the content in person and see if they actually know it. A tool such as this could help the teacher having to avoid doing this with every student, and also reinforce to students that if they don’t actually know the material there’s still a chance they get caught.
> the consequences for honest students would be too severe to actually act
Only if acting is immediately accusing them of plagiarism rather than working with the student to ensure it’s really their work.
> For example, ask it to give you a minizinc model for the 8 queens problem.
But even a normal software engineer, is likely to confidently fail as something as niche as this. What percent of anyones work consists of questions like this? Even for the people who do encounter it, I’m willing to say not very much……
This doesn’t even take into account the state of this technology in 2,3, 10 years. A lot of people denying every advancement in this stuff are going to be saying it all the way into their obsolescence.
Your representative has a town hall and afterwards you get a few minutes to speak with him. You argue that the number of stop signs in your neighborhood isn’t enough and causes danger. In other words, you lobby him to pursue increased stop signs in your area. He hears you out, you guys shake hands, and leave.
As you have now engaged in lobbying, have you engaged in bribery? Clearly not. The two words are not synonyms.