HNHacker News
TopNewBestAskShowJobs

alaaalawi

23 karma · joined August 10, 2019

submissionscomments
alaaalawi··on LLMs are eroding my software engineering career and I don't know what to do
YMMV but an LLM can hullicinate bug in programmed medical devices which may kill people in unexpected ways
alaaalawi··on PHP's Oddities
you may try https://github.com/nothings/stb/blob/master/stb_ds.h. a single header implementation for both dynamic array and string based hash table
alaaalawi··on Programming Still Sucks
it is that not that they will take, as they do not have will of their own. greed does put them to work
alaaalawi··on Programming Still Sucks
is it like society does not owe any body money for puting sand gravel cement and water. we are talking about products not their assembly
alaaalawi··on Show HN: Oberon System 3 runs natively on Raspberry Pi 3 (with ready SD card)
you can check also XDS modula2/oberon-2 programming system. is an optimizing complier https://github.com/excelsior-oss/xds
alaaalawi··on Writing a Game Boy Emulator in OCaml (2022)
chill bro. spending some time on Elm is not the end of the world and not a serious issue! the question was about learning and not concerned about production and this was one of the available examples to maybe have a look at.
alaaalawi··on Writing a Game Boy Emulator in OCaml (2022)
Also another option for fun in the browser Elm. check out similar older project https://github.com/Malax/elmboy
alaaalawi··on Writing a Game Boy Emulator in OCaml (2022)
one of the options for fast iterations would be Forth. in its circles, it famous for generation targets and cross compiling between archs. seaech the net you shold find plenty.
alaaalawi··on LLMs as Compilers
I concur. not intermediate code directly machine code, even no tests. It will take human specs internally understand them (maybe formal methods of reasoning) and keep chatting with the user asking about any gaps (you. mentioned a and c, what about b) or ask for clarification on inconsistencies (i.e. in point 16 you mentioned that and in point 50 you mentioned this, to my limited understanding doesn't this contradicts? for example if we have that based on point 16 and have that based point 50,how do you resolve it. in short will act as business analysis with no (imagined) ego or annoyance in the middle by the user. from talk to walk
alaaalawi··on Soda Can Stove
this looks similar

http://web.archive.org/web/20080211102811/http://www.pcthike...

alaaalawi··on You should write "without bugs"
Achieving Correctness is really satisfying. however it is hard and difficult. IMOH this does in general polarize the scene (proving fanatics on one extreme and the other side who are not even testing the code) IMHO flushing out what you are designing does help and goes along the way of having fewer bugs. one old relatively yet easy and accessible formal toolkit which helpful in flushing out process is Z notation . one of the accessible books, old yet an easy read and rewarding is

"Software Development with Z. A practical approach to formal methods in software engineering"

https://archive.org/details/softwaredevelopm0000word/page/n1... .

there are other notations developed later. but its simplicity and easiness even while scribling on paper or word processor gets me back to using it every now and then

alaaalawi··on GitHub cuts AI deals with Google, Anthropic
MMV But for me at least i tend to use it for brain storming, aka intial sailing through a subject/topic/task, getting intial idea. the idea is to use as an admin who is guided by you throgh chatting. for example im given a task to translate a user description/requirement to pull something from the database. like (simplistic example) what are the top grossing films by category within each rating. so igive the AI the database tables schema and give it literally the user requirement. and see what it gave back and compare it with how I'll do it. ask it more for optimizations what else can be done more.... etc.. keep chating with the AI until I'm bored ;)
alaaalawi··on My insulin pump controller has a bug
for these critical applications which require reliable oprations as lives are at stack. formal verfication will help by reducing bugs more than traditional testing. they are not bullet proof but still better. z notation is one of many.
alaaalawi··on milliForth
i'd like to know the source. and the reasons i know long time ago are about more innovative work. like more compression, keyboard layout optimization, like having the code compiled in the source and utilizing the space to embed the meaning so there is no multiple parsing and compiling. even vars are living inthe code alive. and others i don't remember now.
alaaalawi··on FDA schedules meeting to establish regulatory rules for artificial womb trials
its really leads to all sorts of question. when markets for eggs and sperms to be sold directly to interested (the layman) are there and the buyer funds the rent of the artificial womb and the food/nutrition + bio conditions. will he be the father or the owner? if more over the buyer have a farm (so to speak) of wombs?
alaaalawi··on Why split lexing and parsing into two separate phases?
this may be interseting (YMMV) read page 50 of "Compiler Construction for Digital Computers" 1971 which lists other reason some which are still valid and good to know
alaaalawi··on The State of the Awk (2020)
i. missed up the code

  digits = '0123456789'
  patt = "foo=" SPAN(digits) . num
  while line = INPUT
      if  line ? patt
          OUTPUT = num
      endif
   end
alaaalawi··on The State of the Awk (2020)
i like awk. but i hate Regexp (YMMV). but for different perspective check out SNOBOL or its speedier variant Spitbol. although not one liner, but i find patterns easier to compose like functions. $anchor = 0 digits = '0123456789' patt = "foo=" SPAN(digits) . num while line = INPUT if line ? patt OUTPUT = num endif end

end

NOTE1: reading variable INPUT. reads from input. assignment to OUTPUT writes to output. normally assigned to STDIN and SDTOUT, and can be configured.

NOTE2: there is no real while or if. flow is through labels and jumps (considered by some as power but i disagree). above example uses another script to transform while and if into labels and jumps. the point is that patterns composition and success match assignment.

alaaalawi··on The beauty of CGI and simple design
YMMV, but thats why i love Forth. it compiles the full app (not interpret) in ms. some think its dead or only for the embedded, but for me and my projects its a deadly combination + ultra fun.
alaaalawi··on The APL Source Code (2012)
we need just the correct expectations. APL is like mathematics for me. i need to read it several time to understand dense unfamiliar terms and formulas. same goes for APL. it is not the typical language which i assume can be read while driving
alaaalawi··on Vim Foot Pedal
I did and still comfortable with the following YMMV. Alt -> Ctrl Ctrl -> Alt Caps -> Esc Esc -> Caps
alaaalawi··on You can watch how much I rewrite here
Sometimes FORTH shines here. Space is the delimiter. and consequently you can mumble the name on the keyboard without stopping at the moment. you have mix of all digits alphabet and symbols into one token. |alpha| x^y ~x #items [a-b] however YMMV
alaaalawi··on Paradigms of Artificial Intelligence Programming (1992)
Many people will fret when mentioning a commercial vendor. but IMHO and YMMV the leaset systems to get going with the least hassle would be either Lispworks or Allegro and both offer trial versions not getting in your way throughout the book (even though I'm Emacs SLIME user for long time). I'm interested in user minimzing unrelated side topics and spiral customization (I love them) and focusing on the book
alaaalawi··on How to stay focused while working on your startup and having a 9 to 5
YMMV but either way its for the owners. The rest are more or less in a job
alaaalawi··on Are modules without imports “considered harmful”?
Also check Oberon the language and its module system. and was used to create Oberon the system. all procedures/functions are called like this: M.F (Module name - it can be abbreviated but not removed, and F procedure/functions.)
alaaalawi··on Nasm – A cross-platform x86 assembler with an Intel-like syntax
Alsi it has more debugging formats
alaaalawi··on The APL Orchard
This may be not colorful, but was definitely fun for me

https://youtu.be/tcix3IxaX3g

alaaalawi··on SBCL: New in Version 2.1.0
Just curious. I went and skimmed through the handlebarsjs link. I'm used to cl-who and can not see what the js lib does have that is not possible or harder in cl-who. Side note: with a small macro you can start defining your own streamlined components and special tags. akin to having your abstractions. Also l'm taking a course in HTML5+CSS and use this additionally to avoid being drawned in the usual characteristic boilerplate text.
alaaalawi··on Google Common Lisp style guide
YMMV but i do prefer the following: https://www.cs.umd.edu/~nau/cmsc421/norvig-lisp-style.pdf
alaaalawi··on Programming a 144-computer Chip to Minimize Power (2013)
you may find the following presentations in using ga144 entertaining, even if stretched. as Chuck Moore once said (I'm trying to get the ref) Forth is about sharing ideas rather than code. these videos are not pure coding session (even if they have their own share) but a mix of engineering and problem solving. - echolocation like bats - heart monitor - digital image processing - building ga144 controlled robot - low speed usb host

youtube channel of Daniel Kalný https://www.youtube.com/channel/UCVMrX6BlNjIeGfX0QcBobGg

hope you enjoy!

Page 1 of 2Next →