HNHacker News
TopNewBestAskShowJobs

enduku

325 karma · joined March 16, 2018

Blog: www.densebit.com Twitter: @densebit Email: thynktank@gmail.com GitHub: https://github.com/xtellect
submissionscomments
enduku··on BeeWare Toga v0.4.0 – A Python native, OS native GUI toolkit
LibUI for C [0]

[0] https://github.com/andlabs/libui

enduku··on Most promoted and blocked domains among Kagi Search users
Kagi search is brilliant in this aspect. There used to be a similar service [0] not too long ago that blocked many spam sites from the search results.

[0] http://millionshort.com/

enduku··on Ask HN: Could you share your personal blog here?
Mine is https://densebit.com

I have a tendency to jot down brief thoughts or raw ideas :-)

enduku··on Study finds AI assistants help developers produce code likely to be buggy
The code correctness issue is certainly a big problem -- it is simply not enough to get 90% correct. The real world problems often lie in the remaining 10% edge cases.

I have a very different take on how AI can come up with a correct by construction code, with not necessarily using a probabilistic model (Deep learning, for example). I have it written as a blogpost here[0]. The sketch of the idea is that any problem is a data problem, and an algorithm could be discovered, and new code could be generated by projecting it into topological space, finding the code there, and reducing the dimensions back in program space. It could well be a decent application of abstract algebra/algebraic topology to AI and code generation problems.

[0] https://densebit.com/posts/24

enduku··on Do Ideas Have Shape?
A new way of looking at supervised learning: as generalizations of variational calculus.
enduku··on What is a programmable programming language? (2019)
REBOL Parse maybe?
enduku··on Ask HN: What is the best ROI you have seen in Data science projects?
Prescriptive analytics for Pharma.
enduku··on Ask HN: Can we use tensors as a database data structure
Yes. Kdb+ and JD come to mind whose primary data structures are multidimensional arrays.
enduku··on Show HN: Bionic Reading – Formats text to make it faster to read
Great work, congrats! Another app Beeline Reader[0] seems a lot similar to this. It was launched many years ago I suppose. All the best with the product!

[0] https://www.beelinereader.com/

enduku··on Ask HN: Is there a simple and minimal language like C but without its footguns?
red-lang isn't bad. Golang. Terra. Nim. Forth. Pascal. Zig. Rust.
enduku··on How to rapidly improve at any programming language (2016)
In addition to wonderful responses already posted, I'd like to add one more: Learn Forth. Learn Lisp. Learn APL. No need to be good at these; just enough to learn their programming models. Imperative, functional, OOP, or any other, it doesn't matter. Learning the programming model in such languages changes the way you think. Then start with a language you wish to master. Start with a problem in mind. Always have a problem in mind. Try coding the thought on paper. Do the same with the target programming language. Though it appears as an idealistic procedure, it does serve its purpose and instills confidence in the learner like no other approach out there.
enduku··on Some C and C++ refactoring tips/pitfalls
A few useful common refactoring, programming and other C and C++ static analysis tips.
enduku··on Shenandoah in OpenJDK 17: Sub-millisecond GC pauses
Based on the number of CPU cores on the machine, Shenandoah sets up its threads. JVM will see only one CPU core if the number of CPU shares for the container is not set explicitly[0]. In that case, Shenandoah will use only single parallel thread to do the collections, and the entire application may crash.

[0]https://docs.aws.amazon.com/AmazonECS/latest/developerguide/...

enduku··on Shenandoah in OpenJDK 17: Sub-millisecond GC pauses
One neat feature of Shenandoah is once the application shuts down, it prints into the GC log a table depicting how much time each phase of the GC cycle took. This data can be crucial to optimize the GC pause time further:

- Removal of weak references (finalizer, phantom, soft) can help reduce the GC pause time further as these warrant stop the world phase

- Shenandoah likes ReentrantLocks better than synchronised classes the latter bloats up its monitors and increases the size of the rootset

- The reflection problem may initial Shenandoah to run GC cycles even when there is no memory pressure and thus may reduce performance over time. It is better to limit it using reflection inflation flag

- On Amazon ECS, provide the CPU share count explicitly; Shenandoah likes more threads

enduku··on A search engine that favors text-heavy sites and punishes modern web design
Fantastic project! Found very interesting links to a lot of compiler related keywords. A similar service, yet different in their approach to cut through the e-commerce and seo optimized websites I found useful is MillionsShort[0]

millionshort.com

enduku··on Ask HN: How do you create a cross-platform GUI without using Electron?
Give Sciter a chance.

https://sciter.com/

enduku··on Ask HN: What's the best Linux distro for fullstack development?
PopOS from System76 is nice https://pop.system76.com/
enduku··on I got the J language working on OpenBSD
Link to the book in question https://www.springer.com/gp/book/9781846288227
enduku··on K Programming Language
Similar to the library of functions, accessible through a collection of operators us the Q'Nial language. It doesn't always get the visibility it's cousins (J and K) enjoy
enduku··on Show HN: Fit Owl. The game that tricks you into excercising
This looks nice. The price point is good too. Will definitely try it out. Cheers
enduku··on Ask HN: Is it possible to distinguish alt opinions from actual misinformation?
Generally speaking, no. But a very crude heuristic could be the incidence of proper names: more proper nouns, more is its misinformation propensity. More adjectives/adverbs, more opinionated. A very bad heuristic, but a heuristic nonetheless.
enduku··on Ask HN: What is the most interesting FOSS that most people don't know about?
Bitkeeper : https://www.bitkeeper.org/
enduku··on Ask HN: What do you read online that is not junk?
Lobste.rs
enduku··on Object-Oriented Programming in C (2019) [pdf]
The above pattern using opaque pointers resembles objects in C++. A construct() and destruct() function returning opaque pointers (handles for the struct really) can act as custom constructors and destructors. The opaque pointer ensures a simplified API, protects internal struct data, and the defining code of struct can change without impacting the remaining source code.

This is in fact, by any meaningful definition of OOP, is a very reasonable pattern. With regards to formal definitions of OO, message passing aspect ought to be recognised rather than overemphasizing the object aspect.

enduku··on Object-Oriented Programming in C (2019) [pdf]
1. Creating a struct with desired state data

2. Creating functions that take a pointer to the struct as the first parameter

3. Declaring a variable with that struct type to create an instance of the object

4. Declaring another variable with that struct type for another object instance

enduku··on SQLite-TUI: A TUI for viewing SQLite databases, written in Go
Me too. Maybe it is the latency that affected this decision. If the cause for ignoring mouse events is latency, Mosh may be a bit better.

https://mosh.org/

enduku··on How I Write Code: Pen and Paper
Terse languages like J and K also make good candidates for writing code using pen and paper. Hillel Wayne has an interesting blog post detailing the very same note.

https://www.hillelwayne.com/post/handwriting-j/

enduku··on Now that machines can learn, can they unlearn?
I think a program synthesis neural network trained on common imperative languages like C will "unlearn" once trained on derivatives of Forth language or say, Lisp
enduku··on A new way to detect ‘deepfake’ picture editing
Seems like compression is not such a bad deterrent for adversarial deepfakes.
enduku··on Ask HN: What are some examples of purposely bad UX
Reddit website -- just to promote it's mobile app.
← PreviousPage 2 of 3Next →