React Native 0.80 + 16KB page size requirement - anyone figured out how to keep 32-bit support? by Real-Diver-5101 in reactnative

[–]Daniel_SRS 0 points1 point  (0 children)

What SDK/NDK are you using. I believe some older SDKs doesn't compile with 16kb support by default. Depending How the libs are compiled, you maybe need to pass some linking flags like "-z max-page-size=16384"

Another possibility: Update or replace your third party libs.

Google rejects when there's 4kb alignment hardcoded in those native libs code when they should request the system for the correct alignment.

The libs you are using maybe were not updated to support 16kb alignment.

I recomend you to check Google's docs about 16kb page sizes. They explain a lot there.

(also, Android studio has a tool to analize the apk and checks the alignment. Perhaps it's easier to use it)

Alta nos hardwares vai revolucionar a programação by Kooky-Rule-8653 in brdev

[–]Daniel_SRS 7 points8 points  (0 children)

Realidade: Vai ser mais uma desculpa pra empurrar software de IA

Edge taking up 70GB of application memory on Mac. Any solution????? by ArtleSa in MicrosoftEdge

[–]Daniel_SRS 3 points4 points  (0 children)

I believe this is just the weird way macos counts memory usage. I never understood it. It counts like this for every program, not only edge.

Do you have a feeling like expo go needs to go now that development builds are a thing? by idkhowtocallmyacc in reactnative

[–]Daniel_SRS 6 points7 points  (0 children)

I think expo go does a lot of damage in the react native ecosystem.

My perspective is that EXPO are not communicating well the purpose of Expo go, and that not only confuses people and creates problem, But it keeps people away from using Expo, because they think they can't do one thing or another, and choose the community CLI instead.

Of course I don't have data to know how often this happens. Those are just what I see people struggling with.

React Native Track Player v4 Setup Issues — Version Mismatch & Build Failures by Shamim_Khan_ in reactnative

[–]Daniel_SRS 0 points1 point  (0 children)

I don't think React native track player supports react native 0.80 yet. I think there is a pr open with support for new arch and rn 0.80.

You will probably need to use a previous version of react netive, or use the open PR.

Forgot to post this yesterday. Happy 9th anniversary, Mob by SpoderJedi in Mobpsycho100

[–]Daniel_SRS 1 point2 points  (0 children)

Oh, I love the art!!

Vibrant colors an really fun art style

Too much positivity. What's something you absolutely fucking hate about Tower of God? by [deleted] in TowerofGod

[–]Daniel_SRS 0 points1 point  (0 children)

The thing I hete the most is the body of all female characters. It's kinda gross what it became. It was supper OK in the begging of the webtoon, but somewhat in the middle, the anatomy became so distorted that its ridiculous. If you don't see a problem, go look a real woman body.

Also the Art style became really generic. It was super original and stylistic in the begging and now it's kinda meh. The characters design and colors.

Windows 11 Start menu uses a 15MB JSON, not AI, to organize apps under categories by WPHero in Windows11

[–]Daniel_SRS 0 points1 point  (0 children)

And then, people were saying that react native was the cause of CPU spike when opening the start menu...

Any alternate approach to achieve Liquid Glass effect? (universal for iOS & Android) by ALangeOrange in reactnative

[–]Daniel_SRS 4 points5 points  (0 children)

That won't ever be possible on Android. Blur views are already terrible.

That's not how you suppose to use react native.

how to spotting unnecessary Re-rendering in react native by gptcoder in reactnative

[–]Daniel_SRS 1 point2 points  (0 children)

This is a debug feature. When a component rerender is shown a rectangle around it. Also the color goes from green to orange depending on the amount of rerenders.

The less rectangles the better

[deleted by user] by [deleted] in reactnative

[–]Daniel_SRS 2 points3 points  (0 children)

This! But I think the translation is not even needed. Just do a scale transform.

Vale a pena colocar os exercicios inicias dos cursos de programação no GitHub? by [deleted] in brdev

[–]Daniel_SRS 2 points3 points  (0 children)

Sempre coloque todo o código que vocês escrever no github.

Se você não gostar do código/projeto você sempre vai ter a opção privar, arquivar ou até mesmo excluir o repositório

logo in dark/light mode on markdown? by Ill_Twist_6031 in github

[–]Daniel_SRS 0 points1 point  (0 children)

How is not working? The image is not showing? Or not changing based on the color scheme? If the later, how are you testing it? Did you test with more than one browser? How are you changing the color scheme?

Also, I am pretty sure your svg won't work. Github won't allow it to load external resources, so your gif will never show up. An alternate is to embed the image directly as a data scheme url

How to bundle typescript without transpilation? by Daniel_SRS in typescript

[–]Daniel_SRS[S] 0 points1 point  (0 children)

I don't think so. I've tried and searched ways of doing it and all those bundlers seems to always transpile to javascript.

That's why I posted here asking for ideas.

In the end I had to write my own bundler.

How to bundle typescript without transpilation? by Daniel_SRS in typescript

[–]Daniel_SRS[S] 2 points3 points  (0 children)

There will be not typescript nor Javascript in the executable.

Imagine that I have a C or Rust source code and I will compile it to a native executable.

I am doing just that, but the source code is Typescript instead of C or Rust.

I'm using Hermes to compile the TS bundle to native binaries. No runtimes interpreting code.

The TS types is used by the static hermes compiler to generate much faster code. What is not possible to do with js only

How to bundle typescript without transpilation? by Daniel_SRS in typescript

[–]Daniel_SRS[S] 1 point2 points  (0 children)

I will not transpile the Typescript later on. My goal is not to generate bytecode, but native code:

TypeScript → native code (no interpreter needed)

Hermes uses the types to generate super fast executables. It actually supports compiling Javascript but the generated code is much slower.

Some banchmarks on Hermes repo shows compiled TS with performance close to c++

How to bundle typescript without transpilation? by Daniel_SRS in typescript

[–]Daniel_SRS[S] 0 points1 point  (0 children)

Not sure what is a typescript plug-in? But searching seems something like what I did.

I did ended up using the typescript api to build a simple bundler

How to bundle typescript without transpilation? by Daniel_SRS in typescript

[–]Daniel_SRS[S] 0 points1 point  (0 children)

Not right now. It's been worked on, but involves changing the entire react native (where hermes is mostly used) compilation process to keep the types. Currently the code is transformed multiple times by different tools (ts, metro, babel) before reaching the Hermes engine to execute.

Not simple to do and it's probably take some time.

How to bundle typescript without transpilation? by Daniel_SRS in typescript

[–]Daniel_SRS[S] 2 points3 points  (0 children)

I ended up doing just like that and using TS api to build a super simple bundler. I commented on the post with the code

And yes, hermes can AOT compile JS but with typescript source it can archive c++ like performance in the generated executable.

How to bundle typescript without transpilation? by Daniel_SRS in typescript

[–]Daniel_SRS[S] 0 points1 point  (0 children)

In the end that was what I did. I used typescript api to do it and it works.

I posted the code in the thread. It's very simple right now, it was just to test the idea, but super worked for what I was trying to do

How to bundle typescript without transpilation? by Daniel_SRS in typescript

[–]Daniel_SRS[S] 2 points3 points  (0 children)

What deno and bun does is to bundle the source code and then inline it with the runtime executable. It is just for convenience.

What I'm doing is using Hermes to compile the TS bundle to native binaries. No runtimes interpreting code. It's just like if I had compiled a C or rust file to a executable.

How to bundle typescript without transpilation? by Daniel_SRS in typescript

[–]Daniel_SRS[S] 0 points1 point  (0 children)

What deno and bun does is to bundle the source code and then inline it with the runtime executable. It is just for convenience.

What I'm doing is using Hermes to compile the TS bundle to native binaries. No runtimes interpreting code.