Readit News logoReadit News
dazzlefruit commented on Ask HN: What are you working on? (October 2024)    · Posted by u/david927
thomasfl · a year ago
For me the most important issue that needs to be solved right now is the increasing urban sprawl and the car dependent neighborhoods. It causes social isolation. Maintaining infrastructure like roads and electricity, is causing a strain on the economy for local municipalities. Not to mention the disastrous effect car based transportation has on the environment.

I am a fullstack developer living in Norway. Last year I registered the Norwegian branch of the Architectural Uproar as a not for profit organization. With the support from paying members, I have been able to go on tour to most of the major cities in Norway. We organize large meetings were we discuss architecture and city planning with politicians, architects and property developers on stage.

I am strongly inspired by Create Streets in UK and Strong Towns in the US. I want to improve people’s quality of life, help saving the planet and make Norway beautiful again while doing it.

https://arkitekturopproret.no edit: typos

dazzlefruit · a year ago
That's the kind of projects I love to see. Actually socially useful :) Keep it up!
dazzlefruit commented on London Underground hosts tests for 'quantum compass' that could replace GPS   theguardian.com/science/a... · Posted by u/beejiu
perryizgr8 · 2 years ago
ICBM is likely to deliver a nuke. Which will probably take out a 20 km radius circular area. It is not going to be used to target a base with 100 soldiers.
dazzlefruit · 2 years ago
It is if the goal is to deter without launching a city roast fest. That’s one possible step to e.g. answer a first limited strike without starting a disastrous exchange. And US nukes can be set to low yield.
dazzlefruit commented on London Underground hosts tests for 'quantum compass' that could replace GPS   theguardian.com/science/a... · Posted by u/beejiu
dwighttk · 2 years ago
ICBMs are gonna have collateral damage
dazzlefruit · 2 years ago
President: ok, hit this military base with 100 soldiers to let them know we’re serious

Million-inhabitants city nearby: burns to the ground due to garbage guidance

President: …dig out the plan for world war 3, I guess.

dazzlefruit commented on You are not late (2014)   kk.org/thetechnium/you-ar... · Posted by u/yarapavan
JohnMakin · 2 years ago
so I’ll hope you’ll forgive me 2 years then on my “decade” statement which was not meant as literally as you took it.

There were mobile phones before the iphone. Like a whole ecosystem even! They even had screens! and browsers! and internet!

the major innovation the iphone brought was a touch screen (and a decent camera), which sort of existed, but nothing as smooth and crisp as the iphone. please i really hope people out there dont think the iphone was the invention of the cell phone.

dazzlefruit · 2 years ago
What about the App Store? I never used a Symbian phone but I don’t remember a device that would have allowed as much as the iPhone in the way of custom apps.
dazzlefruit commented on You are not late (2014)   kk.org/thetechnium/you-ar... · Posted by u/yarapavan
tavavex · 2 years ago
Wait, which startup could possibly be threatening the entirety of Google?
dazzlefruit · 2 years ago
Arguably the entirety you need to threaten is Search and ads. Remove those, what happens to the rest?
dazzlefruit commented on Phones track everything but their role in car wrecks   nytimes.com/2024/01/26/he... · Posted by u/strict9
mattgreenrocks · 2 years ago
It's unique in that it's an addiction that enough people have that it's considered entirely normal. And that normalcy means it's not seen as a big problem to fix, it's just "how it is."

Until people decide that reality is better than the unreality of phones, this kind of willful ignorance will continue.

dazzlefruit · 2 years ago
I don't use my phone when reality is better. Consider that some people's lives suck most of the time.
dazzlefruit commented on Windows AI Studio Preview   github.com/microsoft/wind... · Posted by u/Jayakumark
mngdtt · 2 years ago
Installed this, and it didn't let me do anything. Despite the fact the readme says stuff runs locally, first it asked me to link to my github account, and then all models required me to ask someone (I think meta?) for permission on github or use a huggingface token or whatever.

So I uninstalled it and now my wsl prompt starts with (base) and I don't know how to disable it and all my python scripts are broken because they can't find all the libraries I've installed from pip throughout the years.

0/10 would not recommend.

dazzlefruit · 2 years ago
(base) sounds like Anaconda. Try typing conda deactivate?
dazzlefruit commented on Writing and linting Python at scale   engineering.fb.com/2023/0... · Posted by u/el_duderino
crabbone · 2 years ago
It's broken just as os.path is. Python doesn't work well with file names in principle: it wants everything to be Unicode. That works for many, but if you want reliable code... you just have to throw all of that away.

Also, in case of pathlib, it adds no value on top of os.path of which it is a wrapper. Instead, it made the original library it wraps worse, because now os.path also needs to know about pathlib to be able to handle path fragments represented as pathlib instances.

All in all, it offers very little utility (a handful of shortcuts) vs increasing the size and memory footprint of "standard" library, complicating dispatch and therefore debugging... it's a bad trade.

Just not to get you confused. It's not an awful trade. It's not like the sky will fall down on you if you use it. It's just mostly worthless, with negligible downsides.

dazzlefruit · 2 years ago
> Python doesn't work well with file names in principle: it wants everything to be Unicode. That works for many, but if you want reliable code... you just have to throw all of that away.

Windows' APIs use UTF-16 and most file name encodings on Linux are UTF-8. How should Python handle this better?

> Also, in case of pathlib, it adds no value on top of os.path of which it is a wrapper.

Completely disagree. os.path is annoying to use. Treating paths as objects with methods and joining them with / makes my life much easier.

> increasing the size and memory footprint of "standard" library

By a ridiculous amount. pathlib is just another pure Python module with a bunch of simple functions and classes. [1]

> complicating dispatch and therefore debugging

You can simply declare and accept `Union[str, os.PathLike]` and convert the paths to whatever you want at the entrypoints, then use that in your own project. Where is the complexity? I've never seen this make debugging harder, it's just an additional type.

[1] https://github.com/python/cpython/blob/d9fc15222e96942e30ea8...

dazzlefruit commented on Reflecting on 18 Years at Google   ln.hixie.ch/?start=170062... · Posted by u/whiplashoo
crazygringo · 2 years ago
Has it drifted?

I don't see it. I think all the other browsers just had to become light and fast too. Even Microsoft was forced to say goodbye to IE, and instead based Edge on Chromium. And tech people were eventually able to switch back to Firefox because it got much faster too.

Google wanted a world where all browsers were light and fast in order to efficiently run complex webapps -- and they achieved that. Kudos.

dazzlefruit · 2 years ago
Chrome is often criticized for overusing RAM. Personally I stopped using it a couple years ago, but when I stopped, it was very far from light; I remember it freezing for a few seconds for lack of RAM in a way other browsers (Firefox with multiprocessing, Edge before it got rebuilt over Chromium) didn't.

The original Chrome just felt like a barebones window to the Internet. Though I agree that Firefox et al. became much less sluggish over time. (Is that only their performance improvements or did hardware get better faster than they grew?)

Also maybe "light" and "fast" shouldn't be lumped together. Chrome can definitely be fast when it has enough resources. That and sandboxing seem to make it much _heavier_ in RAM.

dazzlefruit commented on Writing and linting Python at scale   engineering.fb.com/2023/0... · Posted by u/el_duderino
Timon3 · 2 years ago
> What's missing is in which context the tuple's length is variable, and in which context it is fixed.

Simple example: a function has a parameter whose type is "variable-length tuple of int". You can pass any tuple in that is known to have 0..n elements, all of type int. What would you have me call that, other than the name I've seen used in discussions on this feature?

> "Arbitrary" doesn't really help because it could refer to the elements' values, to their types, or to the tuple's length.

Read it as (arbitary (fixed-size tuples)). It was meant to forgo answers describing functions with known tuple sizes.

dazzlefruit · 2 years ago
> Simple example: a function has a parameter whose type is "variable-length tuple of int". You can pass any tuple in that is known to have 0..n elements, all of type int.

And n is fixed at the calling site, right? I wonder if something like "TypeVar, but for a list of type arguments" could solve your problem.

What's funny is that this is already kind of implemented in `typing.Concatenate`, but only for function parameters [1], not for type hint parameters.

Anyway, I would have written "a well-typed function that concatenates two arbitrary tuples whose size is statically known at the call site". Can't really remove "at the call site" or "statically known" without being ambiguous.

Edit: just found out about `TypeVarTuple`. So really we're only missing `concatenate`.

[1] https://docs.python.org/3/library/typing.html#typing.Concate...

u/dazzlefruit

KarmaCake day39November 4, 2023View Original