HNHacker News
TopNewBestAskShowJobs

marco_craveiro

119 karma · joined August 30, 2011

submissionscomments
marco_craveiro··on Mistral releases Devstral2 and Mistral Vibe CLI
I use both Sonnet 4.5 and Opus 4.5 to edit lisp (emacs lisp to be be precise) and run into this issue extremely infrequently. Not sure if they have some special handling for this but seems to work ok. I have this problem with Gemini, and less frequently, with Qwen.
marco_craveiro··on The Story of Mel, A Real Programmer, Annotated (1996)
Same here. We used LMC [1] before we moved to a real architecture.

[1] https://en.wikipedia.org/wiki/Little_Man_Computer

marco_craveiro··on How I write code using Cursor
I think the problem is our traditional notions of "understanding" and "intelligence" fail us. I don't think we understand what we mean by "understanding". Whatever the LLM is doing inside, it's far removed from what a human would do. But on the face of it, from an external perspective, it has many of the same useful properties as if done by a human. And the LLM's outputs seem to be converging closer and closer to what a human would do, even though there is still a large gap. I suggest the focus here shouldn't be so much on what the LLM can't do but the speed at which it is becoming better at doing things.
marco_craveiro··on Emacs 29.1
Oh, that is extremely interesting!! It would be great to hear more about this!
marco_craveiro··on Spacetop, a radical laptop with no screen
Nreal looks great! Shame Linux support is not there yet, but given SteamDeck it must be coming!
marco_craveiro··on Spacetop, a radical laptop with no screen
Pretty cool! From having used immersed [1] for a little bit, I really enjoyed having my desktop inside VR. However, the weight of Oculus was just impracticable, could not do an 8 hour shift with it. This sounds much more promising. However, instead of a laptop this should be a stand alone device one could plug in to existing PCs / Laptops methinks...

[1] https://immersed.com/

marco_craveiro··on The benefits of everything being a buffer in Emacs
I also love wgrep. [1]

[1] https://melpa.org/#/wgrep

marco_craveiro··on Hippocampal place cells have goal-oriented vector fields during navigation
Are you familiar with Numenta and Hawkins? Place and grid cells are very important to their theory.
marco_craveiro··on Extreme include discipline for C++ code
Great point. And this will soon be available directly from Clang tools such as clangd, which will make life much easier.
marco_craveiro··on Show HN: I'm writing a free book called Computer Networks from Scratch
Very cool, will be great to teach networking to my kids. Thanks for the hard work!
marco_craveiro··on OrioleDB – solving some PostgreSQL wicked problems
Good point. Especially since the final destination is to merge into Postgres mainline in the future, it would make more sense to call this Oriole Storage Engine...
marco_craveiro··on Dealing with APIs, JSON and databases in org-mode
Great post, with lots of interesting things to improve my workflow! My progression has been 1) rest client 2) org-mode with blocks 3) verb-mode. However, I think most of what is mentioned can be applied equally to verb-mode, which sort of a DSL built on top of org-mode.

[1] https://github.com/federicotdn/verb

marco_craveiro··on A neuroscientist prepares for death
This article reminded me of The Last Lecture [1] by Randy Pausch - one of the best books I've ever read. Highly recommended.

[1] https://www.amazon.co.uk/Last-Lecture-Printing-Publisher-Har...

marco_craveiro··on Why is my Rust build so slow?
This is a great post, thanks for sharing.
marco_craveiro··on Rust support in the Linux kernel
I'd like to put forward a controversial opinion, if I may: I do not think adding Rust to the Linux kernel is a good idea; and I suspect this project will struggle as soon as the financial backing is removed.

First, a bit of background: I am mainly a C++ and C# user space developer, so presumably despised by all camps involved. Secondly, I have no experience of kernel development whatsoever. Thus, take my comments with a large grain of salt.

My argument is as follows. Every decision you make on a software project is akin to an intersection on sets of programmers. When you choose C, you take a small slice on all possible programmers; when you choose kernel development, you take a slice on the set of competent C programmers, and so on. The intersection of programmers that are competent in Rust _and_ in C _and_ in kernel development - including the interaction between the two languages, at a very low-level (because kernel-space is special) - must be astonishingly small. And herein lies an important problem. Let us posit that the kernel does gain a significant amount of code in Rust; the interaction between these two languages (read: friction) will become significant. Either the Rust people will break things for the C people, or the C people will break things for the Rust people. Those who like C but not Rust - presumably a large subset of the Linux C programmers, else one would assume they would be developing a kernel in Rust - will become alienated. Similarly, those who like Rust will be forced to spend a lot of time doing non-rusty things just to get Rust to work, and they too will not enjoy the experience. Finally, many of the sweeping code clean-ups the kernel experiences periodically will apply differently to Rust, if they apply at all - meaning it will be a second class citizen, barring some major investment to compensate for this.

In the end, I do not think the problems will come from the languages involved per se but due to the complex technical and especially social interactions that this will create.

It is, however, an extremely interesting project technically and I suspect that Rust (and maybe even the kernel) will benefit from it, though not necessarily in ways one would expect. As far as research goes, it is pretty cool.

marco_craveiro··on BetrFS: an in-kernel file system that uses Bε trees to organize on-disk storage
Indeed, sounds very interesting. However, from their github [1]:

> NOTE: The BetrFS prototype currently only works on the 3.11.10 kernel.

This is a tad limiting, hopefully they will port it to latest...

[1] https://github.com/oscarlab/betrfs

marco_craveiro··on Emacs Docs The modern documentation website Emacs deserves
Great work. I think newcomers will appreciate this.
marco_craveiro··on Emacs Docs The modern documentation website Emacs deserves
I think your comment is interesting, and I do think the FSF at times held back Emacs development when it thought to be against their political aims. Having said that:

a) I think its good that in this day and age where everything is market driven (for better or for worse), someone is willing to take a position purely on ethical grounds. If nothing else because we need a plurality of approaches in order to find the "right" one. Also, note that RMS is no longer involved in Emacs development, AFAIK, and hasn't been for a while. He may pop in the mailing lists frequently, but his "word" does not have to be implemented.

b) the very large Emacs community does not share the political vision in its entirety and thus is not constrained by it. As a long term Emacs user, I have never seen Emacs developing at the fast and furious pace it has today. And this is both in terms of the external code (MELPA et al.) as well as the core itself, for which we must thank the current maintainer.

In fact, I'd even go further: almost all of the historical problems I've had with Emacs have been addressed with the current work already released or in branches - e.g., LSP, DAP, native compilation, tree-sitter... I do not think Emacs' progress has been held by the political views; and even my concerns with copyright assignment as a factor that slows down development have been comprehensively proven wrong by the speed at which Emacs is developing. I noted a great step-change in Emacs velocity over the last 5 years, and if anything it seems to be accelerating.

marco_craveiro··on Obsidian – A knowledge base from a local folder of plain text Markdown files
I think the biggest problem with Emacs is that you cannot really make sense of a lot of stuff until you start programming elisp in anger. I tried for many years to copy and paste snippets etc, but now I realised you just need to bite the bullet and learn it like any other programming language and be prepared to do "real development" in Emacs. Its very difficult to be a "tourist" in Emacs, IMHO, a lot of things just don't make sense until you became more of a elisp programmer.
marco_craveiro··on Simula One: an office-focused, standalone VR headset built on top of Linux
In Emacs I have tens of eshells open, not to mention SSH sessions, etc! I use one shell per task and then context switch using Emacs buffer switching machinery.
marco_craveiro··on Sir Clive Sinclair has died
Actually, may I say it was the same for most eastern Europeans. Most of the programmers I know in Portugal started with a ZX Spectrum.
marco_craveiro··on PipeWire: A server for Linux audio and video streams
oh, how exciting! time for a dist-upgrade tonight then!! :-)
marco_craveiro··on How Computationally Complex Is a Single Neuron?
OK I am still parsing the pre-print, but their approach seems very interesting. And equally interesting would be to see what happens if you apply HTM [1] to the same inputs model, e.g.:

> We next applied our paradigm to a morphologically and electrically complex detailed biophysical compartmental model of a 3D reconstructed layer 5 cortical pyramidal cell (L5PC) from rat somatosensory cortex (Fig. 2A). The model is equipped with complex nonlinear membrane properties, a somatic spike generation mechanism and an excitable apical nexus capable of generating calcium spikes

[1] https://github.com/htm-community/htm.core

marco_craveiro··on How Computationally Complex Is a Single Neuron?
Thanks for sharing, very interesting. Haven't read the paper yet, but it seems promising as it mentions Hawkins and Subotai, from Numenta, who have been arguing something along these lines for many years. It is available in biorxiv [1].

[1] https://www.biorxiv.org/content/10.1101/613141v2.full.pdf

marco_craveiro··on American parents are sending their kids to 'Russian math' (2017)
Oh yes, without a doubt. Even if you compare the level of teaching in my life time, from the 80s when I was in primary school to now it has improved dramatically. Portugal was really a developing country all the way up to the 70s and mid 80s, we have roads and infrastructure now :-) completely different place.
marco_craveiro··on American parents are sending their kids to 'Russian math' (2017)
As a Portuguese citizen, I was not exposed to Russian mathematics during my entire academic career until I entered university. Whilst slightly better than the UK, our educational system was also not brilliant when it came to maths, and we only started to do calculus close to Year 12 (the last year before university). Anyways, my one and only brush with Russian mathematics was as follows - I flunked Integral and Differential calculus on Year 1 at uni, and was getting really worried it would take me a while to do this subject. In Portugal you need to repeat a subject until you get a pass grade. Then a cousin told me I had to "do Piskunov".

In those days you didn't buy books, you'd photocopy them, so he gave me a very large photocopied manuscript of Piskunov [1] in Spanish. I had never seen anything like it. It was a bit like a game; it had very little instructions, and it started with absolutely trivial exercises, but continued on and on, relentlessly. And somehow, it got you hooked. I read the entire set of books compulsively, just to see what the next exercise would throw at me. I finished my exam really quickly and got 95% (in my rush, I made one mistake in the exam). My teacher even asked me about some of the ways in which I solved some of the exercises.

[1] https://mirtitles.org/2012/03/06/integeral-and-differential-...

marco_craveiro··on Dynamic Linking Best Practices
Very interesting. There was also the old Drepper paper, which was very good but this seems more accessible. [1]

[1] https://akkadia.org/drepper/dsohowto.pdf

marco_craveiro··on Simple, solar-powered water desalination (2020)
Amazing. I wonder if there has been an update since 2020, in particular with regards to mass-production...
marco_craveiro··on Show HN: Prestige, a text based HTTP client, for working with HTTP APIs
Rest client is great, but a lot of the cool (emacs) kids have moved over to verb-mode [1]. To be fair, you can probably achieve something similar with org-mode and rest-client, but the verb-mode integration is very nice.

[1] https://github.com/federicotdn/verb

marco_craveiro··on An early look at Postgres 14: Performance and monitoring Improvements
wow this looks incredible!
Page 1 of 3Next →