News for hackers. Stuff that matters.

jdonald

Re:iOS terminal emulator that can compile C code can be with clang on Wednesday September 18, 2019 @04:48PM (#21010012)
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.

Re:Oracle's New Supercomputer Has 1,060 Raspberry Pis on Wednesday September 18, 2019 @04:25PM (#21009724)
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+

> 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.

Re:Ask HN: React Native or Flutter? on Monday September 16, 2019 @12:56AM (#20981196)
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)

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.

Re:Uncomfortable AWS Truths on Sunday September 15, 2019 @08:12PM (#20980227)
> 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/

> 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.

Thanks. I'm using React Native + Expo for now, so the syntax there "ios": { "config" { "usesNonExemptEncryption": false } } in app.json
> 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.

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.

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...

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.

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

For each new app release, a typical app developer might upload with Application Loader, log in to App Store Connect (2FA), babysit-refresh until the icon goes from "Processing" to Ready, answer the question that encryption has not changed, edit the app profile, delete the old build, press + to add the new build, submit, answer more questions about the IDFA advertising identifier, then truly...

( Read More... | 3 comments | on HN )
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.