HNHacker News
TopNewBestAskShowJobs

julvo

533 karma · joined July 29, 2017

submissionscomments
julvo··on Deno Is a Browser for Code
The two most frequent arguments against using URLs instead of npm packages seem to be: 1) Security: What if someone changes the code behind a URL? 2) Hard-coded versions in application code

I don't think these arguments are valid. For 1) you can always limit the URLs you use to hosts like jsDelivr or unpkg and reference npm packages directly. In this case instead of trusting only npm to send you the code you requested, you're now trusting the CDN as well. Potentially even better could be to import scripts from Github directly. For 2) a simple solution could be to have a deps.ts file for your project where you import from single-version URLs and export the dependency version-unaware. Now your versions are not scattered throughout your application code.

To me URLs seem like a nice (because compact and universal) interface for dependencies which allows decoupling your package management from your runtime.

julvo··on Translation from VC-Backed PR Jargon to English of Magic Leap CEO Statement
And markdown, a text format most of us use on a daily basis
julvo··on Emotionally Expressive Text to Speech
Hey Zeena, great to see this on HN - brilliant video!
julvo··on Show HN: Meta book recommendations from Ask HN threads
This is a great resource, thank you!

Tangentially related, it would be interesting to require book recommendations to always come with anti-recommendations, i.e. which books not to read. Often, I feel like there's a bias towards recommending books, after oneself committed to reading them. If I were asked to list the top 50% of books I've read (without counting), I'd probably list more than 50% of books I read.

julvo··on Show HN: Unscreen – Remove Video and GIF Backgrounds
Depending on the type of image, a simple solution could be using OpenCV and some clever heuristics.

For a deep learning approach, I would start by looking into literature on semantic segmentation. Here is a blog post I just found which gives an intro: [1]

With state-of-the-art models (e.g. DeepLabV3) and a good dataset of foreground/background segmentations, the results could be of useful quality already.

The next step would be to look into literature on image matting (e.g. deep image matting [2]) which instead of trying to classify each pixel as foreground/background, regresses the foreground colour and transparency.

___

[1] https://divamgupta.com/image-segmentation/2019/06/06/deep-le...

[2] https://arxiv.org/abs/1703.03872

julvo··on Show HN: Unscreen – Remove Video and GIF Backgrounds
My guess would be U-Net-like ConvNets, trained on images annotated with foreground/background segmentations. Probably with all kinds of tricks like multi-scale inference etc.

However, simple frame-by-frame segmentation will probably not be enough to get temporal consistency, so for each frame's segmentation they probably take previous and following frames into account.

julvo··on Alpine.js: A minimal framework for composing JavaScript behavior in your markup
That plus server-side web app frameworks like rails, Django etc.
julvo··on Ask HN: How to improve code quality while maintaining decent velocity?
Came here to say something similar: Learn a functional language.

Not because you'll be using functional languages afterwards for work, but it changes your coding style - even in imperative languages. More towards pure functions and a cleaner separation between data and logic

julvo··on Building a Search Engine from Scratch
And even if it does work for a while, there still needs to be the original signal to copy

I'd say they need to start somewhere. Using other search engine's results is a ways to get things started, so that they can build their own index on crawled content later.

For now, it's great to see another competitor for Google coming up.

julvo··on Sacha Baron Cohen Uses ADL Speech to Tear Apart Mark Zuckerberg and Facebook
A public database for political ads sounds like a good idea to me
julvo··on Sacha Baron Cohen Uses ADL Speech to Tear Apart Mark Zuckerberg and Facebook
I've been thinking about this as well. it's not only the low barrier to entry, because large scale is still expensive. the problem is public visibility and scrutiny. if I spread false information in a newspaper, everyone can see it and expose the lies. on Facebook, each highly targeted ad will be seen by very few people and is therefore unlikely to be publicly exposed as misinformation.
julvo··on Microsoft Japan’s 3-day weekend boosts worker productivity
Also the article said people took 25% less holiday, which could make it just 3 days off, depending on what the typical number of holidays taken for this month is.
julvo··on What does it mean for a machine to “understand”?
If the Agent would 'understand' Go, we'd expect it to adapt to a round board easily. Humans probably would. (argument from Gary Marcus)
julvo··on Show HN: Change Python code while it's running using a reloading loop
That's a pain to debug. A similar thing happened to me with reload from Python's importlib. In the case of the reloading loop I think this will only happen when redefining the type within the loop, either through a class definition or an importlib reload.
julvo··on Show HN: Change Python code while it's running using a reloading loop
Brilliant idea. That would make it useful for Keras, too, using decorated callbacks during training
julvo··on Show HN: Change Python code while it's running using a reloading loop
Brilliant, thank you. I'll patch that.
julvo··on Show HN: Change Python code while it's running using a reloading loop
It only works with Python 3. Thanks for reminding me that I should add a note to the Readme.
julvo··on We’re Entering the Era of Big Podcasting
What I struggle to see about this new era of podcasting is: why now?

Would someone with more insight help me to understand?

julvo··on Cloud Run Button: Click-to-deploy your Git repos to GCP
I love this. Would be cool if the cloud run button (i.e. the image in the readme) updates and shows whether it's running and some status info after it's started (maybe it does already, didn't try it yet)
julvo··on Some things that might help you make better software (2016)
Thank you for this comprehensive list.

One item I would like to add explicitly (or emphasise more) is making use of static type checking - be it in the form of a compiled language or type checkers like mypy/typescript. It not only prevents runtime bugs but might even increase productivity when used with good tooling. In a conference talk (can't find it rn), an Airbnb engineer said around 38% of their JS runtime errors in the past could have been prevented by using TS.

Edit: here's the conf talk https://youtu.be/P-J9Eg7hJwE

julvo··on Apple has pushed a silent Mac update to remove hidden Zoom web server
This doesn't match my experience so far, could you point me to your sources for this claim?
julvo··on Vue RFC: Expose logic-related component options via function-based APIs instead
This. I like that the Vue team thinks of ways to improve on the current state of the art and welcome new ideas, but please under a different name. It needs to be succinct enough so that search engines can distinguish the two. Otherwise, there is a big risk of things becoming confusing and frustrating quickly.
julvo··on Comparing the Same Project in Rust, Haskell, C++, Python, Scala and OCaml
I like the idea of using this project to compare languages.

However, to me it seems the comparison is more of a comparison between specific implementations rather than languages. The high variance in LOC between the two rust implementations makes me wonder if there's a similar variance for other languages and the samples we have lie somewhere between e.g. 0.5 and 2 times the average size for a given language.

Therefore, the python implementation could just be a really compact one, even when compared to other python implementations. It could be interesting to ask the Professor if he'd be willing to collect some stats over the years.

julvo··on Salesforce is buying Tableau for $15.7B
Would you be able to point me towards modelling approaches/boundaries/languages that would be more appropriate? I'd be interested to learn about better alternatives, as I don't yet see the big flaws in relational models
julvo··on I “found” the database of a college app (2018)
Exactly, it's like leaving your customers' cars unlocked in a bad neighborhood
julvo··on I work in the environmental movement. I don’t care if you recycle
I don't think it's that simple anymore, as there are other forces at play. The political influence of large, established industries can make sure that things stay as they are and the consumer demands will be met by them, not by new technologies. People don't demand fuel cars, they demand affordable, reliable long range cars.

Same holds for electricity, people don't demand electricity from a specific source. But currently some sources meet the demands more than others. Legislation could lead to alternative sources becoming better at meeting people's demands i.e. becoming cheaper, reliable etc.

Generally, large industries have momentum which keeps them going, and therefore the way the meet demand is not necessarily the optimal way for consumers/the environment.

julvo··on Ask HN: Server-side web apps – is the database still a bottleneck?
The problem I have with having queries like this in my code is that your schema and your code can get out of sync and these are errors only occuring at runtime.

Therefore, looking for a safer solution, I've also looked at various options in my last Go project, and ended up with SQLBoiler. It supports fetching related documents in a single query and seems to be quite performant.

julvo··on The Blockchain Solution to Our Deepfake Problems
If we trust the device manufacturer to only sign genuinely recorded videos, couldn't we also trust them to sign the videos with a correct timestamp?
julvo··on The Blockchain Solution to Our Deepfake Problems
I don't see how a blockchain helps with problems arising from deepfakes. What's key for the solution is signing the content on the physical device, aka public key cryptography. To my understanding, a blockchain solves the problem of agreeing on a temporal order of events (eg. transactions), which I don't think is critical in the case of deepfakes.
julvo··on Ask HN: How Can I Sell My Project?
The valuation would not necessarily be determined by revenue only. Website traffic, page authority on Google, subscribers or users in general can be valuable to potential buyers.
← PreviousPage 2 of 3Next →