Better HN
topnewbestaskshowjobs
Log inSign up

linux2647

868 karma · joined Feb 3, 2017 (9y ago) · 241 submissions

Stephen H.

Staff Software/Platform Engineer

hn@infinitecanvas.net

---

meet.hn/city/us-Fresno

Socials: - github.com/linux2647 - linkedin.com/in/infinitecanvas

---

Submissions

181.

A Kids Book About(akidsbookabout.com ↗)

2 points · by linux2647 · 7y ago · discuss

182.

Python is not context free (2012)(trevorjim.com ↗)

73 points · by linux2647 · 7y ago · 26 comments

comment 7y ago · link · parent

> I miss the days when I could understand how something worked just by reading the official documentation first.

This is probably why I don’t read much documentation when I’m working with a library, et al. Never thought about it until I read the parent

comment 7y ago · link · parent

How is this different than running on certain cloud providers? For instance, a team can become deeply integrated with AWS services and then have trouble moving off if AWS starts raising prices.

comment 7y ago · link · parent

sigh that is what I loved about Pebble

comment 7y ago · link · parent

I’ve heard Dominos described as a tech company disguised as a pizza company. This continues to support that idea.

(I know this provider isn’t from them, but it still applies nonetheless)

comment 7y ago · link · parent

Now do Hacker News ;)

comment 7y ago · link · parent

Genuinely curious: how does a project like Dropbox grow to four million lines? In my (albeit naïve/inexperienced) mind, I could see how a file syncing app could grow to several thousand lines (even tens of thousands), but what all is in those four million lines? Is it a lot of UI code? Backwards compatibility for older data models? Building components themselves instead of just `pip install`ing?

comment 7y ago · link · parent

Maybe I’m in the minority, but I’ve found that if the right ORM fits your brain, it can be incredibly useful for a lot of CRUD operations, especially if it offers escape hatches to lower levels of the abstractions; ultimately down to raw SQL.

SQLAlchemy for Python is that for me. I find it incredibly expressive and allows me to write complex queries that are readable, maintainable, and perfomant. Yes, it requires learning, but it’s the right tool for the job, personally.

comment 7y ago · link · parent

SQLAlchemy for Python can do this without having to use the ORM-side of it

comment 7y ago · link · parent

Looks like a library for Scala and other JVM languages?

comment 7y ago · link · parent

Is this what it’s like to read Dutch as someone who speaks German? Or Flemish as someone who speaks Dutch?

193.

Can ads on a page read my password?(security.stackexchange.com ↗)

327 points · by linux2647 · 7y ago · 134 comments

comment 7y ago · link · parent

What is the significance of creating a domain specific language for WASM? Doesn’t using something like Rust work well enough? (Genuinely curious)

comment 7y ago · link · parent

I want to hate on it, but it’s actually like the perfect intersection of monospace and sans-serif; I find it incredibly readable.

comment 7y ago · link · parent

That kind of bandwidth capacity is almost unfathomable

comment 7y ago · link · parent

Not the most up to fate, but exists: https://github.com/el1t/uBlock-Safari

comment 7y ago · link · parent

> A quirk in the messaging system rears its head when you try to write a Windows-hosted debugger (also called a "GUI debugger"). A GUI debugger is a debugger for Windows programs that itself uses the Windows display mechanisms. What's the problem with that? Well, imagine the following scenario: A GUI debugger places a breakpoint inside of a Window procedure. Eventually, the debuggee program hits the breakpoint, and stops--and cannot call GetMessage() to yield control to other tasks! That means no other tasks--including the GUI debugger--can get their messages. The debugger can't even respond the mouse clicks that tell the debuggee to run again.

That’s unfortunate

comment 7y ago · link · parent

Not here: https://workstation.is/station/vbNm9bew5artQwD02SqW

200.

Ways of Rebooting an x86 Machine (2011)(mjg59.livejournal.com ↗)

1 points · by linux2647 · 7y ago · discuss

comment 7y ago · link · parent

> Quite literally, you could buy a Tesla, drive several hundred miles for a weekend road trip with friends and then return it for free.

Has anyone done this?

comment 7y ago · link · parent

Anyone know of a FastMail alternative? I was considering opening an account with them, but after reading this, I am concerned with the privacy implications, especially as I am trying to get off of Gmail.

comment 7y ago · link · parent

Maybe something like Toki Pona? https://en.wikipedia.org/wiki/Toki_Pona

204.

Autokbisw: Automatically Switch Keyboard Layout Based on Active Keyboard [MacOS](github.com ↗)

1 points · by linux2647 · 7y ago · discuss

comment 7y ago · link · parent

Two creatures in this picture: http://imgur.com/TDeLYwF

One looks like a cat, the other...?

comment 7y ago · link · parent

Except that Apple is already shipping Macs with both processors

comment 7y ago · link · parent

Tangentially related, I have a wild idea: assuming Apple makes a transition to using ARM processors, existing Macs could be able to execute both ARM and x86 apps, just like they did with the Intel transition, but instead of translating machine code like with Rosetta, all Macs with a T2 chip can simply execute machine code on whichever processor the app was built for.

Here's how it would work: macOS already works with more than one CPU core. What if several of those cores just happen to be for a different architecture? When an app is launched, it would read the executable's header and schedule the app to run on the appropriate CPU. Things like producing sound, drawing to the screen, or getting user input is all done via the OS anyways; it doesn't really matter what architecture the app or OS is on, thing would just get translated, like how communication is being shipped over the bus with this protocol.

To me, it seems like the T2 chip is the real processor of newer Macs and the x86 chip is just some co-processor that the T2 chip offloads a bunch of work to. The T2 controls many of the internal components already and the x86 chip must interact with the T2 chip to interact with said components (e.g. booting, webcam, audio, SSD, etc). It will be interesting to see if this is the route that Apple takes with a supposed ARM transition.

comment 7y ago · link · parent

Éric Lévénez has a pretty extensive family tree/genealogy of programming languages that he's maintained for a while: https://www.levenez.com/lang/

He also has a Unix history and Windows history timelines as well.

comment 7y ago · link · parent

This statement returns a syntax error. But I get what you mean. For

  if (a := 1) or (b := 1):
    print(locals())
since a is truthy, it gets bound and is in scope, whereas b is not, which makes sense to me.

comment 7y ago · link · parent

Is there anything similar for SSDs?
1
56789