HNHacker News
TopNewBestAskShowJobs

fiedzia

592 karma · joined January 21, 2013

submissionscomments
fiedzia··on Memory Safe Languages in Android 13
> You can't write any code at all in Python or Java without relying on unsafe operations.

There are Python interpreters written in other languages: there is one in Rust, and there is Jython and IronPython.

fiedzia··on Memory Safe Languages in Android 13
> Is there any practical programming language that is memory safe in its "entirety"?

Whatever can be compiled to BPF meets this requirement. The price though is that it wouldn't be very useful.

fiedzia··on Memory Safe Languages in Android 13
It's possible and easy (have types for path coming from untrusted source), but it's a matter of a standard library rather than a language.
fiedzia··on Extism: Make all software programmable with WebAssembly
>WASM doesn't try to solve the API typing/object interop problem

There many initiative around wasm, one of them being WebAssembly interface types, aimed at that problem. This makes using wasm simple.

fiedzia··on Ask HN: Why the Linux Kernel doesn't have unit tests?
> Why not run 1-2 releases behind and test/qualify a later release?

This may work for most people, but not all. It's easier to get things fixed while developers still work on something, than weeks/months later. Also if you have not most-popular hardware/software configuration, testing done by others isn't necessarily sufficient for you.

fiedzia··on Ask HN: Why the Linux Kernel doesn't have unit tests?
> If some hardware breaks it, the hardware must be seriously broken.

And it sometimes is.

> If a change breaks it, some one will probably have called read(2) a few times before that kernel is shipped to you.

I've seen to many kernel bugs on new hardware to believe this is enough. Maybe not in read(), but still in something that should work. Throwing testing on users may have been acceptable in the past, but not anymore.

fiedzia··on Ask HN: Why the Linux Kernel doesn't have unit tests?
> Do you really need tests for the read(2) syscall when Linux is running on a billion devices, and that syscall is called some 10^12 times per second globally?

Yes, you do, because otherwise you will find that some change or new hardware will break it.

fiedzia··on Ask HN: Books about full text search?
https://www.manning.com/books/relevant-search

Also "taming text"

fiedzia··on The case for dynamic, functional programming
I'd say that Python is uniquely functional not because of features or authors intention, but by being somewhat flexible and having users interested in writing in this style. So despite its quirks, for many people it is as functional as they can get, and for some even as much as they need.
fiedzia··on The case for dynamic, functional programming
> immutable data

sort-of possible now (frozen*)

> pattern matching

That has been added recently

fiedzia··on Ask HN: How Do I Successfully Manage Academics on My Software Team?
> to do R&D themselves that the software team can then refactor and ship to production

What academics produce is most likely proof of concept or a prototype, not something you can "refactor" and ship. It's not a matter of tooling and programming languages, but of what is actually produced. Software engineers produce software that meets all sorts of non-functional requirements, experts care about functional side only. So get all sides to agree on what will be produced and then ask developers about how they will proceed with putting that in production. It may require redoing most or even everything.

> They also don't seem to have a big sense of the urgency needed at my small company.

You don't do creative work to a schedule, especially urgent one. The only thing you can predict reliably are the ones you have already did (and only if the circumstances don't change). People promised self-driving cars long time ago, and we still don't have them, regardless of any company sense of urgency. You deal with that issue by discussing stages and scope of delivery with all sides, not by expecting their understanding of urgency.

> It doesn't seem like they should be treated as a separate team because too much will get lost in translation

That's true, getting managers to act as translators between experts and technicians is a really bad idea.

> How do I set timelines when it's hard to understand the work?

You ask them to set them for themselves. You don't need to understand the details, you need to understand what will be produced and how all involved sides will use it and that they all agree here.

> Should they integrate with software best practices or just be their own thing throwing successful R&D over the wall?

That depends, but most likely you will have more success passing what they do to your developers (who are great at being software developers) than by teaching software development to someone who doesn't understand it. Some training may be beneficial though (so that their work can be used by developers).

fiedzia··on Improving Firefox stability on Windows by retrying failed memory allocation
> everyone thinks they are smarter than the "script kiddies"

No. People do not perform system updates because a) it's a chore and b) it get's in the way or even breaks things. To do an update I need to agree to give up control over my device for some time (often undetermined) and then risk that updated code causes issues (it's not uncommon). We need to design apps and operating systems with seamless and reliable updates in mind, not force people to suffer.

fiedzia··on Ask HN: Software for interpreting analog music chords?
There are midi pickups (or midi guitars) which you can use for this purpose (for future sessions, not for reconstructing existing recording).
fiedzia··on ABI compatibility in Python: How hard could it be?
> Pretty much any Rust app that does encryption will be relying on a mix of C and assembly

Perhaps, but not directly. It will depend on some libssl-rs which depend on libssl-sys which handles C bindings, so that application authors don't think about it.

fiedzia··on ABI compatibility in Python: How hard could it be?
> That's because Rust is tiny and new.

Dozens of other languages that are tiny and new do not have good packaging story. Rust does, because it cares about developer experience.

> Wait until you have Rust packages which include and wrap hundred of thousands of lines of very old C and Fortran code like numpy has.

I don't know about Fortran, but C is basically legacy at this point, it doesn't change much and even if it does, there is one some-c-lib wrapper package that takes care of all those issues, Rust apps rarely depend on some C dependency directly.

fiedzia··on Is Rust Ready for the Web Yet? (2020)
Rust is verbose, but here you don't need to build response, just return string and Actix will handle that.
fiedzia··on Is Rust Ready for the Web Yet? (2020)
If you mean old style html templates, it's been ready for many years. If you mean React style ssr, it's new but at least some frameworks have it too.
fiedzia··on Is Rust Ready for the Web Yet? (2020)
Modern web will be Python + Django/Flask + Js/Typescript (and maybe Swift or Java for mobile apps). You can replace almost all of that with Rust, so you'll get one language to rule them all, but focusing on Python part only: obviously performance, sane tooling and dependency management, statically typed language results in less runtime errors. Overall Python gets you a lot faster from 0 to "it works on my laptop", Rust gets you faster to 'it's good enough to put it in production".
fiedzia··on DeviantArt upsets artists with its new AI art generator, DreamUp
> 3d car models in racing games need to be licensed by the car manufacturer

Is it a licence (in practice) for a right to brand name or really the look? Could Forza make a model that looks almost exactly like a Ferrari but name it Furrari?

fiedzia··on Agile sucks for software development and I’m tired of pretending it doesn’t
> My current company spends 4 out of 8 hours every day in meetings.

What your company poor time organisation has anything to do with development methodology?

fiedzia··on Ask HN: Programming without a build system?
Docker keeps insanity of irreproducible environments contained (no pun intended) and comparing with all solutions before, it works very well for that purpose.
fiedzia··on Ask HN: Programming without a build system?
Rust has cargo, which just works and doesn't require you to set it up (cargo build --release; hand binary to the client, no makefile required).

but...

we have clouds now, so even if you find something, development will require CD/CI pipeline, github actions and so on.

fiedzia··on Ask HN: What shell do you use, if not *sh?
Not technically shell, but Python can get you fairly close to that.
fiedzia··on We should have Markdown-rendered websites
> it just really feels like there shouldn't be that many additional features. A couple more of emphasis options, a couple less ways to do the same thing

There was a language like that once, it was called HTML. It had very basic set of features initially, but then someone needed text to blink, someone needed to display videos, someone needed to send forms, someone needed to use it to play games and here we are today, and it's not done yet. If it was implemented today, you will get exactly same result in near future, because everyone's "small set of features" together adds to infinity.

fiedzia··on Crows able to understand the concept of recursion
> they had a long time to improve their intelligence if it helped them hunt, hide and rear.

To catch a chicken you need to be slight faster some of the times, not much of intelligence necessary. (You will need a lot of development of internal organs to be slightly faster though).

fiedzia··on We should have Markdown-rendered websites
> other formats, like HTML and SVG, are not.

You can mandate them to be if you are building something that uses them. If you don't have control, than its up to someone else to decide, and people wanted to be able to link remote resources.

fiedzia··on We should have Markdown-rendered websites
My browser doesn't have one, and even if it did the point is that it should look good without any effort.
fiedzia··on We should have Markdown-rendered websites
Self-containment is entirely unrelated to a format. You could do self-contained markdown, HTML or anything else if you wanted to.
fiedzia··on We should have Markdown-rendered websites
Plain HTML would be great, its just browsers holding it back. Without CSS, it looks unacceptably ugly.
fiedzia··on You Might Also Like
+1 for buying something with Linux preinstalled. Beside the ones mentioned there is Dell XPS and HP dev one available, so there is a choice.
← PreviousPage 5 of 16Next →