veer66

joined 2 years ago
 

The video offers a practical example of using Ubuntu for web development, reminiscent of the Rails screencasts popular two decades ago. Back then, many software developers I met still believed the iBook G4 was primarily for desktop publishing, not software development.

 

dhh is the creator of Ruby on Rails. He has extensively used Mac for decades. A few months ago, as far as I remember, he mentioned something like switching to Windows and WSL.

 

By Kenichi Sasagawa - Easy IS-LISP maintainer

[–] veer66@lemmy.one 1 points 1 year ago* (last edited 1 year ago)

What Lisp programming languages do you use?

  1. Common Lisp
  2. Clojure

What non-Lisp programming languages do you use?

Rust, etc.

What is your favorite Lisp programming language? Why?

SBCL can compile Common Lisp into optimized native code and the community provides libraries that I need.

What is your favorite non-Lisp programming language? Why?

Ruby can be used as AWK with JSON parser and Unicode support.

What is that one thing about your favorite non-Lisp language that you wish to see in your favorite Lisp language?

Awk-style one-liner

[–] veer66@lemmy.one 1 points 1 year ago

I did. I also coded in PL/pgSQL.

[–] veer66@lemmy.one 2 points 1 year ago

I don’t know what kind of architecture you are thinking of and having the distinction between datalog on the database and prolog in the server might be problematic.

I thought about Datomic and Clojure.

[–] veer66@lemmy.one 2 points 1 year ago

Linq

LINQ is remarkable.

[–] veer66@lemmy.one 1 points 1 year ago (2 children)

Stored procedure and Datalog are not what I'm looking for. However, I should consider them seriously, since they may be more practical.

[–] veer66@lemmy.one 1 points 1 year ago* (last edited 1 year ago)

b but has nice

Thank you. This is exactly what I'm looking for.

link

[–] veer66@lemmy.one 1 points 1 year ago* (last edited 1 year ago)

Yes, I've used this.

[–] veer66@lemmy.one 1 points 1 year ago (2 children)

properly parametrized and escaped and all that

I'm not sure if what I use is proper enough in your sense. So, can you elaborate more?

 

Is there a programming language specifically designed for interacting with SQL databases that avoids the need for Object-Relational Mappers (ORMs) to solve impedance mismatch from the start?

If such a language exists, would it be a viable alternative to PHP or Go for a web backend project?

[–] veer66@lemmy.one 5 points 1 year ago

RK3588 is used in many Linux devices, but I'm not sure if Rockchip is in the BDS list. I don't know which factory was RK3588 from.

[–] veer66@lemmy.one 1 points 1 year ago

I heard that Linux gets new patches for Loongson, but I didn't try it yet.

[–] veer66@lemmy.one 3 points 1 year ago

Yes, it is stable.

[–] veer66@lemmy.one 2 points 1 year ago
  #[allow(unused_assignments)]

Thank you. This works!

 

Removing last will break my library.

#[macro_export]
macro_rules! list {
    () => {
	None
    };
    [ $x:expr, $( $y:expr ),* ] => {
	{
	    let mut first = cons($x, &None);
	    let mut last = &mut first;
	    $(
		let yet_another = cons($y, &None);
		if let Some(ref mut last_inner) = last {
		    let last_mut = Rc::get_mut(last_inner).unwrap();
		    last_mut.cdr = yet_another;
		    last = &mut last_mut.cdr;
		}
	    )*
	    first
	}
    }
}

This macro works as I expected because it can pass these tests.

    #[test]
    fn dolist() {
        let mut v = vec![];
        dolist!((i &cons(10, &list![20, 30, 40])) {
            v.push(i.car);
        });
        assert_eq!(v, vec![10, 20, 30, 40]);
    }

    #[test]
    fn turn_list_to_vec() {
        assert_eq!(list_to_vec(&list![1, 2, 3]), vec![1, 2, 3]);
    }

    #[test]
    fn count_elements() {
        assert_eq!(list_len(&list![10, 20, 30]), 3);
    }

However I got the warning "value assigned to last is never read."

How can I avoid this warning?

P.S. Full code

 

How did they implement allocate a new cons cell?

 

Will they keep patching old version of PHP?

view more: ‹ prev next ›