HNHacker News
TopNewBestAskShowJobs

Nanana909

303 karma · joined August 26, 2022

submissionscomments
Nanana909··on My 20 year career is technical debt or deprecated
IMO an argument against this is that the benefit though is not in the new tech itself, but different design paradigms it exposes you to and thought patterns you learn.

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.

Nanana909··on Julia 1.9.0 lives up to its promise
> If I were to use e.g. Rust with polars, load time would be virtually none.

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)

Nanana909··on Julia 1.9.0 lives up to its promise
Then precompile or use https://github.com/dmolina/DaemonMode.jl.

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.

Nanana909··on Julia 1.9.0 lives up to its promise
I'll preface by saying by far my biggest gripe with Julia is the inability to deploy binaries easily. The only hope on easy deployment I suppose is to hope it becomes commonly installed enough that you can rely on it being on systems. But some of your complaints are a bit off (in my own opinion):

>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.

Nanana909··on US on track to set record in 2023 for mass killings after series of shootings
But violence isn’t increasing, it’s been decreasing for decades with an outlier uptick during COVID.

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.

Nanana909··on US on track to set record in 2023 for mass killings after series of shootings
No, I’m telling you that sensational media is driven by demand.

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.

Nanana909··on US on track to set record in 2023 for mass killings after series of shootings
No but foreign influence does help when any comment pointing out that there are things more important for the country to fix than mass shootings(heart disease and obesity) are immediately downvoted and mocked.
Nanana909··on US on track to set record in 2023 for mass killings after series of shootings
Why not both? They have the ability to make social media accounts and assist these fearful and outrages narratives, and they have the motive.

I.e. they are 100%, without a doubt, doing just that

Nanana909··on US on track to set record in 2023 for mass killings after series of shootings
The “foreign influence” part is when mass shootings are a fraction of a fraction of the deaths, yet 50% of the news coverage. Media publishes sensational pieces about what consumers demand - consumer demand is increasingly driven by online discourse, which is free to manipulate easily.

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.

Nanana909··on UN Human Rights Chief Urges UK to Reverse ‘Deeply Troubling’ Public Order Bill
> “Tries to export”

Are you sure it’s not voluntary consumption of our media by members of your own nation?

Nanana909··on GPU vendor-agnostic fluid dynamics solver in Julia
Here's my best short case for you:

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.

Nanana909··on GPU vendor-agnostic fluid dynamics solver in Julia
But the CFD isn't to replace building the model...it's to give you a head start and reasonable starting location, and to find glaring errors. Otherwise you're going to be spending thousands and thousands running back to the wind tunnel every time you want to iterate..
Nanana909··on Arc Will Change the Way You Work on the Web
there’s also different mindsets when browsing. I want my “junk drawer” of tabs to be automatically tidied but my more curated long term tabs in named tab groups to be persistent

But I never seem to use tab groups as much as I am theoretically excited to :/

Nanana909··on Administrative Scripting with Julia
Reduce Julia startup/JIT time for scripts with https://github.com/dmolina/DaemonMode.jl
Nanana909··on Alexa, what is my wifi password?
On the flip side, if you know your stuff for real, interviewing is going to get about 10x less competitive!
Nanana909··on GNU Octave 8.1
For one off Julia scripts consider using

https://github.com/dmolina/DaemonMode.jl

Nanana909··on Ask HN: Why is Julia so underrated?
> CLI Well, not nicely certainly, but:

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..

Nanana909··on Arbitrary code execution during compilation – rust
The only way to “address” it though is individual:

If you don’t want arbitrary code running on your system, you can’t use tools that require running arbitrary code.

Nanana909··on GPT-4
I believe you’re missing some crucial points. *There is a reason neural network based flight controls have been around for decades but still not a single certified aircraft uses them.*

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…

Nanana909··on GPT-4
Poor solutions do that, yes, but unlike ML control theory has a rich field for analysis and design.

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

Nanana909··on Maybe treating housing as an investment was a mistake
Most people are not downsizing by such massive amounts though. The median home price is only $470kish and people aren’t going to accept massive quality of life drop..I.e. very few people are selling $470k homes to buy $150k homes. Thus the gains will be much smaller..

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.

Nanana909··on Amazon is closing its cashierless stores in NYC, San Francisco and Seattle
> He was trying to return a package, not shop at the store.

So then it sounds like he’s not in very a strong position to declare the stores as an unmitigated failure…

Nanana909··on Amazon is closing its cashierless stores in NYC, San Francisco and Seattle
Is that an issue with the store concept, or an issue with not making it clear to users that it’s a non standard drop off location? I don’t see the lack of a warning reflecting on the actual store itself very strongly.

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”

Nanana909··on Amazon is closing its cashierless stores in NYC, San Francisco and Seattle
> I don't use the app

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?

Nanana909··on Writing an OS in Rust to run on RISC-V
Hi, just out of interest since I am a novice in the area, I’d appreciate if you could elaborate on this comment.
Nanana909··on Tesla Terminated Dozens in Response to New Union Campaign, Complaint Alleges
Solid approach to data; completely wasted on a product they’ll never achieve…

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.

Nanana909··on Detect ChatGPT Generated Content
> changing some phrases here and there and add spelling errors to ensure they don't get caught.

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.

Nanana909··on Detect ChatGPT Generated Content
> The problem with such things is that you would need 100% accuracy in most cases for it to be useful.

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.

Nanana909··on Tell HN: Copying and pasting from ChatGPT unsolicited sucks
A lot of people on HN are poking holes in ChatGPT when they find something it does wrong. I have to imagine 20-ish years ago we’d be complaining about questions we tried that Google failed to give a good result for.

> 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.

Nanana909··on Why does the US allow a controversial weedkiller banned across the world?
Okay, if you think having dinner while talking about cancer research is bribery, let me find you an even more bare bones example.

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.

← PreviousPage 2 of 3Next →