Better HN
topnewbestaskshowjobs
Log inSign up

jdonald

83 karma · joined Jun 20, 2018 (8y ago) · 22 submissions

Submissions

comment 7y ago · link · parent

Background:

* https://github.com/ptitSeb/gl4es/blob/master/README.md

* https://emscripten.org/docs/porting/multimedia_and_graphics/...

2.

GL4ES Emscripten support: Run OpenGL 2.1 programs in the browser(github.com ↗)

2 points · by jdonald · 7y ago · 1 comment

comment 7y ago · link · parent

While troubleshooting I came across the GitHub source code here: https://github.com/ColdGrub1384/LibTerm

Attempting to compile a small program, the first barrier I came across started from running cat > hello.c, but after typing the program I found there was no way to enter ^D. There are mentions of Ctrl characters on GitHub but nothing clear in the Help options.

So then I tried a herestring with cat > hello.c <<EOF, but herestrings do not seem to work in this shell (no > prompt and does not exit after typing EOF). At this point I tried multiple echo lines: While I could put one starting line, appending to an existing file with >> seems to have no effect.

As my intent is only to test clang, I settled for a one-line C program like int main() {}. clang hello.c then gave an error: Executable "ld" didn't exist!

Well, I'm here to test the compiler not the linker, so then resorted to clang -c hello.c and it successfully generated a hello.o object. Yet I'm unable to analyze the output without the objdump or file commands.

At this point LibTerm may be rather unsuitable for using clang, but running the help command shows other handy *nix tools, including Lua and Python.

comment 7y ago · link · parent

Echoing the sentiment from reddit: the article lacks any numbers regarding performance and power so we cannot do meaningful analysis.

At best we can estimate a lower bound for the cost. 1,060 * $27 = $28,620

*Depends on actual bulk pricing for Pi 3B+

comment 7y ago · link · parent

> the story for performance-per-watt under load appears less clear.

Is this referring specifically to their in-order cores (Cortex-A53, A35), out-of-order cores (Cortex-A72, A73), or big.LITTLE configurations in general? *

Thinking more broadly, the next era of power-efficient computing may depend more on heterogeneous architectures than the CPU alone. The Arm ML Processor IP and corresponding offerings from competitors play a large role in this.

* Can be generalized to custom cores designed by NVIDIA, Qualcomm, Samsung, Apple, and other vendors.

comment 7y ago · link · parent

A relevant read for someone to seriously consider the "Neither!" answer:

https://news.ycombinator.com/item?id=20695806 "The not so hidden cost of sharing code between iOS and Android" (dropbox.com)

comment 7y ago · link · parent

I would assume positive intent. There are some answers to give perspective if you read further down in the ticket, like this one:

-----------------

kinnison commented on Jun 6

We do care we care greatly. Sadly while we have someone volunteering to help us with sorting out code-signing, it is a complex logistical problem because there's not (yet) a mechanism in place for the project to hold a legal entity to be identified by the certificates.

comment 7y ago · link · parent

> Is or was he ever affiliated with AWS?

Does not appear to be affiliated, but launched "Last week in AWS" more than 2 years ago so may know a thing or two.

https://www.linkedin.com/in/coquinn/

https://www.linkedin.com/pulse/last-week-aws-corey-quinn/

https://www.lastweekinaws.com/

comment 7y ago · link · parent

> Why didn't the author sign it?

Discussed here: https://github.com/rust-lang/rustup.rs/issues/1568

It boils down to that the authors have not gotten around to it and are not experts on Authenticode. Apparently the macOS binary is also not signed, so at least Windows isn't being singled out.

To validate your binary you can use the SHA256 checksum that someone posted in the issue two days ago.

comment 7y ago · link · parent

Thanks. I'm using React Native + Expo for now, so the syntax there "ios": { "config" { "usesNonExemptEncryption": false } } in app.json

comment 7y ago · link · parent

> I'm curious why it isn't based on qemu-user.

I've also wondered what it would take to do multi-architecture dynamic linking in qemu-user. Such a capability would avoid one shortcoming of Box86, the current lack of dynamic recompilation.

I suspect that modifying QEMU in this way is not trivial.

comment 7y ago · link · parent

Good question. ptitSeb's work tends to target armv7 as that's the architecture used by OpenPandora.

I don't know if this design currently depends on specifics of the armhf ABI vs aarch64.

With regard to the market, 64-bit SBCs (such as Raspberry Pi 4) often run 32-bit operating systems such as Raspbian. Even 64-bit ARM operating systems such as Ubuntu, Gentoo, and Manjaro are capable of running 32-bit software such as this via multiarch, chroot, or containers.

comment 7y ago · link · parent

I guess it's theoretically possible to emulate the x86 Widevine DRM plugin while running other browser code natively.

However, there's already an easier way to run Netflix on a Pi 4 natively. Someone figured out to just to grab the armv7l libwidevine binary from Chrome OS: https://blog.vpetkov.net/2019/07/12/netflix-and-spotify-on-a...

comment 7y ago · link · parent

Good question. iSH appears to be a true emulator with syscall translation much like qemu-user, so it's versatile but wouldn't run a game library like SDL natively.

15.

Input latency reduction via rollback in RetroArch (2018)(forums.libretro.com ↗)

1 points · by jdonald · 7y ago · discuss

16.

Fighting back against binary blobs! (freedreno, 2012)(bloggingthemonkey.blogspot.com ↗)

1 points · by jdonald · 7y ago · discuss

17.

Ask HN: How do you automate the App Store Connect / Google Play Console dance?

1 points · by jdonald · 7y ago · 3 comments

comment 7y ago · link · parent

Thanks for linking that as well as your earlier HN posts about Box86:

* https://news.ycombinator.com/item?id=19389120

* https://news.ycombinator.com/item?id=19400920

I think there are a couple factors that have limited the awareness of Box86. One is having the word "Box" in its title which reminds too much of existing solutions DOSBox or Bochs that already do their job.

The second is occasionally headlining Box86 as an "emulator", taking into account that most of the audience does not get very far into the article. Even if Box86 does use x86 emulation it's important to highlight that libraries like OpenGL and SDL run natively. Compare that framing to WINE, which is so forthcoming on not being an emulator that it's in the name.

19.

Box86, an x86 app player for ARM with native rendering performance(github.com ↗)

113 points · by jdonald · 7y ago · 20 comments

20.

Raspbian Buster now comes with a 64-bit kernel(raspberrypi.org ↗)

7 points · by jdonald · 7y ago · discuss

21.

Show HN: Star – A content-rich stock trading app built on React Native(itunes.apple.com ↗)

3 points · by jdonald · 8y ago · discuss